OptionalboldThe bold weight.
OptionalboldThe bold italic.
OptionalmediumThe medium weight.
OptionalmediumThe medium italic.
The regular weight, which every role falls back to when no nearer file is given.
OptionalregularThe regular italic.
OptionalunicodeThe characters the files given as a plain URL draw, listed as in CustomTypefaceFile.unicodeRange.
Default: the characters of the latin files that Fontsource and Google Fonts serve, which are
Basic Latin, Latin-1 and the common punctuation.
A typeface of your own for map labels, from font files you host or load from a font CDN. The SDK ships no font, and the map fetches these files itself. Set it for every label on the map through StylingFoundationsModule, or for one module's labels through their
customTypeface.Give each weight one file URL, drawing the characters in
unicodeRange, or a list of CustomTypefaceFiles with a range each, such as a font CDN'slatinandlatin-extfiles.Remarks
Example