From cbcc11ad8b313e2ff9879b8d5c33dfa74c1ec074 Mon Sep 17 00:00:00 2001 From: Igor Demin Date: Mon, 5 Dec 2022 17:51:10 +0100 Subject: [PATCH] Fix San Francisco font as a default (macOS) (#343) In https://github.com/JetBrains/androidx/pull/296 I accidentally pushed the wrong fix, which doesn't work. Thanks Alexander Maryanovsky pointed at this [here](https://kotlinlang.slack.com/archives/C01D6HTPATV/p1670249182045759?thread_ts=1669996652.181129&cid=C01D6HTPATV) --- .../androidx/compose/ui/text/platform/DesktopFont.desktop.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/ui/ui-text/src/desktopMain/kotlin/androidx/compose/ui/text/platform/DesktopFont.desktop.kt b/compose/ui/ui-text/src/desktopMain/kotlin/androidx/compose/ui/text/platform/DesktopFont.desktop.kt index f8106a4c571a9..152aa6ec86fbc 100644 --- a/compose/ui/ui-text/src/desktopMain/kotlin/androidx/compose/ui/text/platform/DesktopFont.desktop.kt +++ b/compose/ui/ui-text/src/desktopMain/kotlin/androidx/compose/ui/text/platform/DesktopFont.desktop.kt @@ -49,7 +49,7 @@ internal actual val GenericFontFamiliesMapping by lazy { Platform.MacOS -> mapOf( FontFamily.SansSerif.name to listOf( - "San Francisco", + "System Font", "Helvetica Neue", "Helvetica" ),