ConstUse it to select or validate fonts when creating custom layers. The Noto-* faces draw every
script the map labels in. The NotoSerif-* faces draw no Arabic, and the NotoSans-*Italic
faces only Latin, Greek and Cyrillic, so end a stack that names one with the Noto-* face of the
same weight.
import { mapFonts } from '@tomtom-org/maps-sdk/map';
// Check if a font is available
if (mapFonts.includes('Noto-Bold')) {
// Use the font
}
// A serif stack, ending on the `Noto-*` face of the same weight
const textLayer = {
type: 'symbol',
layout: {
'text-font': ['NotoSerif-Bold', 'Noto-Bold']
}
};
All font faces available in the TomTom map style.