Skip to content

Commit b84df18

Browse files
authored
Merge pull request maplibre#47 from HudHud-Maps/add-text-font-names
expose text font names as a modifier
2 parents 8be5051 + 21c403d commit b84df18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import MapLibreSwiftMacros
1010
@MLNStyleProperty<UIColor>("textColor", supportsInterpolation: true)
1111
@MLNStyleProperty<Double>("textFontSize", supportsInterpolation: true)
1212
@MLNStyleProperty<String>("text", supportsInterpolation: false)
13+
@MLNStyleProperty<[String]?>("textFontNames", supportsInterpolation: false)
1314
// An enum would probably be better?
1415
@MLNStyleProperty<String>("textAnchor", supportsInterpolation: false)
1516
@MLNStyleProperty<CGVector>("textOffset", supportsInterpolation: true)
@@ -148,6 +149,7 @@ private struct SymbolStyleLayerInternal: StyleLayer {
148149
result.maximumTextWidth = definition.maximumTextWidth
149150
result.textAnchor = definition.textAnchor
150151
result.textOffset = definition.textOffset
152+
result.textFontNames = definition.textFontNames
151153

152154
result.textHaloColor = definition.textHaloColor
153155
result.textHaloWidth = definition.textHaloWidth

0 commit comments

Comments
 (0)