Skip to content

Commit

Permalink
Merge pull request #47 from HudHud-Maps/add-text-font-names
Browse files Browse the repository at this point in the history
expose text font names as a modifier
  • Loading branch information
ianthetechie committed Aug 19, 2024
2 parents 8be5051 + 21c403d commit b84df18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import MapLibreSwiftMacros
@MLNStyleProperty<UIColor>("textColor", supportsInterpolation: true)
@MLNStyleProperty<Double>("textFontSize", supportsInterpolation: true)
@MLNStyleProperty<String>("text", supportsInterpolation: false)
@MLNStyleProperty<[String]?>("textFontNames", supportsInterpolation: false)
// An enum would probably be better?
@MLNStyleProperty<String>("textAnchor", supportsInterpolation: false)
@MLNStyleProperty<CGVector>("textOffset", supportsInterpolation: true)
Expand Down Expand Up @@ -148,6 +149,7 @@ private struct SymbolStyleLayerInternal: StyleLayer {
result.maximumTextWidth = definition.maximumTextWidth
result.textAnchor = definition.textAnchor
result.textOffset = definition.textOffset
result.textFontNames = definition.textFontNames

result.textHaloColor = definition.textHaloColor
result.textHaloWidth = definition.textHaloWidth
Expand Down

0 comments on commit b84df18

Please sign in to comment.