将 Nure 可变字体与 PragmataPro 结合,作为浏览器的默认字体使用,可以提高您的工作效率。 下载 Nure 可变网页字体后,将其放入您的用户文件夹,安装适用于大多数主流浏览器的免费插件 Custom Style Script,然后将以下代码放入 Options page(选项页面) 中。 @font-face { font-family: 'Nure'; src: url('/Users/(您的用户文件夹)/Nure11-VF.woff2') format('woff2-variations'), url('/Users/(您的用户文件夹)/Nure11-VF.woff2') format('woff2');} body, .css-901oao, ._292iotee39Lmt0MkQZ2hPV, a, abbr, address, area, article, aside, audio, b, bdi, bdo, blockquote, br, button, canvas, caption, cite, col, colgroup, command, datalist, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, main, map, mark, menu, meter, nav, object, ol, optgroup, option, output, p, param, progress, q, rp, rt, ruby, s, samp, section, select, small, source, span, strong, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, tr, track, u, ul, var, video, wbr {font-family: 'Nure'; font-weight: 300; font-variation-settings: 'opsz' 18, 'wdth' 80;} 其中 font-weight 是第一个轴 “字重”,其取值范围为 100 到 900。font-variation-settings: 'opsz' 是第二个轴 “光学尺寸”,其取值范围为 12 到 72。font-variation-settings: 'wdth' 是第三个轴 “宽度”,根据 Windows 标准,其取值范围为 75 到 125。 改变这些数值,您可以找到最适合自己的配置。 以 Hacker News 作为测试网站的视觉示例: 实际视图。Custom Style Script 插件关闭 Custom Style Script 开启,设置如下:{font-family: ‘Nure’; font-weight: 300; font-variation-settings: ‘opsz’ 20, ‘wdth’ 90;} Custom Style Script 开启,设置如下:{font-family: ‘Nure’; font-weight: 300; font-variation-settings: ‘opsz’ 30, ‘wdth’ 110;} Custom Style Script 开启,设置如下:{font-family: ‘Nure’; font-weight: 300; font-variation-settings: ‘opsz’ 18, ‘wdth’ 80;} Custom Style Script 开启,设置如下:{font-family: ‘Nure’; font-weight: 240; font-variation-settings: ‘opsz’ 18, ‘wdth’ 80;} 在 Mozilla Firefox 中结合使用 Nure 与 PragmataPro 这只是将像 Nure 这样的可变字体用作默认字体潜力的一次快速展示。 This post is also available in EN.
如何在浏览器中设置 Nure 可变字体
将 Nure 可变字体与 PragmataPro 结合,作为浏览器的默认字体使用,可以提高您的工作效率。
下载 Nure 可变网页字体后,将其放入您的用户文件夹,
安装适用于大多数主流浏览器的免费插件 Custom Style Script,然后将以下代码放入
Options page(选项页面)中。@font-face { font-family: 'Nure'; src: url('/Users/(您的用户文件夹)/Nure11-VF.woff2') format('woff2-variations'), url('/Users/(您的用户文件夹)/Nure11-VF.woff2') format('woff2');} body, .css-901oao, ._292iotee39Lmt0MkQZ2hPV, a, abbr, address, area, article, aside, audio, b, bdi, bdo, blockquote, br, button, canvas, caption, cite, col, colgroup, command, datalist, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, main, map, mark, menu, meter, nav, object, ol, optgroup, option, output, p, param, progress, q, rp, rt, ruby, s, samp, section, select, small, source, span, strong, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, tr, track, u, ul, var, video, wbr {font-family: 'Nure'; font-weight: 300; font-variation-settings: 'opsz' 18, 'wdth' 80;}其中
font-weight是第一个轴 “字重”,其取值范围为 100 到 900。font-variation-settings: 'opsz'是第二个轴 “光学尺寸”,其取值范围为 12 到 72。font-variation-settings: 'wdth'是第三个轴 “宽度”,根据 Windows 标准,其取值范围为 75 到 125。改变这些数值,您可以找到最适合自己的配置。
以 Hacker News 作为测试网站的视觉示例:
{font-family: ‘Nure’; font-weight: 300; font-variation-settings: ‘opsz’ 20, ‘wdth’ 90;}
{font-family: ‘Nure’; font-weight: 300; font-variation-settings: ‘opsz’ 30, ‘wdth’ 110;}
{font-family: ‘Nure’; font-weight: 300; font-variation-settings: ‘opsz’ 18, ‘wdth’ 80;}
{font-family: ‘Nure’; font-weight: 240; font-variation-settings: ‘opsz’ 18, ‘wdth’ 80;}
这只是将像 Nure 这样的可变字体用作默认字体潜力的一次快速展示。
This post is also available in EN.
Related Posts
PragmataPro 在加州帕萨迪纳艺术中心
This post is also available in EN.
终端交易图表项目
基于 Unicode 字形的命令行图表系统 今天,我在 GitHub 上发布了我的一个想法:一个基于终端的交易 …
oook 正在使用可变字体:factory.ai
在动态的网页设计领域,保持领先地位对于创造引人入胜且用户友好的体验至关重要。可变字体是近年来备受关注的一项前沿 …
PragmataPro 0.822——无声的革命
PragmataPro 0.822 版本有许多变化: ➊ 与 CJK 字体和 Emoji 完美集 …