Social: New setting for local font folder #7127
Replies: 2 comments
-
This came up a little while ago when Google made changes that broke the automated font downloading. The suggestion to add a font directory did raise concerns about the requirement to put the right font variations in the right place and with the right name, something that is done automatically for the fonts that are downloaded from Google.; also concerns about non-repeatable builds but I see fonts as just another asset, like images, that would be checked into a repo. I could imagine a solution where fonts are staged into the |
Beta Was this translation helpful? Give feedback.
-
I believe this was answered in: but like Alex has said, it was before the Google Fonts API change, so perhaps squidfunks stance has changed on it, but probably not 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hello,
We need to create social cards that use our corporate font, which isn't available on Google Fonts. As a workaround, we currently copy the .ttf files for our font variants to
.cache/plugin/social/font
before running a build.I'd suggest a plugin setting to specify a local font folder, with a fallback to Google Fonts if a font used by the template doesn't exist locally.
For example:
I'm happy to open a change request if you think this could be useful for others as well.
Beta Was this translation helpful? Give feedback.
All reactions