Follow-up questions

TMTyphonJS (Michael)3/19/2023
For Foundry v10+ here is the essential info for module integration as I gather you might want to load a font or two for whatever your module does: https://foundryvtt.com/article/v10-font-config/ When looking at the core Foundry client code check out FontConfig as this manages the process for Foundry.
UUUnknown User3/19/2023
Message Not Public
Sign In & Join Server To View
TMTyphonJS (Michael)3/20/2023
That looks correct... An example font from a module I have is:
CONFIG.fontDefinitions['Almendra'] = {
editor: true,
fonts: [
{ urls: ['modules/<YOUR MODULE ID>/assets/fonts/almendra-v15-latin-regular.woff2'] }
]
}
CONFIG.fontDefinitions['Almendra'] = {
editor: true,
fonts: [
{ urls: ['modules/<YOUR MODULE ID>/assets/fonts/almendra-v15-latin-regular.woff2'] }
]
}
You might want to check if the keys / font name is already in fontDefinitions, but otherwise that should work.
UUUnknown User3/20/2023
Message Not Public
Sign In & Join Server To View
LTLLeo The League Lion3/20/2023
@lordufreeman gave vote LeaguePoints™ to @mleahy (#16 • 204)

Looking for more? Join the community!