From 21c403d5b2c22aa0aa981c6ee2fed5a301f0ceab Mon Sep 17 00:00:00 2001 From: Naif Date: Sun, 18 Aug 2024 14:20:44 +0300 Subject: [PATCH] add text font names --- Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift b/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift index 2db5f1b..bdc92c0 100644 --- a/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift +++ b/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift @@ -10,6 +10,7 @@ import MapLibreSwiftMacros @MLNStyleProperty("textColor", supportsInterpolation: true) @MLNStyleProperty("textFontSize", supportsInterpolation: true) @MLNStyleProperty("text", supportsInterpolation: false) +@MLNStyleProperty<[String]?>("textFontNames", supportsInterpolation: false) // An enum would probably be better? @MLNStyleProperty("textAnchor", supportsInterpolation: false) @MLNStyleProperty("textOffset", supportsInterpolation: true) @@ -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