From f75050bcb7333208639c98dd4ed40d517f1cca9c Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 2 Oct 2023 16:25:37 -0700 Subject: [PATCH] windows seems incompatible with Noto Color Emoji, try falling back to their default emoji font --- lib/themes/opaque.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/themes/opaque.dart b/lib/themes/opaque.dart index 334ddeff..00daf749 100644 --- a/lib/themes/opaque.dart +++ b/lib/themes/opaque.dart @@ -1,3 +1,4 @@ +import 'dart:io'; import 'dart:ui'; import 'dart:core'; @@ -20,7 +21,7 @@ const mode_light = "light"; const mode_dark = "dark"; final TextStyle defaultSmallTextStyle = TextStyle(fontFamily: "Inter", fontWeight: FontWeight.normal, fontSize: 10); -final TextStyle defaultMessageTextStyle = TextStyle(fontFamily: "Inter", fontWeight: FontWeight.w400, fontSize: 13, fontFamilyFallback: ['Noto Color Emoji']); +final TextStyle defaultMessageTextStyle = TextStyle(fontFamily: "Inter", fontWeight: FontWeight.w400, fontSize: 13, fontFamilyFallback: [Platform.isWindows ? 'Segoe UI Emoji' : "Noto Color Emoji"]); final TextStyle defaultFormLabelTextStyle = TextStyle(fontFamily: "Inter", fontWeight: FontWeight.bold, fontSize: 20); final TextStyle defaultTextStyle = TextStyle(fontFamily: "Inter", fontWeight: FontWeight.w500, fontSize: 12); final TextStyle defaultTextButtonStyle = defaultTextStyle.copyWith(fontWeight: FontWeight.bold);