Skip to content

Commit

Permalink
use only Roboto as font
Browse files Browse the repository at this point in the history
for simplicity (only need to download one font)
  • Loading branch information
westnordost authored Aug 13, 2024
1 parent 271b092 commit c96081a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fun createStyle(name: String, accessToken: String, languages: List<String>, colo
val defaultTextStyle = Text(
text = coalesceName(),
size = byZoom(1.0 to 13.0, 24.0 to 64.0),
fonts = listOf("Roboto Regular", "Noto Regular"),
fonts = listOf("Roboto Regular"),
color = colors.text,
outlineColor = colors.textOutline,
outlineWidth = 2.5,
Expand Down Expand Up @@ -436,7 +436,7 @@ fun createStyle(name: String, accessToken: String, languages: List<String>, colo
Layer("labels-country",
src = "place_label",
filter = listOf(tagIs("class", "country")),
paint = defaultTextStyle.copy(fonts = listOf("Roboto Bold", "Noto Bold"))
paint = defaultTextStyle.copy(fonts = listOf("Roboto Bold"))
),

Layer("labels-localities",
Expand Down

0 comments on commit c96081a

Please sign in to comment.