diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-07 13:22:22 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-07 13:22:22 +0200 |
| commit | 69f8f7e81ca73ffbf1a0d76ccbd6cf8545caff57 (patch) | |
| tree | 3797959be60d153be79a0abcf03f93e18e7eecc7 /Map/Presentation/Complex Components/MapRender/MapRenderView.swift | |
| parent | 3fdaeab6a7fa19b0c5424de487efc37c0994c86e (diff) | |
Add font customization
Diffstat (limited to 'Map/Presentation/Complex Components/MapRender/MapRenderView.swift')
| -rw-r--r-- | Map/Presentation/Complex Components/MapRender/MapRenderView.swift | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Map/Presentation/Complex Components/MapRender/MapRenderView.swift b/Map/Presentation/Complex Components/MapRender/MapRenderView.swift index 2357013..7fd4092 100644 --- a/Map/Presentation/Complex Components/MapRender/MapRenderView.swift +++ b/Map/Presentation/Complex Components/MapRender/MapRenderView.swift @@ -22,6 +22,8 @@ struct MapRenderView: View { @Binding var document: MapDocument @Binding var evolution: StageType @AppStorage("showMapBackground") var showMapBackground: Bool = true + @AppStorage("useCustomFont") var useCustomFont: Bool = false + @AppStorage("customFontName") var customFontName: String = "Helvetica" var stage: Stage { Stage.stages(evolution) @@ -77,6 +79,7 @@ struct MapRenderView: View { MapNotes( mapSize: mapSize, lineWidth: lineWidth, notes: parsedMap.notes) } + .id("\(useCustomFont)-\(customFontName)") .offset(x: padding, y: padding).frame( width: mapSize.width + 2 * padding, height: mapSize.height + 2 * padding, alignment: .topLeading |