The best way to control Claude Code, Codex and more from any computer or phone
fix(web): [NIT] SF Pro label no longer renders in a serif in the font picker (#24082)
Co-authored-by: maria-rcks <maria@kuuro.net>
Yuvraj M. committed
Nov 15, 2026 at 10:45 UTC
189290cbf0b37ac827a0790b4ce1344428915b67
2 files changed
+18
-2
apps/web/src/appearanceFonts.ts
+12
@@ -276,6 +276,18 @@ function resolveGenericFamilyLabel(generic: string): string | null {
276
return null;
277
}
278
279
+// Synthetic Apple labels are not necessarily available as named CSS families.
280
+export function displayFontFamily(family: string): string {
281
+ const label = family
282
+ .trim()
283
+ .replace(/^(['"])(.*)\1$/, "$2")
284
+ .trim()
285
+ .toLowerCase();
286
+ if (label === "sf pro") return appearanceFontStack(family, DEFAULT_SANS_FONT_STACK);
287
+ if (label === "sf mono") return DEFAULT_CODE_FONT_STACK;
288
+ return cssFontFamilies(family) ?? "";
289
+}
290
+
291
export function resolveDefaultFamilyLabel(stack: string): string | null {
292
for (const raw of stack.split(",")) {
293
const family = raw.trim().replace(/^(['"])(.*)\1$/, "$2");
apps/web/src/components/settings/FontFamilyPicker.tsx
+6
-2
@@ -2,7 +2,11 @@ import { useLegendListRef } from "~/hooks/useLegendListRef";
2
import { LegendList, type LegendListRef } from "@legendapp/list/react";
3
import { CheckIcon } from "lucide-react";
4
import { useEffect, useRef, useState, useSyncExternalStore } from "react";
5
-import { isMonospaceFamily, queryInstalledFontFamilies } from "../../appearanceFonts";
5
+import {
6
+ displayFontFamily,
7
+ isMonospaceFamily,
8
+ queryInstalledFontFamilies,
9
+} from "../../appearanceFonts";
10
import {
11
Combobox,
12
ComboboxEmpty,
@@ -155,7 +159,7 @@ export function FontFamilyPicker({
159
return (
160
<ComboboxItem hideIndicator index={index} key={item} value={item}>
161
<div className="flex w-full min-w-0 items-center justify-between gap-2">
158
- <span className="min-w-0 truncate" style={{ fontFamily: family }}>
162
+ <span className="min-w-0 truncate" style={{ fontFamily: displayFontFamily(family) }}>
163
{family}
164
</span>
165
<span className="flex shrink-0 items-center gap-1.5">