-
Three questions on the new local fonts system.
First, in a support forum discussion on New Font System – Issues, David offers a link to an image showing how to select which font Sub Set is downloaded. Am I correct to assume that the system only pulls a Sub Set and not the full font file? Is there a way to confirm which Font Set is associated with a font you’ve downloaded? My concern is both to make sure we’ve pulled the right one, as well as make sure we only have a Sub Set rather than the bulk of the full font file.
Second, implicitly is Generate Press now handling the CSS code for “@font-face” on the backend – identifying where the system should look for the local fonts?
Third, when you look under advanced options for a font in the Font Library, it looks like you are using a variable name under ‘Add Font Family Alias’ for the font reference. For those of us using CSS, I assume this font reference will work instead of the standard font family name we have been using? For example, if in the past I defined under root:
--headline-font: Lato, sans-serif;
I can now use:
--headline-font: var(--gp-font--lato);
?
Thanks!
Ted -
Hi there,
1. Yes, the font is only downloaded based on the subset you specify. Currently, there is an issue where non-Latin character subsets are not being retrieved, but this will be addressed in the next update. You can verify that the correct subset is being downloaded by checking the
/wp-content/uploads/generatepress/fonts
directory.2. Correct.
3. That approach could work as well, but it seems a bit redundant when you can directly reference
--gp-font--lato
. -
tbream
Thanks for getting back to me. With respect to item #1, I appreciate the way you’ve provided to confirm the uploaded font subsets and that will work on an interim basis.
Howeever, I suggest that adding the name of the font subset to the Available Font Variants list on the Font Library page would make things easier for us all.
With respect to item #3, I understand your suggestion, but the approach we’ve outlined enables us to update a font once in our CSS file and not have to update it repeatedly where it appears to reference in other areas of the file.
The local font library is a great value add for GP. Thanks!
-
Alvind
You’re welcome!
The Font Library feature will be improved in a future release to include support for multiple subsets at once, and potentially enhanced naming options as well.
- You must be logged in to reply to this topic.