From 1225454024a42697dbb1721685f3066a05f5eac8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 21 Jul 2022 15:27:35 -0700 Subject: Prefer the style fonts --- modern/src/map/main/PoiMap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modern/src/map/main/PoiMap.js') diff --git a/modern/src/map/main/PoiMap.js b/modern/src/map/main/PoiMap.js index e3364ec2..6215b45e 100644 --- a/modern/src/map/main/PoiMap.js +++ b/modern/src/map/main/PoiMap.js @@ -5,6 +5,7 @@ import { useTheme } from '@mui/styles'; import { map } from '../core/MapView'; import { useEffectAsync } from '../../reactHelper'; import { usePreference } from '../../common/util/preferences'; +import { findFonts } from '../core/mapUtil'; const PoiMap = () => { const id = 'poi'; @@ -55,7 +56,7 @@ const PoiMap = () => { 'text-field': '{name}', 'text-anchor': 'bottom', 'text-offset': [0, -0.5], - 'text-font': ['Roboto Regular'], + 'text-font': findFonts(map), 'text-size': 12, }, paint: { -- cgit v1.2.3