web: enable use of subset web font files (for variable fonts only)

This commit is contained in:
Rasmus Andersson 2020-08-21 16:06:02 -07:00
parent 15e2d60523
commit 57e80b4ab0
36 changed files with 825 additions and 414 deletions

View file

@ -497,8 +497,8 @@ html { font-family: 'Inter', sans-serif; }
<h4 id="faq-cdn"><a href="#faq-cdn">
How reliable are the fonts served from rsms.me/inter?
</a></h4>
rsms.me/inter is backed by GitHub's server network and distributed
globally on the CloudFlare CDN, making usage of
<tt>rsms.me/inter</tt> is distributed globally over CloudFlare's CDN,
backed by GitHub's servers, making usage of
<q>https://rsms.me/inter/inter.css</q> and associated font
files very reliable and fast throughout the world.
</c>
@ -523,12 +523,13 @@ html { font-family: 'Inter', sans-serif; }
How do I subset the font files?
</a></h4>
The web fonts provided by <a href="inter.css"><tt>inter.css</tt></a> and
<a href="inter-display.css"><tt>inter-display.css</tt></a> already use subset font files.
If you need special, customized subsets or subsetting of OTF or TTF files,
have a look at the tools
<a href="inter-display.css"><tt>inter-display.css</tt></a> are already subset
(variable version.)
If you need special customized subsets, or subsetting OTF or TTF files,
have a look at
<a href="https://fonttools.readthedocs.io/en/latest/subset/"><tt>pyftsubset</tt></a>
and
<a href="https://github.com/filamentgroup/glyphhanger"><tt>glyphhanger</tt></a>
<a href="https://github.com/filamentgroup/glyphhanger"><tt>glyphhanger</tt></a>.
</c>
<c>