Skip to content

Commit

Permalink
add text font names
Browse files Browse the repository at this point in the history
  • Loading branch information
NaifAlrashed committed Aug 18, 2024
1 parent 8be5051 commit 21c403d
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 21c403d

Please sign in to comment.