Hi,
we are looking into to use a purchased non google font with a custom theme. How would we define that font as a resource. since it is not a google font and the font should be part of the theme.
Hi,
we are looking into to use a purchased non google font with a custom theme. How would we define that font as a resource. since it is not a google font and the font should be part of the theme.
Hi @aku,
I am aware of that. What I was curious how you would do it if the font is part of a devpack. And you want to setup the font in the theme that is part of that devpack.
Totally untested, but I’d be exploring along these lines:
"fontFamily" : [
{
"id" : "5BEB86E5-05DA-48CF-8D45-C6EDCF1AA3FB",
"kind" : "names",
"name" : "coolfont",
"resources" : [
{{assetPath}}/coolfont.ttf"
],
"fontNames" : "coolfont;"
}
],
Or maybe it’s just not possible at the moment. ![]()
Thanks will give it a try.
Sorry, we don’t currently support custom fonts in theme dev packs. We always planned to add support for it, we just haven’t got around to writting the code as we didn’t need it and no one was building themes yet, hah!
I’ve created a ticket to make sure we do this sooner rather than later!