Hi @nickdeckerdevs1 ,
Thank you for the quick reply. Here’s some more details on the subject:
Have you seen this at the bottom of the page you linked “When using the rich text editor in the design manager, font options will not appear in the font selector dropdown menu.”
I did see it. I’m not sure what they mean by “using the rich text editor in the design manager” but I can see my custom font when opening a Rich Text editor in Website Pages, here it is:
I really need to have a better understanding of how you are implementing this, if you are building the theme, working in a child theme, etc. Please give a bit more background so I can help out.
Sure thing. I’m building a theme yes, I’m developing it locally and I then use the “hs upload” to sync it with Design Manager. This is what my project looks like in Design Manager right now:
Please note that I have a font.json file for each font family and it’s structured like this:
{
"name": "Vox",
"default": "Regular",
"fallback": "arial, sans-serif",
"variants": [
{
"name": "Regular",
"files": [
{
"file": "./TTF/Vox-Regular.ttf",
"format": "truetype"
},
{
"file": "./WEB/Vox-Regular.woff",
"format": "woff"
},
{
"file": "./WEB/Vox-Regular.woff2",
"format": "woff2"
}
],
"styles": {
"font-weight": 400
}
},
{
"name": "Bold",
"files": [
{
"file": "./TTF/Vox-Bold.ttf",
"format": "truetype"
},
{
"file": "./WEB/Vox-Bold.woff",
"format": "woff"
},
{
"file": "./WEB/Vox-Bold.woff2",
"format": "woff2"
}
],
"styles": {
"font-weight": "bold"
}
},
{
"name": "Light",
"files": [
{
"file": "./TTF/Vox-Light.ttf",
"format": "truetype"
},
{
"file": "./WEB/Vox-Light.woff",
"format": "woff"
},
{
"file": "./WEB/Vox-Light.woff2",
"format": "woff2"
}
],
"styles": {
"font-weight": 300
}
}
]
}
Are you able to share a page we can look at and inspect the css?
I can (and if it helps I definitely will) but this seems to be a deviation of what I’m actually trying to achieve. I’m trying to have both font families (Vox and Roboto) listed in the font family dropdown selector of a Rich Text editor (check first screenshot). At the moment, the behaviour seems to be very erratic, as after each deploy (using the ‘hs upload’ command), I could end up with both, either, or neither of the font families being listed.
Hope everything is clearer now.
Thank you!