Follow-up questions

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.
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
TyphonJS (Michael)
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.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Leo The League Lion
@lordufreeman gave vote LeaguePoints™ to @mleahy (#16 • 204)
Want results from more Discord servers?
Add your server