Skip to content

The VS Code of video editing, built for agents.

TypeScript

Add Google Fonts Support and Enhance Font Picker Functionality

konstantin-paulusfc63b732147d
diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts
index d3e4a1b0..ecff18fc 100644
--- a/apps/cli/src/index.ts
+++ b/apps/cli/src/index.ts
@@ -290,6 +290,8 @@ program
.command("fonts")
.description(describe("fonts"))
.option("-f, --family <pattern>", field("fonts", "family"))
+ .option("-p, --provider <provider>", field("fonts", "provider"))
+ .option("--popular", field("fonts", "popular"))
.option("-w, --weights <weights...>", field("fonts", "weights"))
.option("-s, --style <style>", field("fonts", "style"))
.option("-l, --limit <n>", field("fonts", "limit"), numeric)
diff --git a/apps/desktop/src/projects.ts b/apps/desktop/src/projects.ts
index 8221bd40..24c27ecc 100644
--- a/apps/desktop/src/projects.ts
+++ b/apps/desktop/src/projects.ts
@@ -633,7 +633,7 @@ All of them talk to the running app, except \`fonts\`.
| \`listen\` | \`diffusion media listen <id\\|path>\` | Ask a multimodal model what is in an audio track. |
| \`models\` | \`diffusion models [type]\` | Generation models and their per-model constraints. |
| \`voices\` | \`diffusion voices\` | Speech voices for \`generate.voice\`. |
-| \`fonts\` | \`diffusion fonts\` | Local font families, valid as \`fontFamily\`. |
+| \`fonts\` | \`diffusion fonts\` | Google Fonts and local font families, valid as \`fontFamily\`. |
| \`logs\` | \`diffusion logs\` | Recent console output from the app. |
| \`screenshot\` | \`diffusion screenshot\` | The whole app window as a PNG. |
| \`report\` | \`diffusion report <title>\` | File a bug against the editor, with diagnostics attached. |
diff --git a/apps/web/src/components/sidebar-right/inspector/font-picker.tsx b/apps/web/src/components/sidebar-right/inspector/font-picker.tsx
new file mode 100644
index 00000000..0d42445c
--- /dev/null
+++ b/apps/web/src/components/sidebar-right/inspector/font-picker.tsx
@@ -0,0 +1,424 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+import { createEffect, createMemo, createResource, createSignal, For, onCleanup, onMount, Show } from 'solid-js';
+import { toast } from 'somoto';
+import { loadGoogleFontPreview, loadGoogleFonts, POPULAR_FONTS } from '@diffusionstudio/runtime';
+import { Button } from '@/components/ui/button';
+import { Icon } from '@/components/ui/icon';
+import { Popover, PopoverContent, PopoverPortal, PopoverTrigger } from '@/components/ui/popover';
+import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuPortal, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
+import { Separator } from '@/components/ui/separator';
+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
+import { usePermissionState } from '@/hooks/use-permission';
+import { getLocalFonts } from '@/engine/fonts';
+import { cx } from '@/lib/cva';
+
+import type { GoogleFont } from '@diffusionstudio/runtime';
+
+type FontCategory = 'popular' | 'google' | 'installed';
+
+const CATEGORIES: { value: FontCategory; label: string }[] = [
+ { value: 'popular', label: 'Popular fonts' },
+ { value: 'google', label: 'Google fonts' },
+ { value: 'installed', label: 'Installed by you' },
+];
+
+type FontEntry = { family: string; google?: GoogleFont };
+
+// The list is windowed (see FontList): the library has ~1,900 families, and
+// each mounted row loads its own preview.
+const ROW_HEIGHT = 28;
+const LIST_HEIGHT = ROW_HEIGHT * 14;
+const OVERSCAN = 4;
+
+// Where the picker was left, shared by every picker: the next one opens on
+// the same list at the same offset, as a browse picks up where it stopped.
+let lastBrowse: { category: FontCategory; scrollTop: number } | null = null;
+
+type FontDropdownProps = {
+ family: string;
+ onPreview(family: string): void;
+ onFamilyChange(family: string): void;
+ onWeightsChange(weights: string[]): void;
+};
+
+export function FontDropdown(props: FontDropdownProps) {
+ let list: HTMLDivElement | undefined;
+ let search: HTMLInputElement | undefined;
+ // The offset the list takes when it mounts on open.
+ let initialScroll: number | 'selected' = 0;
+ const [open, setOpen] = createSignal(false);
+ const [query, setQuery] = createSignal('');
+ const [category, setCategory] = createSignal<FontCategory>('popular');
+ const [active, setActive] = createSignal(-1);
+ const [scrollTop, setScrollTop] = createSignal(0);
+ const fontsPermission = usePermissionState('local-fonts');
+
+ const [catalog] = createResource(() =>
+ loadGoogleFonts().catch(() => {
+ toast.error('Failed to load Google Fonts');
+ return null;
+ }),
+ );
+
+ const [localFonts, { refetch }] = createResource(fontsPermission, async (state) => {
+ if (state !== 'granted') return [];
+ try {
+ return await getLocalFonts();
+ } catch {
+ toast.error('Failed to access local fonts, please configure the browser to allow access');
+ return [];
+ }
+ });
+
+ // Entries are built once per source, so the windowed <For> keeps a row
+ // (and its loaded preview) mounted while it stays in view.
+ const googleEntries = createMemo(() => [...(catalog.latest?.values() ?? [])].map((google): FontEntry => ({ family: google.family, google })));
+ const googleIndex = createMemo(() => new Map(googleEntries().map((entry) => [entry.family, entry])));
+ const popularEntries = createMemo(() => POPULAR_FONTS.flatMap((family) => googleIndex().get(family) ?? []));
+ const localEntries = createMemo(() =>
+ (localFonts.latest ?? []).filter((f) => !f.family.startsWith('.')).map((f): FontEntry => ({ family: f.family })),
+ );
+
+ const entries = createMemo(() => {
+ const q = query().trim().toLowerCase();
+ // Searching from the popular list searches the whole library: the
+ // family asked for is rarely among the few the list leads with.
+ const source = category() === 'installed' ? localEntries() : category() === 'google' || q ? googleEntries() : popularEntries();
+ if (!q) return source;
+ const matches = source.filter((entry) => entry.family.toLowerCase().includes(q));
+ const prefix = matches.filter((entry) => entry.family.toLowerCase().startsWith(q));
+ return prefix.length === matches.length ? matches : [...prefix, ...matches.filter((entry) => !prefix.includes(entry))];
+ });
+
+ // Report the family's weights; a Google family renders as Google's even
+ // when the machine has one by the same name.
+ createEffect(() => {
+ const google = catalog.latest?.get(props.family);
+ if (google) {
+ props.onWeightsChange(google.weights.filter((w) => w >= 100 && w <= 900 && w % 100 === 0).map(String));
+ return;
+ }
+ const local = localFonts.latest?.find((f) => f.family === props.family);
+ props.onWeightsChange([...new Set(local?.variants.map((v) => v.weight).filter((w): w is string => !!w) ?? [])]);
+ });
+
+ const scrollTo = (index: number, align: 'center' | 'nearest') => {
+ if (!list) return;
+ const top = index * ROW_HEIGHT;
+ if (align === 'center') list.scrollTop = top - (LIST_HEIGHT - ROW_HEIGHT) / 2;
+ else if (top < list.scrollTop) list.scrollTop = top;
+ else if (top + ROW_HEIGHT > list.scrollTop + LIST_HEIGHT) list.scrollTop = top + ROW_HEIGHT - LIST_HEIGHT;
+ setScrollTop(list.scrollTop);
+ };
+
+ const handleOpenChange = (isOpen: boolean) => {
+ // A search's offset is into its results, which the next open won't show.
+ if (!isOpen && open() && !query().trim()) lastBrowse = { category: category(), scrollTop: scrollTop() };
+ setQuery('');
+ setActive(-1);
+ if (isOpen) {
+ // Set up before opening: the list mounts (and scrolls) as `open` flips.
+ if (lastBrowse) {
+ setCategory(lastBrowse.category);
+ initialScroll = lastBrowse.scrollTop;
+ } else {
+ // The first open starts on the list the current family is in.
+ const google = catalog.latest?.has(props.family);
+ const popular = (POPULAR_FONTS as readonly string[]).includes(props.family);
+ setCategory(popular || (!google && !localEntries().some((e) => e.family === props.family)) ? 'popular' : google ? 'google' : 'installed');
+ initialScroll = 'selected';
+ }
+ setOpen(true);
+ return;
+ }
+ setOpen(false);
+ // Whatever was hovered last goes: only a selection authors a family, and
+ // `family` is the authored one whether or not this picker changed it.
+ props.onPreview(props.family);
+ };
+
+ const changeCategory = (value: FontCategory) => {
+ setCategory(value);
+ resetList();
+ search?.focus();
+ };
+
+ const resetList = () => {
+ initialScroll = 0;
+ setActive(query().trim() ? 0 : -1);
+ if (list) list.scrollTop = 0;
+ setScrollTop(0);
+ };
+
+ const select = (family: string) => {
+ props.onFamilyChange(family);
+ handleOpenChange(false);
+ };
+
+ const handleKeyDown = (e: KeyboardEvent) => {
+ if (e.key === 'Escape') return;
+ e.stopPropagation();
+
+ const count = entries().length;
+ if (!count) return;
+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
+ e.preventDefault();
+ const next = e.key === 'ArrowDown' ? Math.min(count - 1, active() + 1) : Math.max(0, active() - 1);
+ setActive(next);
+ scrollTo(next, 'nearest');
+ props.onPreview(entries()[next]!.family);
+ } else if (e.key === 'Enter' && active() >= 0) {
+ e.preventDefault();
+ select(entries()[active()]!.family);
+ }
+ };
+
+ const handleGrantAccess = async () => {
+ if (typeof window.queryLocalFonts !== 'function') {
+ toast.error('Local fonts are not supported in this browser');
+ return;
+ }
+ try {
+ await window.queryLocalFonts();
+ refetch();
+ } catch {
+ toast.error('Failed to access local fonts, please configure the browser to allow access');
+ }
+ };
+
+ return (
+ <Popover open={open()} onOpenChange={handleOpenChange} placement="left-start" gutter={8}>
+ <PopoverTrigger
+ class={cx(
+ "bg-input h-7 hover:bg-input/80 text-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full min-w-0 items-center gap-0 rounded-md pl-2 pr-0 text-xs whitespace-nowrap transition-colors outline-none",
+ "relative overflow-hidden after:pointer-events-none after:absolute after:inset-0 after:rounded-md after:opacity-0 after:ring-1 after:ring-inset after:ring-ring after:z-20 focus-visible:after:opacity-100 justify-between",
+ )}
+ >
+ <span class="truncate">{props.family}</span>
+ <Icon name="chevron-down" class="size-6 shrink-0 text-muted-foreground" />
+ </PopoverTrigger>
+ <PopoverPortal>
+ <PopoverContent
+ class="z-[10000] w-60 flex flex-col gap-2 rounded-xl border-border p-2 overflow-hidden shadow-[0px_0px_1px_2px_rgba(0,0,0,0.12),0px_4px_12px_8px_rgba(0,0,0,0.12),0px_12px_16px_0px_rgba(0,0,0,0.16)]"
+ onOpenAutoFocus={(e) => {
+ e.preventDefault();
+ search?.focus();
+ }}
+ >
+ <div class="relative flex h-7 shrink-0 items-center">
+ <div class="flex h-7 w-6 shrink-0 items-center justify-center overflow-clip text-muted-foreground">
+ <Icon name="search" />
+ </div>
+ <input
+ ref={search}
+ type="text"
+ value={query()}
+ onInput={(e) => {
+ setQuery(e.currentTarget.value);
+ resetList();
+ }}
+ onKeyDown={handleKeyDown}
+ placeholder="Search"
+ aria-label="Search fonts"
+ autocomplete="off"
+ class="min-w-0 flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground outline-none"
+ />
+ <DropdownMenu placement="bottom-end">
+ <Tooltip>
+ <TooltipTrigger<typeof DropdownMenuTrigger>
+ as={(triggerProps: object) => (
+ <DropdownMenuTrigger<typeof Button>
+ {...triggerProps}
+ as={(buttonProps) => (
+ <Button
+ {...buttonProps}
+ size="icon"
+ variant="ghost"
+ aria-label="Filter fonts"
+ class="text-muted-foreground data-expanded:bg-accent data-expanded:text-foreground"
+ >
+ <Icon name="preferences-adjust" class="size-6" />
+ </Button>
+ )}
+ />
+ )}
+ />
+ <TooltipContent>Filter fonts</TooltipContent>
+ </Tooltip>
+ <DropdownMenuPortal>
+ <DropdownMenuContent class="w-36">
+ <For each={CATEGORIES}>
+ {(option) => (
+ <DropdownMenuItem tone="neutral" class="gap-1 px-0 pr-2" onSelect={() => changeCategory(option.value)}>
+ <span class="flex h-7 w-6 shrink-0 items-center justify-center">
+ <Show when={category() === option.value}>
+ <Icon name="confirm-check" class="size-6 text-popover-foreground" />
+ </Show>
+ </span>
+ <span class="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap">{option.label}</span>
+ </DropdownMenuItem>
+ )}
+ </For>
+ </DropdownMenuContent>
+ </DropdownMenuPortal>
+ </DropdownMenu>
+ </div>
+
+ <Separator />
+
+ <div class="flex min-h-0 flex-col">
+ <div class="my-1.5 px-2 text-xs text-muted-foreground">
+ {CATEGORIES.find((c) => c.value === category())!.label}
+ </div>
+ <Show
+ when={category() !== 'installed' || localEntries().length}
+ fallback={
+ <div class="flex flex-col items-start gap-2 px-2 pb-1 text-xs text-muted-foreground">
+ <span>Allow access to use the fonts installed on this machine.</span>
+ <Button variant="secondary" class="text-foreground gap-0" onClick={handleGrantAccess}>
+ <Icon name="lock-closed-small" class="size-6" />
+ <span class="mr-3">Grant Access</span>
+ </Button>
+ </div>
+ }
+ >
+ <FontList
+ entries={entries()}
+ family={props.family}
+ active={active()}
+ scrollTop={scrollTop()}
+ initialScroll={initialScroll}
+ loading={catalog.loading}
+ ref={(el) => (list = el)}
+ onScroll={setScrollTop}
+ onHover={(index, family) => {
+ setActive(index);
+ props.onPreview(family);
+ }}
+ onSelect={select}
+ />
+ </Show>
+ </div>
+ </PopoverContent>
+ </PopoverPortal>
+ </Popover>
+ );
+}
+
+type FontListProps = {
+ entries: FontEntry[];
+ family: string;
+ active: number;
+ scrollTop: number;
+ initialScroll: number | 'selected';
+ loading: boolean;
+ ref(el: HTMLDivElement): void;
+ onScroll(scrollTop: number): void;
+ onHover(index: number, family: string): void;
+ onSelect(family: string): void;
+};
+
+/** The windowed list: only the rows in view, plus a few either side, mount. */
+function FontList(props: FontListProps) {
+ let el!: HTMLDivElement;
+
+ // onMount runs once the list is in the document and laid out, where a
+ // scrollTop set on the detached element (in a ref callback) would be lost.
+ onMount(() => {
+ props.ref(el);
+ const selected = props.entries.findIndex((e) => e.family === props.family);
+ el.scrollTop = props.initialScroll === 'selected'
+ ? selected * ROW_HEIGHT - (LIST_HEIGHT - ROW_HEIGHT) / 2
+ : props.initialScroll;
+ props.onScroll(el.scrollTop);
+ });
+
+ const visibleRows = createMemo(() => {
+ const start = Math.max(0, Math.floor(props.scrollTop / ROW_HEIGHT) - OVERSCAN);
+ const end = Math.min(props.entries.length, Math.ceil((props.scrollTop + LIST_HEIGHT) / ROW_HEIGHT) + OVERSCAN);
+ return { start, rows: props.entries.slice(start, end) };
+ });
+
+ return (
+ <div
+ ref={el}
+ class="overflow-y-auto"
+ style={{ height: `${Math.min(LIST_HEIGHT, Math.max(1, props.entries.length) * ROW_HEIGHT)}px` }}
+ onScroll={(e) => props.onScroll(e.currentTarget.scrollTop)}
+ >
+ <Show
+ when={props.entries.length}
+ fallback={
+ <div class="flex h-7 items-center px-2 text-xs text-muted-foreground">
+ {props.loading ? 'Loading fonts…' : 'No fonts found'}
+ </div>
+ }
+ >
+ <div class="relative" style={{ height: `${props.entries.length * ROW_HEIGHT}px` }}>
+ <For each={visibleRows().rows}>
+ {(entry, i) => {
+ const index = () => visibleRows().start + i();
+ return (
+ <FontRow
+ entry={entry}
+ top={index() * ROW_HEIGHT}
+ selected={entry.family === props.family}
+ active={index() === props.active}
+ onHover={() => props.onHover(index(), entry.family)}
+ onSelect={() => props.onSelect(entry.family)}
+ />
+ );
+ }}
+ </For>
+ </div>
+ </Show>
+ </div>
+ );
+}
+
+type FontRowProps = {
+ entry: FontEntry;
+ top: number;
+ selected: boolean;
+ active: boolean;
+ onHover(): void;
+ onSelect(): void;
+};
+
+/** One family, its name set in the family itself once the preview lands. */
+function FontRow(props: FontRowProps) {
+ const [face, setFace] = createSignal(props.entry.google ? undefined : props.entry.family);
+
+ onMount(() => {
+ const google = props.entry.google;
+ if (!google) return;
+ // A row scrolled past in a fling never asks for its preview.
+ const timer = setTimeout(() => {
+ loadGoogleFontPreview(google).then(setFace).catch(() => {});
+ }, 80);
+ onCleanup(() => clearTimeout(timer));
+ });
+
+ return (
+ <button
+ type="button"
+ tabIndex={-1}
+ data-highlighted={props.active ? '' : undefined}
+ class="absolute inset-x-0 flex h-7 min-h-7 cursor-default select-none items-center gap-1 rounded-md bg-popover px-0 pr-2 text-left text-xs text-foreground outline-hidden data-[highlighted]:bg-primary data-[highlighted]:text-primary-foreground"
+
+ style={{ top: `${props.top}px`, 'font-family': face() ? `"${face()}", Inter` : undefined }}
+ onPointerEnter={() => props.onHover()}
+ onClick={() => props.onSelect()}
+ >
+ <span class="flex h-7 w-6 shrink-0 items-center justify-center">
+ <Show when={props.selected}>
+ <Icon name="confirm-check" class="size-6 text-popover-foreground" />
+ </Show>
+ </span>
+ <span class="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap">{props.entry.family}</span>
+ </button>
+ );
+}
diff --git a/apps/web/src/components/sidebar-right/inspector/text.tsx b/apps/web/src/components/sidebar-right/inspector/text.tsx
index 79cd2ffd..e7524400 100644
--- a/apps/web/src/components/sidebar-right/inspector/text.tsx
+++ b/apps/web/src/components/sidebar-right/inspector/text.tsx
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-import { createEffect, createMemo, createResource, createSignal, For, Show, onMount, onCleanup } from 'solid-js';
+import { createEffect, createMemo, createSignal, Show } from 'solid-js';
import { ControlRow } from '@/components/ui/control-group';
import { Icon } from '@/components/ui/icon';
import { PanelSection } from '@/components/ui/panel-section';
@@ -16,20 +16,6 @@ import {
SelectPortal,
} from '@/components/ui/select';
import { ControlledTextField } from '@/components/ui/text-field';
-import {
- DropdownMenu,
- DropdownMenuCheckboxItem,
- DropdownMenuContent,
- DropdownMenuGroup,
- DropdownMenuGroupLabel,
- DropdownMenuPortal,
- DropdownMenuSeparator,
- DropdownMenuTrigger,
-} from '@/components/ui/dropdown-menu';
-import { Button } from '@/components/ui/button';
-import { cx } from '@/lib/cva';
-import { toast } from 'somoto';
-import { usePermissionState } from '@/hooks/use-permission';
import { useHas, useTrait, useWorld } from '@diffusionstudio/koota-solid';
import {
Chars,
@@ -41,13 +27,10 @@ import {
TextStyle,
Tool,
ToolType,
- WebFonts,
- getWebFonts,
isCaption,
isText,
- loadWebFont,
} from '@diffusionstudio/runtime';
-import { getLocalFonts } from '@/engine/fonts';
+import { FontDropdown } from './font-picker';
import { useDerived, useEditor, useTool } from '@/engine/hooks';
import { removeKeyframeTrack, syncKeyframe } from '@/engine/keyframes';
@@ -128,10 +111,6 @@ export function TextPanel(props: TextPanelProps) {
const handleFontFamilyChange = (family: string) => {
setSelectedFamily(family);
editor.editProperty(entity(), 'fontFamily', family);
-
- if (family in WebFonts) {
- void loadWebFont(world, family as keyof typeof WebFonts);
- }
};
const handleFontWeightChange = (weight: string) => {
@@ -280,164 +259,6 @@ export function TextPanel(props: TextPanelProps) {
);
}
-type FontDropdownProps = {
- family: string;
- onPreview(family: string): void;
- onFamilyChange(family: string): void;
- onWeightsChange(weights: string[]): void;
-};
-
-export function FontDropdown(props: FontDropdownProps) {
- const [webfonts] = createSignal(getWebFonts());
- const [fontQuery, setFontQuery] = createSignal('');
- const fontsPermission = usePermissionState('local-fonts');
-
- // Preload web fonts for preview
- onMount(() => {
- if (document.visibilityState !== 'visible') return;
- for (const family of Object.keys(WebFonts)) {
- const config = WebFonts[family as keyof typeof WebFonts];
- const face = new FontFace(family, `url(${config.url})`, { weight: '400' });
- face.load().then((f) => document.fonts.add(f)).catch(() => { });
- }
- });
-
- const [localFonts, { refetch }] = createResource(fontsPermission, async (state) => {
- if (state !== 'granted') return [];
- try {
- return await getLocalFonts();
- } catch {
- toast.error('Failed to access local fonts, please configure the browser to allow access');
- return [];
- }
- });
-
- // Report available weights whenever the family changes
- const allFonts = createMemo(() => [...webfonts(), ...(localFonts.latest ?? [])]);
-
- createEffect(() => {
- const match = allFonts().find(f => f.family === props.family);
- const weights = match?.variants.map(v => v.weight).filter((w): w is string => !!w) ?? [];
- props.onWeightsChange([...new Set(weights)]);
- });
-
- const filteredWebFonts = createMemo(() => {
- const q = fontQuery().trim().toLowerCase();
- if (!q) return webfonts();
- return webfonts().filter((f) => f.family.toLowerCase().includes(q));
- });
-
- const filteredLocalFonts = createMemo(() => {
- const q = fontQuery().trim().toLowerCase();
- const fonts = localFonts.latest;
- if (!fonts?.length) return [];
- if (!q) return fonts;
- return fonts.filter((f) => f.family.toLowerCase().includes(q));
- });
-
- const handleOpenChange = (isOpen: boolean) => {
- setFontQuery('');
- // Whatever was hovered last goes: only a selection authors a family, and
- // `family` is the authored one whether or not this picker changed it.
- if (!isOpen) props.onPreview(props.family);
- };
-
- const handleGrantAccess = async () => {
- if (typeof window.queryLocalFonts !== 'function') {
- toast.error('Local fonts are not supported in this browser');
- return;
- }
- try {
- await window.queryLocalFonts();
- refetch();
- } catch {
- toast.error('Failed to access local fonts, please configure the browser to allow access');
- }
- };
-
- return (
- <DropdownMenu onOpenChange={handleOpenChange} placement="left" sameWidth gutter={8}>
- <DropdownMenuTrigger
- class={cx(
- "bg-input h-7 hover:bg-input/80 text-foreground data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full items-center gap-0 rounded-md pl-2 pr-0 text-xs whitespace-nowrap transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50",
- "relative overflow-hidden after:pointer-events-none after:absolute after:inset-0 after:rounded-md after:opacity-0 after:ring-1 after:ring-inset after:ring-ring after:z-20 focus-visible:after:opacity-100 justify-between",
- "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:min-w-0 *:data-[slot=select-value]:flex-1 *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",
- )}
- >
- {props.family}
- <Icon name="chevron-down" class="size-6 text-muted-foreground" />
- </DropdownMenuTrigger>
- <DropdownMenuPortal>
- <DropdownMenuContent class="max-h-[700px] w-58 flex flex-col">
- <div class="relative flex h-7 items-center shrink-0">
- <Icon name="search" class="size-6 text-muted-foreground" />
- <input
- type="text"
- value={fontQuery()}
- onInput={(e) => setFontQuery(e.currentTarget.value)}
- onKeyDown={(e) => {
- if (e.key === 'Escape') return;
- e.stopPropagation();
- }}
- placeholder="Search"
- aria-label="Search fonts"
- autocomplete="off"
- class="min-w-0 flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground outline-none"
- />
- </div>
- <DropdownMenuSeparator />
- <div class="overflow-y-auto flex-1 flex flex-col gap-2">
- <DropdownMenuGroup>
- <DropdownMenuGroupLabel>Web Fonts</DropdownMenuGroupLabel>
- <For each={filteredWebFonts()}>
- {(font) => (
- <LazyFontItem
- family={font.family}
- checked={props.family === font.family}
- onPointerEnter={props.onPreview}
- onSelect={props.onFamilyChange}
- >
- {font.family}
- </LazyFontItem>
- )}
- </For>
- </DropdownMenuGroup>
-
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuGroupLabel>System Fonts</DropdownMenuGroupLabel>
- <Show when={!localFonts.latest?.length}>
- <Button
- variant="secondary"
- class="text-foreground gap-0"
- onClick={handleGrantAccess}
- >
- <Icon name="lock-closed-small" class="size-6" />
- <span class="mr-3">Grant Access</span>
- </Button>
- </Show>
- <Show when={filteredLocalFonts().length}>
- <For each={filteredLocalFonts()}>
- {(font) => (
- <LazyFontItem
- family={font.family}
- checked={props.family === font.family}
- onPointerEnter={props.onPreview}
- onSelect={props.onFamilyChange}
- >
- {font.family}
- </LazyFontItem>
- )}
- </For>
- </Show>
- </DropdownMenuGroup>
- </div>
- </DropdownMenuContent>
- </DropdownMenuPortal>
- </DropdownMenu>
- );
-}
-
type GrowingTextAreaProps = {
value: string;
onInput(value: string): void;
@@ -503,46 +324,6 @@ export function GrowingTextArea(props: GrowingTextAreaProps) {
);
}
-type LazyFontItemProps = {
- family: string;
- checked: boolean;
- onPointerEnter: (family: string) => void;
- onSelect: (family: string) => void;
- children: string;
-};
-
-function LazyFontItem(props: LazyFontItemProps) {
- let ref!: HTMLDivElement;
- const [visible, setVisible] = createSignal(false);
-
- onMount(() => {
- const observer = new IntersectionObserver(
- ([entry]) => {
- if (entry.isIntersecting) {
- setVisible(true);
- observer.disconnect();
- }
- },
- { threshold: 0 },
- );
- observer.observe(ref);
- onCleanup(() => observer.disconnect());
- });
-
- return (
- <DropdownMenuCheckboxItem
- ref={ref}
- checked={props.checked}
- closeOnSelect
- onSelect={() => props.onSelect(props.family)}
- onPointerEnter={() => props.onPointerEnter(props.family)}
- style={visible() ? { 'font-family': `'${props.family}', Inter` } : undefined}
- >
- <span class="truncate leading-none">{props.children}</span>
- </DropdownMenuCheckboxItem>
- );
-}
-
const ALL_FONT_WEIGHTS = Object.entries(FONT_WEIGHTS).map(([value, label]) => ({ value, label }));
const HORIZONTAL_ALIGN_TABS = [
diff --git a/apps/web/src/components/sidebar-right/inspector/variables.tsx b/apps/web/src/components/sidebar-right/inspector/variables.tsx
index f4ec82a2..80e59976 100644
--- a/apps/web/src/components/sidebar-right/inspector/variables.tsx
+++ b/apps/web/src/components/sidebar-right/inspector/variables.tsx
@@ -39,12 +39,12 @@ import {
SelectValue,
} from "@/components/ui/select";
import { For, Match, Switch, createMemo, createSignal } from "solid-js";
-import { WebFonts, loadWebFont } from "@diffusionstudio/runtime";
import { useWorld } from "@diffusionstudio/koota-solid";
import { useEditor } from "@/engine/hooks";
import { useInspectEntries } from "@/engine/inspect";
import { colorToHex, parseColor } from "@/utils/color";
-import { FontDropdown, GrowingTextArea } from "./text";
+import { FontDropdown } from "./font-picker";
+import { GrowingTextArea } from "./text";
import type { InspectEntry } from "@diffusionstudio/reconciler";
import type { InspectValue } from "@diffusionstudio/jsx";
@@ -75,7 +75,6 @@ export function VariablesSettings() {
}
function VariableControl(props: { entry: InspectEntry }) {
- const world = useWorld();
const editor = useEditor();
const entry = () => props.entry;
@@ -99,12 +98,7 @@ function VariableControl(props: { entry: InspectEntry }) {
// Hovering previews on the live signal alone; closing puts the
// committed family back (the dropdown hands it back itself).
onPreview={(family) => entry().set(family)}
- onFamilyChange={(family) => {
- commit(family);
- if (family in WebFonts) {
- void loadWebFont(world, family as keyof typeof WebFonts);
- }
- }}
+ onFamilyChange={(family) => commit(family)}
onWeightsChange={() => {}}
/>
</ControlRow>
diff --git a/apps/web/src/dapi/handlers/fonts.ts b/apps/web/src/dapi/handlers/fonts.ts
index 9414645f..94782200 100644
--- a/apps/web/src/dapi/handlers/fonts.ts
+++ b/apps/web/src/dapi/handlers/fonts.ts
@@ -3,47 +3,71 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { DapiError, FONT_LIMIT } from "@diffusionstudio/dapi";
-import { FontStyle } from "@diffusionstudio/runtime";
+import { FontStyle, googleFontUrl, loadGoogleFonts, POPULAR_FONTS } from "@diffusionstudio/runtime";
import { getLocalFonts } from "@/engine/fonts";
import type { FontFamily } from "@diffusionstudio/dapi";
import type { ToolHandler } from "../handler";
+const POPULAR_RANK = new Map<string, number>(POPULAR_FONTS.map((family, i) => [family, i]));
+
/**
- * The machine's fonts, from the same Local Font Access listing the text
- * inspector shows, so the tool answers alike on every platform and names
- * exactly the families the editor can render. The catalog knows two styles;
- * an oblique is an italic to anyone choosing a font.
+ * The fonts the text inspector offers: the Google Fonts library and the
+ * machine's own, from the same Local Font Access listing, so the tool names
+ * exactly the families the editor can render. A family in both is Google's,
+ * as it renders. The catalog knows two styles; an oblique is an italic to
+ * anyone choosing a font.
*/
-export const fonts: ToolHandler<"fonts"> = async ({ family, weights, style, limit = FONT_LIMIT }) => {
+export const fonts: ToolHandler<"fonts"> = async ({ family, provider, popular, weights, style, limit = FONT_LIMIT }) => {
const pattern = family?.toLowerCase();
const wanted = weights && weights.length > 0 ? new Set(weights) : null;
-
- const local = await getLocalFonts().catch((e: Error) => {
- throw new DapiError("unsupported", `The local fonts could not be listed: ${e.message}`);
- });
+ const matches = (name: string) =>
+ (!pattern || name.toLowerCase().includes(pattern)) && (!popular || POPULAR_RANK.has(name));
const families: FontFamily[] = [];
- for (const entry of local) {
- if (entry.family.startsWith(".") || (pattern && !entry.family.toLowerCase().includes(pattern))) continue;
-
- const variants = entry.variants
- .map((v) => ({
- weight: v.weight ?? "400",
- style: v.style === FontStyle.NORMAL ? ("normal" as const) : ("italic" as const),
- source: v.source,
- }))
- .filter((v) => (!wanted || wanted.has(v.weight)) && (!style || v.style === style));
-
- if (variants.length > 0) {
- families.push({
+ const push = (entry: FontFamily) => {
+ const variants = entry.variants.filter((v) => (!wanted || wanted.has(v.weight)) && (!style || v.style === style));
+ if (variants.length > 0) families.push({ ...entry, variants });
+ };
+
+ const google = provider === "local" ? null : await loadGoogleFonts();
+ for (const font of google?.values() ?? []) {
+ if (!matches(font.family)) continue;
+ push({
+ family: font.family,
+ provider: "google",
+ category: font.category,
+ stylesheet: googleFontUrl(font),
+ variants: [
+ ...font.weights.map((w) => ({ weight: String(w), style: "normal" as const })),
+ ...font.italics.map((w) => ({ weight: String(w), style: "italic" as const })),
+ ],
+ });
+ }
+
+ if (provider !== "google" && !popular) {
+ // Without the permission there are only the Google families, unless the
+ // installed ones were asked for by name.
+ const local = await getLocalFonts().catch((e: Error) => {
+ if (provider === "local") throw new DapiError("unsupported", `The local fonts could not be listed: ${e.message}`);
+ return [];
+ });
+ for (const entry of local) {
+ if (entry.family.startsWith(".") || google?.has(entry.family) || !matches(entry.family)) continue;
+ push({
family: entry.family,
- variants
+ provider: "local",
+ variants: entry.variants.map((v) => ({
+ weight: v.weight ?? "400",
+ style: v.style === FontStyle.NORMAL ? ("normal" as const) : ("italic" as const),
+ source: v.source,
+ })),
});
- };
+ }
}
- families.sort((a, b) => a.family.localeCompare(b.family));
+ const rank = (name: string) => POPULAR_RANK.get(name) ?? Infinity;
+ families.sort((a, b) => rank(a.family) - rank(b.family) || a.family.localeCompare(b.family));
return { families: families.slice(0, limit), total: families.length };
};
diff --git a/docs/reference/jsx/fonts.md b/docs/reference/jsx/fonts.md
index 48c8909d..2fd510e5 100644
--- a/docs/reference/jsx/fonts.md
+++ b/docs/reference/jsx/fonts.md
@@ -1,30 +1,37 @@
# Fonts
-Both text paths draw with fonts **installed on the machine**. Discover what is available with [`fonts`](../tools/fonts.md) (filter by family, weight, or style); the active project's families are also on [`context`](../tools/context.md) as `fontFamilies`.
+A `<text>` can be set in any **Google Fonts** family or any font **installed on the machine**. Discover them with [`fonts`](../tools/fonts.md) (filter by family, provider, weight, or style; `popular` narrows to the display and caption faces the font picker leads with). The families the active project has loaded are on [`context`](../tools/context.md) as `fontFamilies`.
## Native `<text>`
-Name a family on the [`<text>`](./text.md) element with `fontFamily`; pick the variant with `fontWeight` and `fontStyle`. The value must be a family listed by `fonts`; an unknown family falls back to the editor default.
+Name a family on the [`<text>`](./text.md) element with `fontFamily`; pick the variant with `fontWeight` and `fontStyle`. The value must be a family listed by `fonts`; an unknown family falls back to the editor default (Inter).
```tsx
-<text fontFamily="Inter" fontWeight={700} fontSize={128} textAlign="center" textBaseline="middle">
+<text fontFamily="Bebas Neue" fontSize={128} textAlign="center" textBaseline="middle">
Hello World
</text>
```
+A Google family is downloaded the first time a text uses it, only the variants and scripts that text needs, and an export waits for it before drawing a frame. If a Google family and an installed font share a name, the Google family is used.
+
## HTML
-In [`<html>`](./html.md) you style text with ordinary CSS, so **use a locally installed font** and name it directly. The browser resolves the family from the OS:
+In [`<html>`](./html.md) you style text with ordinary CSS, and Google families are **not** loaded for you. Either link the family's stylesheet (the `stylesheet` URL that `fonts` reports), or name a locally installed font directly:
```tsx
<html width={700} height={110}>
- <div style="font:500 40px Inter;color:#fff;">Introduction</div>
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue" />
+ <div style="font:400 40px 'Bebas Neue';color:#fff;">Introduction</div>
</html>
```
-Remote web fonts work too (a Google Fonts `<link>`, or an `@font-face` with a `url()` source). However the cost is that every render then depends on the network and on the font host staying up, so a local family from [`fonts`](../tools/fonts.md) is the safer default for anything you have to be able to re-render on demand.
+```tsx
+<html width={700} height={110}>
+ <div style="font:500 40px Inter;color:#fff;">Introduction</div>
+</html>
+```
-If you want to pin an exact variant, declare an `@font-face` whose source is the CSS `local()` string that `fonts` reports for that variant (never a `url()`):
+If you want to pin an exact installed variant, declare an `@font-face` whose source is the CSS `local()` string that `fonts` reports for that variant:
```tsx
<html width={700} height={110}>
diff --git a/docs/reference/jsx/text.md b/docs/reference/jsx/text.md
index 1ffc6bb2..d6f58d55 100644
--- a/docs/reference/jsx/text.md
+++ b/docs/reference/jsx/text.md
@@ -18,7 +18,7 @@ All [common props](./elements.md#common-props), plus:
| ---- | ---- | ------- | ------- |
| children | `string` (or expressions resolving to strings) | **required** | The text content, alongside any `<textRange>`, paint, `<stroke>`, `<shadow>`, `<effect>`, `<animation>` and `<keyframeTrack>` children. |
| `color` | `string` | none | The glyph color; any CSS color, alpha ignored (use `opacity`). Drawn beneath any paint children (see [paints.md](./paints.md)); animate it with a `color` [keyframe track](./keyframes.md). A text with neither `color` nor a paint child draws no glyphs. |
-| `fontFamily` | `string` | `Inter` | A family available on the machine ([`fonts`](../tools/fonts.md)); see [fonts.md](./fonts.md). |
+| `fontFamily` | `string` | `Inter` | A Google Fonts family or one installed on the machine ([`fonts`](../tools/fonts.md)); see [fonts.md](./fonts.md). |
| `fontSize` | `number` | `16` | Px. |
| `fontWeight` | `number \| "normal" \| "bold"` | `"normal"` | CSS weights `100`–`900`. |
| `fontStyle` | `"normal" \| "italic" \| "oblique"` | `"normal"` | |
diff --git a/docs/reference/tools/README.md b/docs/reference/tools/README.md
index f3bba849..f98498f2 100644
--- a/docs/reference/tools/README.md
+++ b/docs/reference/tools/README.md
@@ -48,7 +48,7 @@ Every tool runs inside the app, so the app has to be running. Over MCP that is a
| [`voices`](./voices.md) | `diffusion voices` | Speech voices |
| [`logs`](./logs.md) | `diffusion logs` | App logs |
| [`screenshot`](./screenshot.md) | `diffusion screenshot` | Window screenshot |
-| [`fonts`](./fonts.md) | `diffusion fonts` | Local fonts |
+| [`fonts`](./fonts.md) | `diffusion fonts` | Fonts |
| [`report`](./report.md) | `diffusion report` | Report a bug |
How the surface is divided:
diff --git a/docs/reference/tools/context.md b/docs/reference/tools/context.md
index 6483c3e7..6b055ca9 100644
--- a/docs/reference/tools/context.md
+++ b/docs/reference/tools/context.md
@@ -55,7 +55,7 @@ With no project open (the app sits at the dashboard) the report is just `{ rootD
`projectDir` is the folder the app is editing, which is not necessarily the one a command was run from: check it before writing to source files.
-`fontFamilies` is what text can be drawn with right now — loaded into the world, not merely named in the source — and always includes the editor default. For every family installed on the machine, see [`fonts`](./fonts.md).
+`fontFamilies` is what text can be drawn with right now — loaded into the world, not merely named in the source — and always includes the editor default. For every family a text can name, see [`fonts`](./fonts.md).
`generations` is how a caller waits for `generate.*` declarations without blocking: generation is asynchronous, so poll this until nothing is `generating`. A `done` row's `asset` is a library path, ready for [`media_probe`](./media/probe.md) and its siblings; a `failed` row's `error` is the message the library recorded for the generation, which is what keeps it from being generated again (see [jsx/errors.md](../jsx/errors.md#failed-sources)).
diff --git a/docs/reference/tools/fonts.md b/docs/reference/tools/fonts.md
index b9f6ae62..8df8ad23 100644
--- a/docs/reference/tools/fonts.md
+++ b/docs/reference/tools/fonts.md
@@ -1,6 +1,6 @@
# fonts
-List the local fonts available on this machine. These family names are valid `fontFamily` values on <text>; each family lists its variants.
+List the fonts a <text> can be set in: every Google Fonts family (downloaded on demand) and the fonts installed on this machine. These family names are valid `fontFamily` values on <text>; each family lists its variants.
| | |
| --- | --- |
@@ -12,13 +12,15 @@ List the local fonts available on this machine. These family names are valid `fo
| Field | Type | CLI | Description |
| --- | --- | --- | --- |
| `family` | `string` | `-f, --family <pattern>` | filter to families whose name contains this (case-insensitive) |
+| `provider` | `"google" \| "local"` | `-p, --provider <provider>` | filter to Google Fonts families or to fonts installed on this machine |
+| `popular` | `boolean` | `--popular` | only the popular families the editor's font picker leads with |
| `weights` | `string[]` | `-w, --weights <weights...>` | filter to variants with the given CSS weights, e.g. ["400", "700"] |
| `style` | `"normal" \| "italic"` | `-s, --style <style>` | filter to variants with the given style, normal or italic |
| `limit` | `integer` | `-l, --limit <n>` | return at most this many families (default: 50) |
-Font families listed here are valid `fontFamily` values on [`<text>`](../jsx/text.md); see [jsx/fonts.md](../jsx/fonts.md) for how a family and variant are named in a composition, and [`context`](./context.md) for the families the open project has actually registered.
+Font families listed here are valid `fontFamily` values on [`<text>`](../jsx/text.md); see [jsx/fonts.md](../jsx/fonts.md) for how a family and variant are named in a composition, and [`context`](./context.md) for the families the open project has actually loaded.
-A machine has hundreds of families, so filter by `family` when looking for one. `total` counts every family the filters match; when it is larger than `families.length`, the limit cut the list.
+Popular families (display and caption faces common in video) come first, then the rest alphabetically. There are thousands of families, so filter by `family` when looking for one. `total` counts every family the filters match; when it is larger than `families.length`, the limit cut the list. Installed fonts are listed only once the app has been granted font access; a family that is both installed and on Google Fonts is listed once, as `google`, since that is the one the editor draws.
## Output
@@ -27,13 +29,16 @@ One JSON object:
```ts
{
families: Array<{
- family: string;
+ family: string;
+ provider: "google" | "local";
+ category?: string; // Google Fonts: sans-serif, serif, display, handwriting, monospace
+ stylesheet?: string; // Google Fonts CSS URL, for a <link> in <html>
variants: Array<{
- weight: string; // CSS weight, e.g. "400"
- style: "normal" | "italic";
- source: string; // CSS local() source
+ weight: string; // CSS weight, e.g. "400"
+ style: "normal" | "italic";
+ source?: string; // CSS local() source, for an installed font
}>;
}>;
- total: number; // families matching the filters, before the limit
+ total: number; // families matching the filters, before the limit
}
```
diff --git a/packages/dapi/src/tools/fonts.ts b/packages/dapi/src/tools/fonts.ts
index b661d246..bf471fb0 100644
--- a/packages/dapi/src/tools/fonts.ts
+++ b/packages/dapi/src/tools/fonts.ts
@@ -6,14 +6,18 @@ import { z } from "zod";
import { defineTool } from "../tool";
const FontStyle = z.enum(["normal", "italic"]);
+const FontProvider = z.enum(["google", "local"]);
export const FontFamily = z.object({
family: z.string(),
+ provider: FontProvider.describe("google: a Google Fonts family, downloaded when a <text> uses it; local: installed on this machine"),
+ category: z.string().optional().describe("Google Fonts category: sans-serif, serif, display, handwriting or monospace"),
+ stylesheet: z.string().optional().describe("Google Fonts CSS URL, for a <link> in <html>"),
variants: z.array(
z.object({
weight: z.string().describe("CSS weight, 100-900"),
style: FontStyle,
- source: z.string().describe("CSS `local()` source list"),
+ source: z.string().optional().describe("CSS `local()` source list, for an installed font"),
}),
),
});
@@ -23,11 +27,13 @@ export const FONT_LIMIT = 50;
export const fonts = defineTool({
name: "fonts",
- title: "Local fonts",
+ title: "Fonts",
description:
- "List the local fonts available on this machine. These family names are valid `fontFamily` values on <text>; each family lists its variants. A machine has hundreds of families, so filter by family name when looking for one; total tells whether the limit cut the list.",
+ "List the fonts a <text> can be set in: every Google Fonts family (downloaded on demand) and the fonts installed on this machine. These family names are valid `fontFamily` values on <text>; each family lists its variants. Popular families (display and caption faces common in video) come first, then the rest alphabetically. There are thousands of families, so filter by family name when looking for one; total tells whether the limit cut the list.",
input: z.object({
family: z.string().optional().describe("filter to families whose name contains this (case-insensitive)"),
+ provider: FontProvider.optional().describe("filter to Google Fonts families or to fonts installed on this machine"),
+ popular: z.boolean().optional().describe("only the popular families the editor's font picker leads with"),
weights: z.array(z.string()).optional().describe('filter to variants with the given CSS weights, e.g. ["400", "700"]'),
style: FontStyle.optional().describe("filter to variants with the given style, normal or italic"),
limit: z.int().min(1).optional().describe(`return at most this many families (default: ${FONT_LIMIT})`),
diff --git a/packages/runtime/scripts/google-fonts.mjs b/packages/runtime/scripts/google-fonts.mjs
new file mode 100644
index 00000000..bcb85f5a
--- /dev/null
+++ b/packages/runtime/scripts/google-fonts.mjs
@@ -0,0 +1,59 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// Regenerates src/fonts/catalog.ts from the Google Fonts metadata, the same
+// listing fonts.google.com browses: `node scripts/google-fonts.mjs`. The
+// catalog carries names, categories and weights only; the stylesheet and font
+// files are asked of the Google Fonts CSS API when a family is used.
+
+import { writeFileSync } from 'node:fs';
+import { fileURLToPath } from 'node:url';
+
+const METADATA = 'https://fonts.google.com/metadata/fonts';
+const OUT = fileURLToPath(new URL('../src/fonts/catalog.ts', import.meta.url));
+const CATEGORIES = ['Sans Serif', 'Serif', 'Display', 'Handwriting', 'Monospace'];
+
+const response = await fetch(METADATA);
+if (!response.ok) throw new Error(`${METADATA}: ${response.status}`);
+// The endpoint guards against JSON hijacking with a )]}' line.
+const { familyMetadataList } = JSON.parse((await response.text()).replace(/^\)\]\}'\s*/, ''));
+
+const rows = [];
+for (const font of familyMetadataList) {
+ const category = CATEGORIES.indexOf(font.category);
+ if (category < 0) throw new Error(`${font.family}: unknown category ${font.category}`);
+
+ const roman = [];
+ const italic = [];
+ for (const key of Object.keys(font.fonts)) {
+ const match = /^(\d+)(i?)$/.exec(key);
+ if (!match) throw new Error(`${font.family}: unknown variant ${key}`);
+ (match[2] ? italic : roman).push(Number(match[1]));
+ }
+ roman.sort((a, b) => a - b);
+ italic.sort((a, b) => a - b);
+
+ const row = [font.family, category, roman, italic];
+ const wght = font.axes.find((axis) => axis.tag === 'wght');
+ if (wght) row.push([wght.min, wght.max]);
+ rows.push(row);
+}
+
+rows.sort((a, b) => a[0].localeCompare(b[0]));
+
+writeFileSync(OUT, `/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// Generated by scripts/google-fonts.mjs from ${METADATA}; do not edit.
+// One row per family: [family, category, weights, italic weights, wght axis?].
+
+import type { GoogleFontRow } from './google';
+
+export const GOOGLE_FONT_ROWS: GoogleFontRow[] = [
+${rows.map((row) => `\t${JSON.stringify(row)},`).join('\n')}
+];
+`);
+
+console.log(`${rows.length} families written to ${OUT}`);
diff --git a/packages/runtime/src/fonts/catalog.ts b/packages/runtime/src/fonts/catalog.ts
new file mode 100644
index 00000000..0c3b6c9e
--- /dev/null
+++ b/packages/runtime/src/fonts/catalog.ts
@@ -0,0 +1,1961 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// Generated by scripts/google-fonts.mjs from https://fonts.google.com/metadata/fonts; do not edit.
+// One row per family: [family, category, weights, italic weights, wght axis?].
+
+import type { GoogleFontRow } from './google';
+
+export const GOOGLE_FONT_ROWS: GoogleFontRow[] = [
+ ["ABeeZee",0,[400],[400]],
+ ["Abel",0,[400],[]],
+ ["Abhaya Libre",1,[400,500,600,700,800],[]],
+ ["Aboreto",2,[400],[]],
+ ["Abril Fatface",2,[400],[]],
+ ["Abyssinica SIL",1,[400],[]],
+ ["Aclonica",0,[400],[]],
+ ["Acme",0,[400],[]],
+ ["Actor",0,[400],[]],
+ ["Adamina",1,[400],[]],
+ ["ADLaM Display",2,[400],[]],
+ ["Advent Pro",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Afacad",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Afacad Flux",0,[100,200,300,400,500,600,700,800,900,1000],[],[100,1000]],
+ ["Agbalumo",2,[400],[]],
+ ["Agdasima",0,[400,700],[]],
+ ["Agu Display",2,[400],[]],
+ ["Aguafina Script",3,[400],[]],
+ ["Akatab",0,[400,500,600,700,800,900],[]],
+ ["Akaya Kanadaka",2,[400],[]],
+ ["Akaya Telivigala",2,[400],[]],
+ ["Akronim",2,[400],[]],
+ ["Akshar",0,[300,400,500,600,700],[],[300,700]],
+ ["Akt",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Aladin",2,[400],[]],
+ ["Alan Sans",0,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Alata",0,[400],[]],
+ ["Alatsi",0,[400],[]],
+ ["Albert Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Aldrich",0,[400],[]],
+ ["Alef",0,[400,700],[]],
+ ["Alegreya",1,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Alegreya Sans",0,[100,300,400,500,700,800,900],[100,300,400,500,700,800,900]],
+ ["Alegreya Sans SC",0,[100,300,400,500,700,800,900],[100,300,400,500,700,800,900]],
+ ["Alegreya SC",1,[400,500,700,800,900],[400,500,700,800,900]],
+ ["Aleo",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Alex Brush",3,[400],[]],
+ ["Alexandria",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Alfa Slab One",2,[400],[]],
+ ["Alice",1,[400],[]],
+ ["Alien Block",2,[400],[]],
+ ["Alike",1,[400],[]],
+ ["Alike Angular",1,[400],[]],
+ ["Alkalami",1,[400],[]],
+ ["Alkatra",2,[400,500,600,700],[],[400,700]],
+ ["Allan",2,[400,700],[]],
+ ["Allerta",0,[400],[]],
+ ["Allerta Stencil",0,[400],[]],
+ ["Allison",3,[400],[]],
+ ["Allkin",2,[400],[]],
+ ["Allura",3,[400],[]],
+ ["Almarai",0,[300,400,700,800],[]],
+ ["Almendra",1,[400,700],[400,700]],
+ ["Almendra Display",2,[400],[]],
+ ["Almendra SC",1,[400],[]],
+ ["Alumni Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Alumni Sans Collegiate One",0,[400],[400]],
+ ["Alumni Sans Inline One",2,[400],[400]],
+ ["Alumni Sans Pinstripe",0,[400],[400]],
+ ["Alumni Sans SC",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Alyamama",1,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Amarante",2,[400],[]],
+ ["Amaranth",0,[400,700],[400,700]],
+ ["Amarna",0,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["Amatic SC",3,[400,700],[]],
+ ["Amethysta",1,[400],[]],
+ ["Amiko",0,[400,600,700],[]],
+ ["Amiri",1,[400,700],[400,700]],
+ ["Amiri Quran",1,[400],[]],
+ ["Amita",3,[400,700],[]],
+ ["Anaheim",0,[400,500,600,700,800],[],[400,800]],
+ ["Ancizar Sans",0,[100,200,300,400,500,600,700,800,900,1000],[100,200,300,400,500,600,700,800,900,1000],[100,1000]],
+ ["Ancizar Serif",1,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Andada Pro",1,[400,500,600,700,800],[400,500,600,700,800],[400,840]],
+ ["Andika",0,[400,700],[400,700]],
+ ["Anek Bangla",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Devanagari",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Gujarati",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Gurmukhi",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Kannada",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Latin",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Malayalam",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Odia",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Tamil",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Anek Telugu",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Angkor",2,[400],[]],
+ ["Annapurna SIL",1,[400,700],[]],
+ ["Annie Use Your Telescope",3,[400],[]],
+ ["Anonymous Pro",4,[400,700],[400,700]],
+ ["Anta",0,[400],[]],
+ ["Antic",0,[400],[]],
+ ["Antic Didone",1,[400],[]],
+ ["Antic Slab",1,[400],[]],
+ ["Anton",0,[400],[]],
+ ["Anton SC",0,[400],[]],
+ ["Antonio",0,[100,200,300,400,500,600,700],[],[100,700]],
+ ["Anuphan",0,[100,200,300,400,500,600,700],[],[100,700]],
+ ["Anybody",2,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Aoboshi One",1,[400],[]],
+ ["AR One Sans",0,[400,500,600,700],[],[400,700]],
+ ["Arapey",1,[400],[400]],
+ ["Arbutus",1,[400],[]],
+ ["Arbutus Slab",1,[400],[]],
+ ["Architects Daughter",3,[400],[]],
+ ["Archivo",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Archivo Black",0,[400],[]],
+ ["Archivo Narrow",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Are You Serious",3,[400],[]],
+ ["Aref Ruqaa",1,[400,700],[]],
+ ["Aref Ruqaa Ink",1,[400,700],[]],
+ ["Arima",2,[100,200,300,400,500,600,700],[],[100,700]],
+ ["Arimo",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Arizonia",3,[400],[]],
+ ["Armata",0,[400],[]],
+ ["Arsenal",0,[400,700],[400,700]],
+ ["Arsenal SC",0,[400,700],[400,700]],
+ ["Artifika",1,[400],[]],
+ ["Arvo",1,[400,700],[400,700]],
+ ["Arya",0,[400,700],[]],
+ ["Asap",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Asap Condensed",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900]],
+ ["Asap Sharp",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Asar",1,[400],[]],
+ ["Asimovian",0,[400],[]],
+ ["Asset",2,[400],[]],
+ ["Assistant",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Asta Sans",0,[300,400,500,600,700,800],[],[300,800]],
+ ["Astloch",2,[400,700],[]],
+ ["Asul",1,[400,700],[]],
+ ["Athiti",0,[200,300,400,500,600,700],[]],
+ ["Atkinson Hyperlegible",0,[400,700],[400,700]],
+ ["Atkinson Hyperlegible Mono",0,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800],[200,800]],
+ ["Atkinson Hyperlegible Next",0,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800],[200,800]],
+ ["Atma",2,[300,400,500,600,700],[]],
+ ["Atomic Age",2,[400],[]],
+ ["Aubrey",2,[400],[]],
+ ["Audiowide",2,[400],[]],
+ ["Autour One",2,[400],[]],
+ ["Average",1,[400],[]],
+ ["Average Sans",0,[400],[]],
+ ["Averia Gruesa Libre",2,[400],[]],
+ ["Averia Libre",2,[300,400,700],[300,400,700]],
+ ["Averia Sans Libre",2,[300,400,700],[300,400,700]],
+ ["Averia Serif Libre",2,[300,400,700],[300,400,700]],
+ ["Azeret Mono",4,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["B612",0,[400,700],[400,700]],
+ ["B612 Mono",4,[400,700],[400,700]],
+ ["Babylonica",3,[400],[]],
+ ["Bacasime Antique",1,[400],[]],
+ ["Bad Script",3,[400],[]],
+ ["Badeen Display",2,[400],[]],
+ ["Bagel Fat One",2,[400],[]],
+ ["Bahiana",2,[400],[]],
+ ["Bahianita",2,[400],[]],
+ ["Bai Jamjuree",0,[200,300,400,500,600,700],[200,300,400,500,600,700]],
+ ["Bakbak One",2,[400],[]],
+ ["Ballet",3,[400],[]],
+ ["Baloo 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Bhai 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Bhaijaan 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Bhaina 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Chettan 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Da 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Paaji 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Tamma 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Tammudu 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Baloo Thambi 2",2,[400,500,600,700,800],[],[400,800]],
+ ["Balsamiq Sans",2,[400,700],[400,700]],
+ ["Balthazar",1,[400],[]],
+ ["Bangers",2,[400],[]],
+ ["Barlow",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Barlow Condensed",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Barlow Semi Condensed",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Barriecito",2,[400],[]],
+ ["Barrio",2,[400],[]],
+ ["Basic",0,[400],[]],
+ ["Baskervville",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Baskervville SC",1,[400,500,600,700],[],[400,700]],
+ ["Battambang",2,[100,300,400,700,900],[]],
+ ["Baumans",2,[400],[]],
+ ["Bayon",0,[400],[]],
+ ["BBH Bartle",0,[400],[]],
+ ["BBH Bogle",0,[400],[]],
+ ["BBH Hegarty",0,[400],[]],
+ ["Be Vietnam Pro",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Beau Rivage",3,[400],[]],
+ ["Bebas Neue",0,[400],[]],
+ ["Beiruti",0,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Belanosima",0,[400,600,700],[]],
+ ["Belgrano",1,[400],[]],
+ ["Bellefair",1,[400],[]],
+ ["Belleza",0,[400],[]],
+ ["Bellota",2,[300,400,700],[300,400,700]],
+ ["Bellota Text",2,[300,400,700],[300,400,700]],
+ ["BenchNine",0,[300,400,700],[]],
+ ["Benne",1,[400],[]],
+ ["Bentham",1,[400],[]],
+ ["Berkshire Swash",3,[400],[]],
+ ["Besley",1,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Betania Patmos",3,[400],[]],
+ ["Betania Patmos GDL",3,[400],[]],
+ ["Betania Patmos In",3,[400],[]],
+ ["Betania Patmos In GDL",3,[400],[]],
+ ["Beth Ellen",3,[400],[]],
+ ["Bevan",1,[400],[400]],
+ ["BhuTuka Expanded One",1,[400],[]],
+ ["Big Shoulders",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Big Shoulders Inline",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Big Shoulders Stencil",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bigelow Rules",2,[400],[]],
+ ["Bigshot One",2,[400],[]],
+ ["Bilbo",3,[400],[]],
+ ["Bilbo Swash Caps",3,[400],[]],
+ ["BioRhyme",1,[200,300,400,500,600,700,800],[],[200,800]],
+ ["BioRhyme Expanded",1,[200,300,400,700,800],[]],
+ ["Birthstone",3,[400],[]],
+ ["Birthstone Bounce",3,[400,500],[]],
+ ["Biryani",0,[200,300,400,600,700,800,900],[]],
+ ["Bitcount",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Grid Double",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Grid Double Ink",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Grid Single",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Grid Single Ink",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Ink",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Prop Double",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Prop Double Ink",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Prop Single",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Prop Single Ink",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Single",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitcount Single Ink",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Bitter",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["BIZ UDGothic",0,[400,700],[]],
+ ["BIZ UDMincho",1,[400,700],[]],
+ ["BIZ UDPGothic",0,[400,700],[]],
+ ["BIZ UDPMincho",1,[400,700],[]],
+ ["BJCree",1,[400,500,600,700],[]],
+ ["Black And White Picture",2,[400],[]],
+ ["Black Han Sans",0,[400],[]],
+ ["Black Ops One",2,[400],[]],
+ ["Blaka",2,[400],[]],
+ ["Blaka Hollow",2,[400],[]],
+ ["Blaka Ink",2,[400],[]],
+ ["Blinker",0,[100,200,300,400,600,700,800,900],[]],
+ ["Bodoni Moda",1,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Bodoni Moda SC",1,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Bokor",2,[400],[]],
+ ["Boldonse",2,[400],[]],
+ ["Bona Nova",1,[400,700],[400]],
+ ["Bona Nova SC",1,[400,700],[400]],
+ ["Bonbon",3,[400],[]],
+ ["Bonheur Royale",3,[400],[]],
+ ["Boogaloo",2,[400],[]],
+ ["Borel",3,[400],[]],
+ ["Bowlby One",2,[400],[]],
+ ["Bowlby One SC",2,[400],[]],
+ ["Bpmf Huninn",0,[400],[]],
+ ["Bpmf Iansui",3,[400],[]],
+ ["Bpmf Zihi Kai Std",0,[400],[]],
+ ["Braah One",0,[400],[]],
+ ["Brawler",1,[400,700],[]],
+ ["Bree Serif",1,[400],[]],
+ ["Bricolage Grotesque",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Bruno Ace",2,[400],[]],
+ ["Bruno Ace SC",2,[400],[]],
+ ["Brygada 1918",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Bubblegum Sans",2,[400],[]],
+ ["Bubbler One",0,[400],[]],
+ ["Buda",2,[300],[]],
+ ["Buenard",1,[400,500,600,700],[],[400,700]],
+ ["Bungee",2,[400],[]],
+ ["Bungee Hairline",2,[400],[]],
+ ["Bungee Inline",2,[400],[]],
+ ["Bungee Outline",2,[400],[]],
+ ["Bungee Shade",2,[400],[]],
+ ["Bungee Spice",2,[400],[]],
+ ["Bungee Tint",2,[400],[]],
+ ["Butcherman",2,[400],[]],
+ ["Butterfly Kids",3,[400],[]],
+ ["Bytesized",0,[400],[]],
+ ["Caacupe One",2,[400],[]],
+ ["Cabin",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Cabin Condensed",0,[400,500,600,700],[]],
+ ["Cabin Sketch",2,[400,700],[]],
+ ["Cactus Classical Serif",1,[400],[]],
+ ["Caesar Dressing",2,[400],[]],
+ ["Cagliostro",0,[400],[]],
+ ["Cairo",0,[200,300,400,500,600,700,800,900,1000],[],[200,1000]],
+ ["Cairo Play",0,[200,300,400,500,600,700,800,900,1000],[],[200,1000]],
+ ["Cal Sans",0,[400],[]],
+ ["Caladea",1,[400,700],[400,700]],
+ ["Calistoga",2,[400],[]],
+ ["Calligraffitti",3,[400],[]],
+ ["Cambay",0,[400,700],[400,700]],
+ ["Cambo",1,[400],[]],
+ ["Candal",0,[400],[]],
+ ["Cantarell",0,[400,700],[400,700]],
+ ["Cantata One",1,[400],[]],
+ ["Cantora One",0,[400],[]],
+ ["Caprasimo",2,[400],[]],
+ ["Capriola",0,[400],[]],
+ ["Caramel",3,[400],[]],
+ ["Carattere",3,[400],[]],
+ ["Cardo",1,[400,700],[400]],
+ ["Carlito",0,[400,700],[400,700]],
+ ["Carme",0,[400],[]],
+ ["Carrois Gothic",0,[400],[]],
+ ["Carrois Gothic SC",0,[400],[]],
+ ["Carter One",2,[400],[]],
+ ["Cascadia Code",0,[200,300,400,500,600,700],[200,300,400,500,600,700],[200,700]],
+ ["Cascadia Mono",0,[200,300,400,500,600,700],[200,300,400,500,600,700],[200,700]],
+ ["Castoro",1,[400],[400]],
+ ["Castoro Titling",2,[400],[]],
+ ["Catamaran",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Caudex",1,[400,700],[400,700]],
+ ["Cause",3,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Caveat",3,[400,500,600,700],[],[400,700]],
+ ["Caveat Brush",3,[400],[]],
+ ["Cedarville Cursive",3,[400],[]],
+ ["Ceviche One",2,[400],[]],
+ ["Chakra Petch",0,[300,400,500,600,700],[300,400,500,600,700]],
+ ["Changa",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Changa One",2,[400],[400]],
+ ["Chango",2,[400],[]],
+ ["Charis SIL",1,[400,700],[400,700]],
+ ["Charm",3,[400,700],[]],
+ ["Charmonman",3,[400,700],[]],
+ ["Chathura",0,[100,300,400,700,800],[]],
+ ["Chau Philomene One",0,[400],[400]],
+ ["Chela One",2,[400],[]],
+ ["Chelsea Market",2,[400],[]],
+ ["Chenla",2,[400],[]],
+ ["Cherish",3,[400],[]],
+ ["Cherry Bomb One",2,[400],[]],
+ ["Cherry Cream Soda",2,[400],[]],
+ ["Cherry Swash",2,[400,700],[]],
+ ["Chewy",2,[400],[]],
+ ["Chicle",2,[400],[]],
+ ["Chilanka",3,[400],[]],
+ ["Chiron GoRound TC",0,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Chiron Hei HK",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Chiron Sung HK",1,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Chivo",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Chivo Mono",4,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Chocolate Classical Sans",0,[400],[]],
+ ["Chokokutai",2,[400],[]],
+ ["Chonburi",2,[400],[]],
+ ["Cinzel",1,[400,500,600,700,800,900],[],[400,900]],
+ ["Cinzel Decorative",2,[400,700,900],[]],
+ ["Clarity City",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Clicker Script",3,[400],[]],
+ ["Climate Crisis",2,[400],[]],
+ ["Coda",2,[400,800],[]],
+ ["Codystar",2,[300,400],[]],
+ ["Coiny",2,[400],[]],
+ ["Combo",2,[400],[]],
+ ["Comfortaa",2,[300,400,500,600,700],[],[300,700]],
+ ["Comforter",3,[400],[]],
+ ["Comforter Brush",3,[400],[]],
+ ["Comic Neue",3,[300,400,700],[300,400,700]],
+ ["Comic Relief",2,[400,700],[]],
+ ["Coming Soon",3,[400],[]],
+ ["Comme",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Commissioner",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Concert One",2,[400],[]],
+ ["Condiment",3,[400],[]],
+ ["Content",2,[400,700],[]],
+ ["Contrail One",2,[400],[]],
+ ["Convergence",0,[400],[]],
+ ["Cookie",3,[400],[]],
+ ["Copse",1,[400],[]],
+ ["Coral Pixels",2,[400],[]],
+ ["Corben",2,[400,700],[]],
+ ["Corinthia",3,[400,700],[]],
+ ["Cormorant",1,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Cormorant Garamond",1,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Cormorant Infant",1,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Cormorant SC",1,[300,400,500,600,700],[]],
+ ["Cormorant Unicase",1,[300,400,500,600,700],[]],
+ ["Cormorant Upright",1,[300,400,500,600,700],[]],
+ ["Cossette Texte",0,[400,700],[]],
+ ["Cossette Titre",0,[400,700],[]],
+ ["Courgette",3,[400],[]],
+ ["Courier Prime",4,[400,700],[400,700]],
+ ["Cousine",4,[400,700],[400,700]],
+ ["Coustard",1,[400,900],[]],
+ ["Covered By Your Grace",3,[400],[]],
+ ["Crafty Girls",3,[400],[]],
+ ["Creepster",2,[400],[]],
+ ["Crete Round",1,[400],[400]],
+ ["Crimson Pro",1,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Crimson Text",1,[400,600,700],[400,600,700]],
+ ["Croissant One",2,[400],[]],
+ ["Crushed",2,[400],[]],
+ ["Cuprum",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Cute Font",2,[400],[]],
+ ["Cutive",1,[400],[]],
+ ["Cutive Mono",4,[400],[]],
+ ["Dai Banna SIL",1,[300,400,500,600,700],[300,400,500,600,700]],
+ ["Damion",3,[400],[]],
+ ["Dancing Script",3,[400,500,600,700],[],[400,700]],
+ ["Danfo",1,[400],[]],
+ ["Dangrek",2,[400],[]],
+ ["Darker Grotesque",0,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Darumadrop One",2,[400],[]],
+ ["Datatype",4,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["David Libre",1,[400,500,700],[]],
+ ["Dawning of a New Day",3,[400],[]],
+ ["Days One",0,[400],[]],
+ ["Dekko",3,[400],[]],
+ ["Dela Gothic One",2,[400],[]],
+ ["Delicious Handrawn",3,[400],[]],
+ ["Delius",3,[400],[]],
+ ["Delius Swash Caps",3,[400],[]],
+ ["Delius Unicase",3,[400,700],[]],
+ ["Della Respira",1,[400],[]],
+ ["Denk One",0,[400],[]],
+ ["Devonshire",3,[400],[]],
+ ["Dhurjati",0,[400],[]],
+ ["Didact Gothic",0,[400],[]],
+ ["Diphylleia",1,[400],[]],
+ ["Diplomata",2,[400],[]],
+ ["Diplomata SC",2,[400],[]],
+ ["DM Mono",4,[300,400,500],[300,400,500]],
+ ["DM Sans",0,[100,200,300,400,500,600,700,800,900,1000],[100,200,300,400,500,600,700,800,900,1000],[100,1000]],
+ ["DM Serif Display",1,[400],[400]],
+ ["DM Serif Text",1,[400],[400]],
+ ["Do Hyeon",0,[400],[]],
+ ["Dokdo",2,[400],[]],
+ ["Domine",1,[400,500,600,700],[],[400,700]],
+ ["Donegal One",1,[400],[]],
+ ["Dongle",0,[300,400,700],[]],
+ ["Doppio One",0,[400],[]],
+ ["Dorsa",0,[400],[]],
+ ["Dosis",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["DotGothic16",0,[400],[]],
+ ["Doto",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Dr Sugiyama",3,[400],[]],
+ ["Duru Sans",0,[400],[]],
+ ["Dynalight",2,[400],[]],
+ ["DynaPuff",2,[400,500,600,700],[],[400,700]],
+ ["Eagle Lake",3,[400],[]],
+ ["East Sea Dokdo",3,[400],[]],
+ ["Eater",2,[400],[]],
+ ["EB Garamond",1,[400,500,600,700,800],[400,500,600,700,800],[400,800]],
+ ["Economica",0,[400,700],[400,700]],
+ ["Eczar",1,[400,500,600,700,800],[],[400,800]],
+ ["Edu AU VIC WA NT Arrows",3,[400,500,600,700],[],[400,700]],
+ ["Edu AU VIC WA NT Dots",3,[400,500,600,700],[],[400,700]],
+ ["Edu AU VIC WA NT Guides",3,[400,500,600,700],[],[400,700]],
+ ["Edu AU VIC WA NT Hand",3,[400,500,600,700],[],[400,700]],
+ ["Edu AU VIC WA NT Pre",3,[400,500,600,700],[],[400,700]],
+ ["Edu NSW ACT Cursive",3,[400,500,600,700],[],[400,700]],
+ ["Edu NSW ACT Foundation",3,[400,500,600,700],[],[400,700]],
+ ["Edu NSW ACT Hand Pre",3,[400,500,600,700],[],[400,700]],
+ ["Edu QLD Beginner",3,[400,500,600,700],[],[400,700]],
+ ["Edu QLD Hand",3,[400,500,600,700],[],[400,700]],
+ ["Edu SA Beginner",3,[400,500,600,700],[],[400,700]],
+ ["Edu SA Hand",3,[400,500,600,700],[],[400,700]],
+ ["Edu TAS Beginner",3,[400,500,600,700],[],[400,700]],
+ ["Edu VIC WA NT Beginner",3,[400,500,600,700],[],[400,700]],
+ ["Edu VIC WA NT Hand",3,[400,500,600,700],[],[400,700]],
+ ["Edu VIC WA NT Hand Pre",3,[400,500,600,700],[],[400,700]],
+ ["El Messiri",0,[400,500,600,700],[],[400,700]],
+ ["Electrolize",0,[400],[]],
+ ["Elms Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Elsie",2,[400,900],[]],
+ ["Elsie Swash Caps",2,[400,900],[]],
+ ["Emblema One",2,[400],[]],
+ ["Emilys Candy",2,[400],[]],
+ ["Encode Sans",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Encode Sans Condensed",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Encode Sans Expanded",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Encode Sans SC",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Encode Sans Semi Condensed",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Encode Sans Semi Expanded",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Engagement",3,[400],[]],
+ ["Englebert",0,[400],[]],
+ ["Enriqueta",1,[400,500,600,700],[]],
+ ["Ephesis",3,[400],[]],
+ ["Epilogue",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Epunda Sans",0,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Epunda Slab",1,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Erica One",2,[400],[]],
+ ["Esteban",1,[400],[]],
+ ["Estedad",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Estonia",3,[400],[]],
+ ["Euphoria Script",3,[400],[]],
+ ["Ewert",2,[400],[]],
+ ["Exile",2,[400],[]],
+ ["Exo",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Exo 2",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Expletus Sans",2,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Explora",3,[400],[]],
+ ["Faculty Glyphic",0,[400],[]],
+ ["Fahkwang",0,[200,300,400,500,600,700],[200,300,400,500,600,700]],
+ ["Familjen Grotesk",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Fanwood Text",1,[400],[400]],
+ ["Farro",0,[300,400,500,700],[]],
+ ["Farsan",2,[400],[]],
+ ["Fascinate",2,[400],[]],
+ ["Fascinate Inline",2,[400],[]],
+ ["Faster One",2,[400],[]],
+ ["Fasthand",2,[400],[]],
+ ["Fauna One",1,[400],[]],
+ ["Faustina",1,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Federant",2,[400],[]],
+ ["Federo",0,[400],[]],
+ ["Felipa",3,[400],[]],
+ ["Fenix",1,[400],[]],
+ ["Festive",3,[400],[]],
+ ["Figtree",0,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Finger Paint",2,[400],[]],
+ ["Finlandica Headline",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Finlandica Text",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Fira Code",4,[300,400,500,600,700],[],[300,700]],
+ ["Fira Mono",4,[400,500,700],[]],
+ ["Fira Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Fira Sans Condensed",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Fira Sans Extra Condensed",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Fjalla One",0,[400],[]],
+ ["Fjord One",1,[400],[]],
+ ["Flamenco",2,[300,400],[]],
+ ["Flavors",2,[400],[]],
+ ["Fleur De Leah",3,[400],[]],
+ ["Flow Block",2,[400],[]],
+ ["Flow Circular",2,[400],[]],
+ ["Flow Rounded",2,[400],[]],
+ ["Foldit",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Fondamento",3,[400],[400]],
+ ["Fontdiner Swanky",2,[400],[]],
+ ["Forum",2,[400],[]],
+ ["Fragment Mono",4,[400],[400]],
+ ["Francois One",0,[400],[]],
+ ["Frank Ruhl Libre",1,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Fraunces",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Freckle Face",2,[400],[]],
+ ["Fredericka the Great",2,[400],[]],
+ ["Fredoka",0,[300,400,500,600,700],[],[300,700]],
+ ["Freehand",2,[400],[]],
+ ["Freeman",2,[400],[]],
+ ["Fresca",0,[400],[]],
+ ["Frijole",2,[400],[]],
+ ["Fruktur",2,[400],[400]],
+ ["Fugaz One",2,[400],[]],
+ ["Fuggles",3,[400],[]],
+ ["Funnel Display",2,[300,400,500,600,700,800],[],[300,800]],
+ ["Funnel Sans",0,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Fustat",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Fuzzy Bubbles",3,[400,700],[]],
+ ["Ga Maamli",2,[400],[]],
+ ["Gabarito",2,[400,500,600,700,800,900],[],[400,900]],
+ ["Gabriela",1,[400],[]],
+ ["Gaegu",3,[300,400,700],[]],
+ ["Gafata",0,[400],[]],
+ ["Gajraj One",2,[400],[]],
+ ["Galada",2,[400],[]],
+ ["Galdeano",0,[400],[]],
+ ["Galindo",2,[400],[]],
+ ["Gamja Flower",3,[400],[]],
+ ["Gantari",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Gasoek One",0,[400],[]],
+ ["Gayathri",0,[100,400,700],[]],
+ ["Geist",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Geist Mono",4,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Geist Pixel",2,[400],[]],
+ ["Gelasio",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Gemunu Libre",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Genos",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Gentium Book Plus",1,[400,700],[400,700]],
+ ["Gentium Plus",1,[400,700],[400,700]],
+ ["Geo",0,[400],[400]],
+ ["Geologica",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Geom",0,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Geomini",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Georama",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Geostar",2,[400],[]],
+ ["Geostar Fill",2,[400],[]],
+ ["Germania One",2,[400],[]],
+ ["GFS Didot",1,[400],[]],
+ ["GFS Neohellenic",0,[400,700],[400,700]],
+ ["Gideon Roman",2,[400],[]],
+ ["Gidole",0,[400],[]],
+ ["Gidugu",0,[400],[]],
+ ["Gilda Display",1,[400],[]],
+ ["Girassol",2,[400],[]],
+ ["Give You Glory",3,[400],[]],
+ ["Glass Antiqua",2,[400],[]],
+ ["Glegoo",1,[400,700],[]],
+ ["Gloock",1,[400],[]],
+ ["Gloria Hallelujah",3,[400],[]],
+ ["Glory",0,[100,200,300,400,500,600,700,800],[100,200,300,400,500,600,700,800],[100,800]],
+ ["Gluten",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Goblin One",2,[400],[]],
+ ["Gochi Hand",3,[400],[]],
+ ["Goldman",2,[400,700],[]],
+ ["Golos Text",0,[400,500,600,700,800,900],[],[400,900]],
+ ["Google Sans",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Google Sans Code",4,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Google Sans Flex",0,[1,100,200,300,400,500,600,700,800,900,1000],[],[1,1000]],
+ ["Gorditas",2,[400,700],[]],
+ ["Gothic A1",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Gotu",0,[400],[]],
+ ["Goudy Bookletter 1911",1,[400],[]],
+ ["Gowun Batang",1,[400,700],[]],
+ ["Gowun Dodum",0,[400],[]],
+ ["Graduate",1,[400],[]],
+ ["Grand Hotel",3,[400],[]],
+ ["Grandiflora One",1,[400],[]],
+ ["Grandstander",2,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Grape Nuts",3,[400],[]],
+ ["Gravitas One",2,[400],[]],
+ ["Great Vibes",3,[400],[]],
+ ["Grechen Fuemen",3,[400],[]],
+ ["Grenze",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Grenze Gotisch",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Grey Qo",3,[400],[]],
+ ["Griffy",2,[400],[]],
+ ["Gruppo",0,[400],[]],
+ ["Gudea",0,[400,700],[400]],
+ ["Gugi",2,[400],[]],
+ ["Gulzar",1,[400],[]],
+ ["Gupter",1,[400,500,700],[]],
+ ["Gurajada",0,[400],[]],
+ ["Gveret Levin",3,[400],[]],
+ ["Gwendolyn",3,[400,700],[]],
+ ["Habibi",1,[400],[]],
+ ["Hachi Maru Pop",3,[400],[]],
+ ["Hahmlet",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Halant",1,[300,400,500,600,700],[]],
+ ["Hammersmith One",0,[400],[]],
+ ["Hanalei",2,[400],[]],
+ ["Hanalei Fill",2,[400],[]],
+ ["Handjet",2,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Handlee",3,[400],[]],
+ ["Hanken Grotesk",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Hanuman",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Happy Monkey",2,[400],[]],
+ ["Harmattan",0,[400,500,600,700],[]],
+ ["Headland One",1,[400],[]],
+ ["Hedvig Letters Sans",0,[400],[]],
+ ["Hedvig Letters Serif",1,[400],[]],
+ ["Heebo",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Henny Penny",2,[400],[]],
+ ["Hepta Slab",1,[1,100,200,300,400,500,600,700,800,900],[],[1,900]],
+ ["Herr Von Muellerhoff",3,[400],[]],
+ ["Hi Melody",3,[400],[]],
+ ["Hibur Mono",4,[400],[]],
+ ["Hina Mincho",1,[400],[]],
+ ["Hind",0,[300,400,500,600,700],[]],
+ ["Hind Guntur",0,[300,400,500,600,700],[]],
+ ["Hind Madurai",0,[300,400,500,600,700],[]],
+ ["Hind Mysuru",0,[300,400,500,600,700],[]],
+ ["Hind Siliguri",0,[300,400,500,600,700],[]],
+ ["Hind Vadodara",0,[300,400,500,600,700],[]],
+ ["Holtwood One SC",1,[400],[]],
+ ["Homemade Apple",3,[400],[]],
+ ["Homenaje",0,[400],[]],
+ ["Honk",2,[400],[]],
+ ["Host Grotesk",0,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Hubballi",0,[400],[]],
+ ["Hubot Sans",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Huninn",0,[400],[]],
+ ["Hurricane",3,[400],[]],
+ ["Iansui",3,[400],[]],
+ ["Ibarra Real Nova",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["IBM Plex Mono",4,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700]],
+ ["IBM Plex Sans",0,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["IBM Plex Sans Arabic",0,[100,200,300,400,500,600,700],[]],
+ ["IBM Plex Sans Condensed",0,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700]],
+ ["IBM Plex Sans Devanagari",0,[100,200,300,400,500,600,700],[]],
+ ["IBM Plex Sans Hebrew",0,[100,200,300,400,500,600,700],[]],
+ ["IBM Plex Sans JP",0,[100,200,300,400,500,600,700],[]],
+ ["IBM Plex Sans KR",0,[100,200,300,400,500,600,700],[]],
+ ["IBM Plex Sans Thai",0,[100,200,300,400,500,600,700],[]],
+ ["IBM Plex Sans Thai Looped",0,[100,200,300,400,500,600,700],[]],
+ ["IBM Plex Serif",1,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700]],
+ ["Iceberg",2,[400],[]],
+ ["Iceland",2,[400],[]],
+ ["Idiqlat",1,[200,300,400],[]],
+ ["IM Fell Double Pica",1,[400],[400]],
+ ["IM Fell Double Pica SC",1,[400],[]],
+ ["IM Fell DW Pica",1,[400],[400]],
+ ["IM Fell DW Pica SC",1,[400],[]],
+ ["IM Fell English",1,[400],[400]],
+ ["IM Fell English SC",1,[400],[]],
+ ["IM Fell French Canon",1,[400],[400]],
+ ["IM Fell French Canon SC",1,[400],[]],
+ ["IM Fell Great Primer",1,[400],[400]],
+ ["IM Fell Great Primer SC",1,[400],[]],
+ ["Imbue",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Imperial Script",3,[400],[]],
+ ["Imprima",0,[400],[]],
+ ["Inclusive Sans",0,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Inconsolata",4,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Inder",0,[400],[]],
+ ["Indie Flower",3,[400],[]],
+ ["Ingrid Darling",3,[400],[]],
+ ["Inika",1,[400,700],[]],
+ ["Inknut Antiqua",1,[300,400,500,600,700,800,900],[]],
+ ["Inria Sans",0,[300,400,700],[300,400,700]],
+ ["Inria Serif",1,[300,400,700],[300,400,700]],
+ ["Inspiration",3,[400],[]],
+ ["Instrument Sans",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Instrument Serif",1,[400],[400]],
+ ["Intel One Mono",4,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Inter",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Inter Tight",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Iosevka Charon",4,[300,400,500,700],[300,400,500,700]],
+ ["Iosevka Charon Mono",4,[300,400,500,700],[300,400,500,700]],
+ ["Irish Grover",2,[400],[]],
+ ["Island Moments",3,[400],[]],
+ ["Isometra",1,[400],[]],
+ ["Istok Web",0,[400,700],[400,700]],
+ ["Italiana",0,[400],[]],
+ ["Italianno",3,[400],[]],
+ ["Itim",3,[400],[]],
+ ["Jacquard 12",2,[400],[]],
+ ["Jacquard 12 Charted",2,[400],[]],
+ ["Jacquard 24",2,[400],[]],
+ ["Jacquard 24 Charted",2,[400],[]],
+ ["Jacquarda Bastarda 9",2,[400],[]],
+ ["Jacquarda Bastarda 9 Charted",2,[400],[]],
+ ["Jacques Francois",1,[400],[]],
+ ["Jacques Francois Shadow",2,[400],[]],
+ ["Jaini",2,[400],[]],
+ ["Jaini Purva",2,[400],[]],
+ ["Jaldi",0,[400,700],[]],
+ ["Jaro",0,[400],[]],
+ ["Jersey 10",2,[400],[]],
+ ["Jersey 10 Charted",2,[400],[]],
+ ["Jersey 15",2,[400],[]],
+ ["Jersey 15 Charted",2,[400],[]],
+ ["Jersey 20",2,[400],[]],
+ ["Jersey 20 Charted",2,[400],[]],
+ ["Jersey 25",2,[400],[]],
+ ["Jersey 25 Charted",2,[400],[]],
+ ["JetBrains Mono",4,[100,200,300,400,500,600,700,800],[100,200,300,400,500,600,700,800],[100,800]],
+ ["Jim Nightshade",3,[400],[]],
+ ["Joan",1,[400],[]],
+ ["Jockey One",0,[400],[]],
+ ["Jolly Lodger",2,[400],[]],
+ ["Jomhuria",2,[400],[]],
+ ["Jomolhari",1,[400],[]],
+ ["Josefin Sans",0,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["Josefin Slab",1,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["Jost",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Joti One",2,[400],[]],
+ ["Jua",0,[400],[]],
+ ["Judson",1,[400,700],[400]],
+ ["Julee",3,[400],[]],
+ ["Julius Sans One",0,[400],[]],
+ ["Junge",1,[400],[]],
+ ["Jura",0,[300,400,500,600,700],[],[300,700]],
+ ["Just Another Hand",3,[400],[]],
+ ["Just Me Again Down Here",3,[400],[]],
+ ["K2D",0,[100,200,300,400,500,600,700,800],[100,200,300,400,500,600,700,800]],
+ ["Kablammo",2,[400],[]],
+ ["Kadwa",1,[400,700],[]],
+ ["Kaisei Decol",1,[400,500,700],[]],
+ ["Kaisei HarunoUmi",1,[400,500,700],[]],
+ ["Kaisei Opti",1,[400,500,700],[]],
+ ["Kaisei Tokumin",1,[400,500,700,800],[]],
+ ["Kalam",3,[300,400,700],[]],
+ ["Kalnia",1,[100,200,300,400,500,600,700],[],[100,700]],
+ ["Kalnia Glaze",2,[100,200,300,400,500,600,700],[],[100,700]],
+ ["Kameron",1,[400,500,600,700],[],[400,700]],
+ ["Kanchenjunga",0,[400,500,600,700],[]],
+ ["Kanit",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Kantumruy Pro",0,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["Kapakana",3,[300,400],[],[300,400]],
+ ["Karantina",2,[300,400,700],[]],
+ ["Karla",0,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800],[200,800]],
+ ["Karla Tamil Inclined",0,[400,700],[]],
+ ["Karla Tamil Upright",0,[400,700],[]],
+ ["Karma",1,[300,400,500,600,700],[]],
+ ["Katibeh",2,[400],[]],
+ ["Kaushan Script",3,[400],[]],
+ ["Kavivanar",3,[400],[]],
+ ["Kavoon",2,[400],[]],
+ ["Kay Pho Du",1,[400,500,600,700],[]],
+ ["Kdam Thmor Pro",0,[400],[]],
+ ["Keania One",2,[400],[]],
+ ["Kedebideri",0,[400,500,600,700,800,900],[]],
+ ["Kelly Slab",2,[400],[]],
+ ["Kenia",2,[400],[]],
+ ["Khand",0,[300,400,500,600,700],[]],
+ ["Khmer",0,[400],[]],
+ ["Khula",0,[300,400,600,700,800],[]],
+ ["Kings",3,[400],[]],
+ ["Kirang Haerang",2,[400],[]],
+ ["Kite One",0,[400],[]],
+ ["Kiwi Maru",1,[300,400,500],[]],
+ ["Klee One",3,[400,600],[]],
+ ["Knewave",2,[400],[]],
+ ["Kodchasan",0,[200,300,400,500,600,700],[200,300,400,500,600,700]],
+ ["Kode Mono",4,[400,500,600,700],[],[400,700]],
+ ["Koh Santepheap",1,[100,300,400,700,900],[]],
+ ["KoHo",0,[200,300,400,500,600,700],[200,300,400,500,600,700]],
+ ["Kolker Brush",3,[400],[]],
+ ["Konkhmer Sleokchher",2,[400],[]],
+ ["Kosugi",0,[400],[]],
+ ["Kosugi Maru",0,[400],[]],
+ ["Kotta One",1,[400],[]],
+ ["Koulen",2,[400],[]],
+ ["Kranky",2,[400],[]],
+ ["Kreon",1,[300,400,500,600,700],[],[300,700]],
+ ["Kripa",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Kristi",3,[400],[]],
+ ["Krona One",0,[400],[]],
+ ["Krub",0,[200,300,400,500,600,700],[200,300,400,500,600,700]],
+ ["Kufam",0,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Kulim Park",0,[200,300,400,600,700],[200,300,400,600,700]],
+ ["Kumar One",2,[400],[]],
+ ["Kumar One Outline",2,[400],[]],
+ ["Kumbh Sans",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Kurale",1,[400],[]],
+ ["La Belle Aurore",3,[400],[]],
+ ["Labrada",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Lacquer",2,[400],[]],
+ ["Laila",1,[300,400,500,600,700],[]],
+ ["Lakki Reddy",3,[400],[]],
+ ["Lalezar",0,[400],[]],
+ ["Lancelot",2,[400],[]],
+ ["Langar",2,[400],[]],
+ ["Lateef",1,[200,300,400,500,600,700,800],[]],
+ ["Lato",0,[100,300,400,700,900],[100,300,400,700,900]],
+ ["Lavishly Yours",3,[400],[]],
+ ["League Gothic",0,[400],[]],
+ ["League Script",3,[400],[]],
+ ["League Spartan",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Leckerli One",3,[400],[]],
+ ["Ledger",1,[400],[]],
+ ["Lekton",4,[400,700],[400]],
+ ["Lemon",2,[400],[]],
+ ["Lemonada",2,[300,400,500,600,700],[],[300,700]],
+ ["Lexend",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Lexend Deca",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Lexend Exa",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Lexend Giga",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Lexend Mega",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Lexend Peta",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Lexend Tera",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Lexend Zetta",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Libertinus Keyboard",2,[400],[]],
+ ["Libertinus Math",2,[400],[]],
+ ["Libertinus Mono",4,[400],[]],
+ ["Libertinus Sans",0,[400,700],[400]],
+ ["Libertinus Serif",1,[400,600,700],[400,600,700]],
+ ["Libertinus Serif Display",2,[400],[]],
+ ["Libre Barcode 128",2,[400],[]],
+ ["Libre Barcode 128 Text",2,[400],[]],
+ ["Libre Barcode 39",2,[400],[]],
+ ["Libre Barcode 39 Extended",2,[400],[]],
+ ["Libre Barcode 39 Extended Text",2,[400],[]],
+ ["Libre Barcode 39 Text",2,[400],[]],
+ ["Libre Barcode EAN13 Text",2,[400],[]],
+ ["Libre Baskerville",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Libre Bodoni",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Libre Caslon Condensed",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Libre Caslon Display",1,[400],[]],
+ ["Libre Caslon Text",1,[400,700],[400]],
+ ["Libre Franklin",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Licorice",3,[400],[]],
+ ["Life Savers",2,[400,700,800],[]],
+ ["Lilex",4,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["Lilita One",2,[400],[]],
+ ["Lily Script One",2,[400],[]],
+ ["Limelight",2,[400],[]],
+ ["Linden Hill",1,[400],[400]],
+ ["LINE Seed JP",0,[100,400,700,800],[]],
+ ["Linefont",2,[100,200,300,400,500,600,700,800,900,1000],[],[4,1000]],
+ ["Lisu Bosa",1,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900]],
+ ["Liter",0,[400],[]],
+ ["Literata",1,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Liu Jian Mao Cao",3,[400],[]],
+ ["Livvic",0,[100,200,300,400,500,600,700,900],[100,200,300,400,500,600,700,900]],
+ ["Lobster",2,[400],[]],
+ ["Lobster Two",2,[400,700],[400,700]],
+ ["Londrina Outline",2,[400],[]],
+ ["Londrina Shadow",2,[400],[]],
+ ["Londrina Sketch",2,[400],[]],
+ ["Londrina Solid",2,[100,300,400,900],[]],
+ ["Long Cang",3,[400],[]],
+ ["Lora",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Love Light",3,[400],[]],
+ ["Love Ya Like A Sister",2,[400],[]],
+ ["Loved by the King",3,[400],[]],
+ ["Lovers Quarrel",3,[400],[]],
+ ["Luckiest Guy",2,[400],[]],
+ ["Lugrasimo",3,[400],[]],
+ ["Lumanosimo",3,[400],[]],
+ ["Lunasima",0,[400,700],[]],
+ ["Lusitana",1,[400,700],[]],
+ ["Lustria",1,[400],[]],
+ ["Luxurious Roman",2,[400],[]],
+ ["Luxurious Script",3,[400],[]],
+ ["LXGW Marker Gothic",0,[400],[]],
+ ["LXGW WenKai Mono TC",4,[300,400,700],[]],
+ ["LXGW WenKai TC",3,[300,400,700],[]],
+ ["M PLUS 1",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["M PLUS 1 Code",4,[100,200,300,400,500,600,700],[],[100,700]],
+ ["M PLUS 1p",0,[100,300,400,500,700,800,900],[]],
+ ["M PLUS 2",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["M PLUS Code Latin",0,[100,200,300,400,500,600,700],[],[100,700]],
+ ["M PLUS Rounded 1c",0,[100,300,400,500,700,800,900],[]],
+ ["M PLUS U",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Ma Shan Zheng",3,[400],[]],
+ ["Macondo",2,[400],[]],
+ ["Macondo Swash Caps",2,[400],[]],
+ ["Mada",0,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Madimi One",0,[400],[]],
+ ["Magra",0,[400,700],[]],
+ ["Maiden Orange",1,[400],[]],
+ ["Maitree",1,[200,300,400,500,600,700],[]],
+ ["Major Mono Display",4,[400],[]],
+ ["Mako",0,[400],[]],
+ ["Mali",3,[200,300,400,500,600,700],[200,300,400,500,600,700]],
+ ["Mallanna",0,[400],[]],
+ ["Maname",1,[400],[]],
+ ["Mandali",0,[400],[]],
+ ["Manjari",0,[100,400,700],[]],
+ ["Manrope",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Mansalva",3,[400],[]],
+ ["Manuale",1,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Manufacturing Consent",2,[400],[]],
+ ["Marcellus",1,[400],[]],
+ ["Marcellus SC",1,[400],[]],
+ ["Marck Script",3,[400],[]],
+ ["Margarine",2,[400],[]],
+ ["Marhey",2,[300,400,500,600,700],[],[300,700]],
+ ["Markazi Text",1,[400,500,600,700],[],[400,700]],
+ ["Marko One",1,[400],[]],
+ ["Marmelad",0,[400],[]],
+ ["Martel",1,[200,300,400,600,700,800,900],[]],
+ ["Martel Sans",0,[200,300,400,600,700,800,900],[]],
+ ["Martian Mono",4,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Marvel",0,[400,700],[400,700]],
+ ["Matangi",0,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Mate",1,[400],[400]],
+ ["Mate SC",1,[400],[]],
+ ["Matemasie",0,[400],[]],
+ ["Maven Pro",0,[400,500,600,700,800,900],[],[400,900]],
+ ["McLaren",2,[400],[]],
+ ["Mea Culpa",3,[400],[]],
+ ["Meddon",3,[400],[]],
+ ["MedievalSharp",2,[400],[]],
+ ["Medula One",2,[400],[]],
+ ["Meera Inimai",0,[400],[]],
+ ["Megrim",2,[400],[]],
+ ["Meie Script",3,[400],[]],
+ ["Menbere",0,[100,200,300,400,500,600,700],[],[100,700]],
+ ["Meow Script",3,[400],[]],
+ ["Merienda",3,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Merriweather",1,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Merriweather Sans",0,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Metal",2,[400],[]],
+ ["Metal Mania",2,[400],[]],
+ ["Metamorphous",2,[400],[]],
+ ["Metrophobic",0,[400],[]],
+ ["Michroma",0,[400],[]],
+ ["Micro 5",2,[400],[]],
+ ["Micro 5 Charted",2,[400],[]],
+ ["Milonga",2,[400],[]],
+ ["Miltonian",2,[400],[]],
+ ["Miltonian Tattoo",2,[400],[]],
+ ["Mina",0,[400,700],[]],
+ ["Mingzat",0,[400],[]],
+ ["Miniver",2,[400],[]],
+ ["Miranda Sans",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Miriam Libre",0,[400,500,600,700],[],[400,700]],
+ ["Mirza",1,[400,500,600,700],[]],
+ ["Miss Fajardose",3,[400],[]],
+ ["Mitr",0,[200,300,400,500,600,700],[]],
+ ["Mochiy Pop One",0,[400],[]],
+ ["Mochiy Pop P One",0,[400],[]],
+ ["Modak",2,[400],[]],
+ ["Modern Antiqua",2,[400],[]],
+ ["Moderustic",0,[300,400,500,600,700,800],[],[300,800]],
+ ["Mogra",2,[400],[]],
+ ["Mohave",0,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Moirai One",2,[400],[]],
+ ["Molengo",0,[400],[]],
+ ["Molle",3,[],[400]],
+ ["Momo Signature",0,[400],[]],
+ ["Momo Trust Display",0,[400],[]],
+ ["Momo Trust Sans",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Mona Sans",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Monda",0,[400,500,600,700],[],[400,700]],
+ ["Monofett",4,[400],[]],
+ ["Monomakh",2,[400],[]],
+ ["Monomaniac One",0,[400],[]],
+ ["Monoton",2,[400],[]],
+ ["Monsieur La Doulaise",3,[400],[]],
+ ["Montaga",1,[400],[]],
+ ["Montagu Slab",1,[100,200,300,400,500,600,700],[],[100,700]],
+ ["MonteCarlo",3,[400],[]],
+ ["Montenegrin Gothic One",1,[400],[]],
+ ["Montez",3,[400],[]],
+ ["Montserrat",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Montserrat Alternates",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Montserrat Underline",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Moo Lah Lah",2,[400],[]],
+ ["Mooli",0,[400],[]],
+ ["Moon Dance",3,[400],[]],
+ ["Moul",2,[400],[]],
+ ["Moulpali",0,[400],[]],
+ ["Mountains of Christmas",2,[400,700],[]],
+ ["Mouse Memoirs",0,[400],[]],
+ ["Mozilla Headline",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Mozilla Text",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Mr Bedfort",3,[400],[]],
+ ["Mr Dafoe",3,[400],[]],
+ ["Mr De Haviland",3,[400],[]],
+ ["Mrs Saint Delafield",3,[400],[]],
+ ["Mrs Sheppards",3,[400],[]],
+ ["Ms Madi",3,[400],[]],
+ ["Mukta",0,[200,300,400,500,600,700,800],[]],
+ ["Mukta Mahee",0,[200,300,400,500,600,700,800],[]],
+ ["Mukta Malar",0,[200,300,400,500,600,700,800],[]],
+ ["Mukta Vaani",0,[200,300,400,500,600,700,800],[]],
+ ["Mulish",0,[200,300,400,500,600,700,800,900,1000],[200,300,400,500,600,700,800,900,1000],[200,1000]],
+ ["Murecho",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["MuseoModerno",2,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["My Soul",3,[400],[]],
+ ["Mynerve",3,[400],[]],
+ ["Mystery Quest",2,[400],[]],
+ ["Nabla",2,[400],[]],
+ ["Namdhinggo",1,[400,500,600,700,800],[]],
+ ["Nanum Brush Script",3,[400],[]],
+ ["Nanum Gothic",0,[400,700,800],[]],
+ ["Nanum Gothic Coding",3,[400,700],[]],
+ ["Nanum Myeongjo",1,[400,700,800],[]],
+ ["Nanum Pen Script",3,[400],[]],
+ ["Narnoor",0,[400,500,600,700,800],[]],
+ ["Nata Sans",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["National Park",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Neonderthaw",3,[400],[]],
+ ["Nerko One",3,[400],[]],
+ ["Neucha",3,[400],[]],
+ ["Neuton",1,[200,300,400,700,800],[400]],
+ ["New Amsterdam",0,[400],[]],
+ ["New Rocker",2,[400],[]],
+ ["New Tegomin",1,[400],[]],
+ ["News Cycle",0,[400,700],[]],
+ ["Newsreader",1,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800],[200,800]],
+ ["Niconne",3,[400],[]],
+ ["Niramit",0,[200,300,400,500,600,700],[200,300,400,500,600,700]],
+ ["Nixie One",2,[400],[]],
+ ["Nobile",0,[400,500,700],[400,500,700]],
+ ["Nokora",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Norican",3,[400],[]],
+ ["Nosifer",2,[400],[]],
+ ["Notable",0,[400],[]],
+ ["Nothing You Could Do",3,[400],[]],
+ ["Noticia Text",1,[400,700],[400,700]],
+ ["Noto Color Emoji",0,[400],[]],
+ ["Noto Emoji",0,[300,400,500,600,700],[],[300,700]],
+ ["Noto Kufi Arabic",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Music",0,[400],[]],
+ ["Noto Naskh Arabic",1,[400,500,600,700],[],[400,700]],
+ ["Noto Nastaliq Urdu",1,[400,500,600,700],[],[400,700]],
+ ["Noto Rashi Hebrew",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Noto Sans Adlam",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Adlam Unjoined",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Anatolian Hieroglyphs",0,[400],[]],
+ ["Noto Sans Arabic",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Armenian",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Avestan",0,[400],[]],
+ ["Noto Sans Balinese",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Bamum",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Bassa Vah",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Batak",0,[400],[]],
+ ["Noto Sans Bengali",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Bhaiksuki",0,[400],[]],
+ ["Noto Sans Brahmi",0,[400],[]],
+ ["Noto Sans Buginese",0,[400],[]],
+ ["Noto Sans Buhid",0,[400],[]],
+ ["Noto Sans Canadian Aboriginal",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Carian",0,[400],[]],
+ ["Noto Sans Caucasian Albanian",0,[400],[]],
+ ["Noto Sans Chakma",0,[400],[]],
+ ["Noto Sans Cham",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Cherokee",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Chorasmian",0,[400],[]],
+ ["Noto Sans Coptic",0,[400],[]],
+ ["Noto Sans Cuneiform",0,[400],[]],
+ ["Noto Sans Cypriot",0,[400],[]],
+ ["Noto Sans Cypro Minoan",0,[400],[]],
+ ["Noto Sans Deseret",0,[400],[]],
+ ["Noto Sans Devanagari",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Display",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Noto Sans Duployan",0,[400,700],[]],
+ ["Noto Sans Egyptian Hieroglyphs",0,[400],[]],
+ ["Noto Sans Elbasan",0,[400],[]],
+ ["Noto Sans Elymaic",0,[400],[]],
+ ["Noto Sans Ethiopic",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Georgian",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Glagolitic",0,[400],[]],
+ ["Noto Sans Gothic",0,[400],[]],
+ ["Noto Sans Grantha",0,[400],[]],
+ ["Noto Sans Gujarati",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Gunjala Gondi",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Gurmukhi",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Hanifi Rohingya",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Hanunoo",0,[400],[]],
+ ["Noto Sans Hatran",0,[400],[]],
+ ["Noto Sans Hebrew",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans HK",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Imperial Aramaic",0,[400],[]],
+ ["Noto Sans Indic Siyaq Numbers",0,[400],[]],
+ ["Noto Sans Inscriptional Pahlavi",0,[400],[]],
+ ["Noto Sans Inscriptional Parthian",0,[400],[]],
+ ["Noto Sans Javanese",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans JP",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Kaithi",0,[400],[]],
+ ["Noto Sans Kannada",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Kawi",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Kayah Li",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Kharoshthi",0,[400],[]],
+ ["Noto Sans Khmer",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Khojki",0,[400],[]],
+ ["Noto Sans Khudawadi",0,[400],[]],
+ ["Noto Sans KR",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Lao",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Lao Looped",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Lepcha",0,[400],[]],
+ ["Noto Sans Limbu",0,[400],[]],
+ ["Noto Sans Linear A",0,[400],[]],
+ ["Noto Sans Linear B",0,[400],[]],
+ ["Noto Sans Lisu",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Lycian",0,[400],[]],
+ ["Noto Sans Lydian",0,[400],[]],
+ ["Noto Sans Mahajani",0,[400],[]],
+ ["Noto Sans Malayalam",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Mandaic",0,[400],[]],
+ ["Noto Sans Manichaean",0,[400],[]],
+ ["Noto Sans Marchen",0,[400],[]],
+ ["Noto Sans Masaram Gondi",0,[400],[]],
+ ["Noto Sans Math",0,[400],[]],
+ ["Noto Sans Mayan Numerals",0,[400],[]],
+ ["Noto Sans Medefaidrin",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Meetei Mayek",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Mende Kikakui",0,[400],[]],
+ ["Noto Sans Meroitic",0,[400],[]],
+ ["Noto Sans Miao",0,[400],[]],
+ ["Noto Sans Modi",0,[400],[]],
+ ["Noto Sans Mongolian",0,[400],[]],
+ ["Noto Sans Mono",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Mro",0,[400],[]],
+ ["Noto Sans Multani",0,[400],[]],
+ ["Noto Sans Myanmar",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Nabataean",0,[400],[]],
+ ["Noto Sans Nag Mundari",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Nandinagari",0,[400],[]],
+ ["Noto Sans New Tai Lue",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Newa",0,[400],[]],
+ ["Noto Sans NKo",0,[400],[]],
+ ["Noto Sans NKo Unjoined",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Nushu",0,[400],[]],
+ ["Noto Sans Ogham",0,[400],[]],
+ ["Noto Sans Ol Chiki",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Old Hungarian",0,[400],[]],
+ ["Noto Sans Old Italic",0,[400],[]],
+ ["Noto Sans Old North Arabian",0,[400],[]],
+ ["Noto Sans Old Permic",0,[400],[]],
+ ["Noto Sans Old Persian",0,[400],[]],
+ ["Noto Sans Old Sogdian",0,[400],[]],
+ ["Noto Sans Old South Arabian",0,[400],[]],
+ ["Noto Sans Old Turkic",0,[400],[]],
+ ["Noto Sans Oriya",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Osage",0,[400],[]],
+ ["Noto Sans Osmanya",0,[400],[]],
+ ["Noto Sans Pahawh Hmong",0,[400],[]],
+ ["Noto Sans Palmyrene",0,[400],[]],
+ ["Noto Sans Pau Cin Hau",0,[400],[]],
+ ["Noto Sans PhagsPa",0,[400],[]],
+ ["Noto Sans Phoenician",0,[400],[]],
+ ["Noto Sans Psalter Pahlavi",0,[400],[]],
+ ["Noto Sans Rejang",0,[400],[]],
+ ["Noto Sans Runic",0,[400],[]],
+ ["Noto Sans Samaritan",0,[400],[]],
+ ["Noto Sans Saurashtra",0,[400],[]],
+ ["Noto Sans SC",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Sharada",0,[400],[]],
+ ["Noto Sans Shavian",0,[400],[]],
+ ["Noto Sans Siddham",0,[400],[]],
+ ["Noto Sans SignWriting",0,[400],[]],
+ ["Noto Sans Sinhala",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Sogdian",0,[400],[]],
+ ["Noto Sans Sora Sompeng",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Soyombo",0,[400],[]],
+ ["Noto Sans Sundanese",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Sunuwar",0,[400],[]],
+ ["Noto Sans Syloti Nagri",0,[400],[]],
+ ["Noto Sans Symbols",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Symbols 2",0,[400],[]],
+ ["Noto Sans Syriac",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Syriac Eastern",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Syriac Western",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Tagalog",0,[400],[]],
+ ["Noto Sans Tagbanwa",0,[400],[]],
+ ["Noto Sans Tai Le",0,[400],[]],
+ ["Noto Sans Tai Tham",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Tai Viet",0,[400],[]],
+ ["Noto Sans Takri",0,[400],[]],
+ ["Noto Sans Tamil",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Tamil Supplement",0,[400],[]],
+ ["Noto Sans Tangsa",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans TC",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Telugu",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Thaana",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Thai",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Thai Looped",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Sans Tifinagh",0,[400],[]],
+ ["Noto Sans Tirhuta",0,[400],[]],
+ ["Noto Sans Ugaritic",0,[400],[]],
+ ["Noto Sans Vai",0,[400],[]],
+ ["Noto Sans Vithkuqi",0,[400,500,600,700],[],[400,700]],
+ ["Noto Sans Wancho",0,[400],[]],
+ ["Noto Sans Warang Citi",0,[400],[]],
+ ["Noto Sans Yi",0,[400],[]],
+ ["Noto Sans Zanabazar Square",0,[400],[]],
+ ["Noto Serif",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Noto Serif Ahom",1,[400],[]],
+ ["Noto Serif Armenian",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Balinese",1,[400],[]],
+ ["Noto Serif Bengali",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Devanagari",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Display",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Noto Serif Dives Akuru",1,[400],[]],
+ ["Noto Serif Dogra",1,[400],[]],
+ ["Noto Serif Ethiopic",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Georgian",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Grantha",1,[400],[]],
+ ["Noto Serif Gujarati",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Gurmukhi",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Hebrew",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Hentaigana",1,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Noto Serif HK",1,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Noto Serif JP",1,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Noto Serif Kannada",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Khitan Small Script",1,[400],[]],
+ ["Noto Serif Khmer",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Khojki",1,[400,500,600,700],[],[400,700]],
+ ["Noto Serif KR",1,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Noto Serif Lao",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Makasar",1,[400],[]],
+ ["Noto Serif Malayalam",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Myanmar",1,[100,200,300,400,500,600,700,800,900],[]],
+ ["Noto Serif NP Hmong",1,[400,500,600,700],[],[400,700]],
+ ["Noto Serif Old Uyghur",1,[400],[]],
+ ["Noto Serif Oriya",1,[400,500,600,700],[],[400,700]],
+ ["Noto Serif Ottoman Siyaq",1,[400],[]],
+ ["Noto Serif SC",1,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Noto Serif Sinhala",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Tamil",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Noto Serif Tangut",1,[400],[]],
+ ["Noto Serif TC",1,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Noto Serif Telugu",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Thai",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Tibetan",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Noto Serif Todhri",1,[400],[]],
+ ["Noto Serif Toto",1,[400,500,600,700],[],[400,700]],
+ ["Noto Serif Vithkuqi",1,[400,500,600,700],[],[400,700]],
+ ["Noto Serif Yezidi",1,[400,500,600,700],[],[400,700]],
+ ["Noto Traditional Nushu",0,[300,400,500,600,700],[],[300,700]],
+ ["Noto Znamenny Musical Notation",0,[400],[]],
+ ["Nova Cut",2,[400],[]],
+ ["Nova Flat",2,[400],[]],
+ ["Nova Mono",4,[400],[]],
+ ["Nova Oval",2,[400],[]],
+ ["Nova Round",2,[400],[]],
+ ["Nova Script",2,[400],[]],
+ ["Nova Slim",2,[400],[]],
+ ["Nova Square",2,[400],[]],
+ ["NTR",0,[400],[]],
+ ["Numans",0,[400],[]],
+ ["Nunito",0,[200,300,400,500,600,700,800,900,1000],[200,300,400,500,600,700,800,900,1000],[200,1000]],
+ ["Nunito Sans",0,[200,300,400,500,600,700,800,900,1000],[200,300,400,500,600,700,800,900,1000],[200,1000]],
+ ["Nuosu SIL",0,[400],[]],
+ ["Odibee Sans",2,[400],[]],
+ ["Odor Mean Chey",1,[400],[]],
+ ["Offside",2,[400],[]],
+ ["Oi",2,[400],[]],
+ ["Ojuju",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Old Standard TT",1,[400,700],[400]],
+ ["Oldenburg",2,[400],[]],
+ ["Ole",3,[400],[]],
+ ["Oleo Script",2,[400,700],[]],
+ ["Oleo Script Swash Caps",2,[400,700],[]],
+ ["Onest",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Oooh Baby",3,[400],[]],
+ ["Open Sans",0,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Oranienbaum",1,[400],[]],
+ ["Orbit",0,[400],[]],
+ ["Orbitron",0,[400,500,600,700,800,900],[],[400,900]],
+ ["Oregano",2,[400],[400]],
+ ["Orelega One",2,[400],[]],
+ ["Orienta",0,[400],[]],
+ ["Original Surfer",2,[400],[]],
+ ["Oswald",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Outfit",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Over the Rainbow",3,[400],[]],
+ ["Overlock",2,[400,700,900],[400,700,900]],
+ ["Overlock SC",2,[400],[]],
+ ["Overpass",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Overpass Mono",4,[300,400,500,600,700],[],[300,700]],
+ ["Ovo",1,[400],[]],
+ ["Oxanium",2,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Oxygen",0,[300,400,700],[]],
+ ["Oxygen Mono",4,[400],[]],
+ ["Pacifico",3,[400],[]],
+ ["Padauk",0,[400,700],[]],
+ ["Padyakke Expanded One",1,[400],[]],
+ ["Palanquin",0,[100,200,300,400,500,600,700],[]],
+ ["Palanquin Dark",0,[400,500,600,700],[]],
+ ["Palette Mosaic",2,[400],[]],
+ ["Pangolin",3,[400],[]],
+ ["Paprika",2,[400],[]],
+ ["Parastoo",1,[400,500,600,700],[],[400,700]],
+ ["Parisienne",3,[400],[]],
+ ["Parkinsans",0,[300,400,500,600,700,800],[],[300,800]],
+ ["Passero One",2,[400],[]],
+ ["Passion One",2,[400,700,900],[]],
+ ["Passions Conflict",3,[400],[]],
+ ["Pathway Extreme",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Pathway Gothic One",0,[400],[]],
+ ["Patrick Hand",3,[400],[]],
+ ["Patrick Hand SC",3,[400],[]],
+ ["Pattaya",0,[400],[]],
+ ["Patua One",2,[400],[]],
+ ["Pavanam",0,[400],[]],
+ ["Paytone One",0,[400],[]],
+ ["Peddana",1,[400],[]],
+ ["Peralta",1,[400],[]],
+ ["Permanent Marker",3,[400],[]],
+ ["Petemoss",3,[400],[]],
+ ["Petit Formal Script",3,[400],[]],
+ ["Petrona",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Phetsarath",0,[400,700],[]],
+ ["Philosopher",0,[400,700],[400,700]],
+ ["Phudu",2,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Piazzolla",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Piedra",2,[400],[]],
+ ["Pinyon Script",3,[400],[]],
+ ["Pirata One",2,[400],[]],
+ ["Pixelify Sans",2,[400,500,600,700],[],[400,700]],
+ ["Plaster",2,[400],[]],
+ ["Platypi",1,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Play",0,[400,700],[]],
+ ["Playball",2,[400],[]],
+ ["Playfair",1,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Playfair Display",1,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Playfair Display SC",1,[400,700,900],[400,700,900]],
+ ["Playpen Sans",3,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Playpen Sans Arabic",3,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Playpen Sans Deva",3,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Playpen Sans Hebrew",3,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Playpen Sans Thai",3,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Playwrite AR",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite AR Guides",3,[400],[]],
+ ["Playwrite AT",3,[100,200,300,400],[100,200,300,400],[100,400]],
+ ["Playwrite AT Guides",3,[400],[400]],
+ ["Playwrite AU NSW",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite AU NSW Guides",3,[400],[]],
+ ["Playwrite AU QLD",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite AU QLD Guides",3,[400],[]],
+ ["Playwrite AU SA",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite AU SA Guides",3,[400],[]],
+ ["Playwrite AU TAS",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite AU TAS Guides",3,[400],[]],
+ ["Playwrite AU VIC",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite AU VIC Guides",3,[400],[]],
+ ["Playwrite BE VLG",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite BE VLG Guides",3,[400],[]],
+ ["Playwrite BE WAL",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite BE WAL Guides",3,[400],[]],
+ ["Playwrite BR",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite BR Guides",3,[400],[]],
+ ["Playwrite CA",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite CA Guides",3,[400],[]],
+ ["Playwrite CL",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite CL Guides",3,[400],[]],
+ ["Playwrite CO",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite CO Guides",3,[400],[]],
+ ["Playwrite CU",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite CU Guides",3,[400],[]],
+ ["Playwrite CZ",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite CZ Guides",3,[400],[]],
+ ["Playwrite DE Grund",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite DE Grund Guides",3,[400],[]],
+ ["Playwrite DE LA",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite DE LA Guides",3,[400],[]],
+ ["Playwrite DE SAS",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite DE SAS Guides",3,[400],[]],
+ ["Playwrite DE VA",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite DE VA Guides",3,[400],[]],
+ ["Playwrite DK Loopet",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite DK Loopet Guides",3,[400],[]],
+ ["Playwrite DK Uloopet",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite DK Uloopet Guides",3,[400],[]],
+ ["Playwrite ES",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite ES Deco",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite ES Deco Guides",3,[400],[]],
+ ["Playwrite ES Guides",3,[400],[]],
+ ["Playwrite FR Moderne",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite FR Moderne Guides",3,[400],[]],
+ ["Playwrite FR Trad",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite FR Trad Guides",3,[400],[]],
+ ["Playwrite GB J",3,[100,200,300,400],[100,200,300,400],[100,400]],
+ ["Playwrite GB J Guides",3,[400],[400]],
+ ["Playwrite GB S",3,[100,200,300,400],[100,200,300,400],[100,400]],
+ ["Playwrite GB S Guides",3,[400],[400]],
+ ["Playwrite HR",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite HR Guides",3,[400],[]],
+ ["Playwrite HR Lijeva",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite HR Lijeva Guides",3,[400],[]],
+ ["Playwrite HU",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite HU Guides",3,[400],[]],
+ ["Playwrite ID",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite ID Guides",3,[400],[]],
+ ["Playwrite IE",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite IE Guides",3,[400],[]],
+ ["Playwrite IN",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite IN Guides",3,[400],[]],
+ ["Playwrite IS",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite IS Guides",3,[400],[]],
+ ["Playwrite IT Moderna",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite IT Moderna Guides",3,[400],[]],
+ ["Playwrite IT Trad",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite IT Trad Guides",3,[400],[]],
+ ["Playwrite MX",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite MX Guides",3,[400],[]],
+ ["Playwrite NG Modern",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite NG Modern Guides",3,[400],[]],
+ ["Playwrite NL",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite NL Guides",3,[400],[]],
+ ["Playwrite NO",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite NO Guides",3,[400],[]],
+ ["Playwrite NZ",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite NZ Basic",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite NZ Basic Guides",3,[400],[]],
+ ["Playwrite NZ Guides",3,[400],[]],
+ ["Playwrite PE",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite PE Guides",3,[400],[]],
+ ["Playwrite PL",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite PL Guides",3,[400],[]],
+ ["Playwrite PT",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite PT Guides",3,[400],[]],
+ ["Playwrite RO",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite RO Guides",3,[400],[]],
+ ["Playwrite SK",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite SK Guides",3,[400],[]],
+ ["Playwrite TZ",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite TZ Guides",3,[400],[]],
+ ["Playwrite US Modern",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite US Modern Guides",3,[400],[]],
+ ["Playwrite US Trad",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite US Trad Guides",3,[400],[]],
+ ["Playwrite VN",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite VN Guides",3,[400],[]],
+ ["Playwrite ZA",3,[100,200,300,400],[],[100,400]],
+ ["Playwrite ZA Guides",3,[400],[]],
+ ["Pliant",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Plus Jakarta Sans",0,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800],[200,800]],
+ ["Pochaevsk",2,[400],[]],
+ ["Podkova",1,[400,500,600,700,800],[],[400,800]],
+ ["Poetsen One",2,[400],[]],
+ ["Poiret One",2,[400],[]],
+ ["Poller One",2,[400],[]],
+ ["Poltawski Nowy",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Poly",1,[400],[400]],
+ ["Pompiere",2,[400],[]],
+ ["Ponnala",2,[400],[]],
+ ["Ponomar",2,[400],[]],
+ ["Pontano Sans",0,[300,400,500,600,700],[],[300,700]],
+ ["Poor Story",2,[400],[]],
+ ["Poppins",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Port Lligat Sans",0,[400],[]],
+ ["Port Lligat Slab",1,[400],[]],
+ ["Potta One",2,[400],[]],
+ ["Pragati Narrow",0,[400,700],[]],
+ ["Praise",3,[400],[]],
+ ["Prata",1,[400],[]],
+ ["Preahvihear",0,[400],[]],
+ ["Press Start 2P",2,[400],[]],
+ ["Pridi",1,[200,300,400,500,600,700],[]],
+ ["Princess Sofia",3,[400],[]],
+ ["Prociono",1,[400],[]],
+ ["Prompt",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Prosto One",2,[400],[]],
+ ["Protest Guerrilla",2,[400],[]],
+ ["Protest Revolution",2,[400],[]],
+ ["Protest Riot",2,[400],[]],
+ ["Protest Strike",2,[400],[]],
+ ["Proza Libre",0,[400,500,600,700,800],[400,500,600,700,800]],
+ ["PT Mono",4,[400],[]],
+ ["PT Sans",0,[400,700],[400,700]],
+ ["PT Sans Caption",0,[400,700],[]],
+ ["PT Sans Narrow",0,[400,700],[]],
+ ["PT Serif",1,[400,700],[400,700]],
+ ["PT Serif Caption",1,[400],[400]],
+ ["Public Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Puppies Play",3,[400],[]],
+ ["Puritan",0,[400,700],[400,700]],
+ ["Purple Purse",2,[400],[]],
+ ["Qahiri",0,[400],[]],
+ ["Quando",1,[400],[]],
+ ["Quantico",0,[400,700],[400,700]],
+ ["Quattrocento",1,[400,700],[]],
+ ["Quattrocento Sans",0,[400,700],[400,700]],
+ ["Questrial",0,[400],[]],
+ ["Quicksand",0,[300,400,500,600,700],[],[300,700]],
+ ["Quintessential",3,[400],[]],
+ ["Qwigley",3,[400],[]],
+ ["Qwitcher Grypen",3,[400,700],[]],
+ ["Racing Sans One",2,[400],[]],
+ ["Radio Canada",0,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Radio Canada Big",0,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Radley",1,[400],[400]],
+ ["Rajdhani",0,[300,400,500,600,700],[]],
+ ["Rakkas",2,[400],[]],
+ ["Raleway",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Raleway Dots",2,[400],[]],
+ ["Ramabhadra",0,[400],[]],
+ ["Ramaraja",1,[400],[]],
+ ["Rambla",0,[400,700],[400,700]],
+ ["Rammetto One",2,[400],[]],
+ ["Rampart One",2,[400],[]],
+ ["Ramsina",1,[400],[]],
+ ["Ranchers",2,[400],[]],
+ ["Rancho",3,[400],[]],
+ ["Ranga",2,[400,700],[]],
+ ["Rasa",1,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Rationale",0,[400],[]],
+ ["Ravi Prakash",2,[400],[]],
+ ["Readex Pro",0,[200,300,400,500,600,700],[],[160,700]],
+ ["Recursive",0,[300,400,500,600,700,800,900,1000],[],[300,1000]],
+ ["Red Hat Display",0,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Red Hat Mono",4,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Red Hat Text",0,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Red Rose",2,[300,400,500,600,700],[],[300,700]],
+ ["Redacted",2,[400],[]],
+ ["Redacted Script",2,[300,400,700],[]],
+ ["Reddit Mono",4,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Reddit Sans",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Reddit Sans Condensed",0,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Redressed",3,[400],[]],
+ ["Reem Kufi",0,[400,500,600,700],[],[400,700]],
+ ["Reem Kufi Fun",0,[400,500,600,700],[],[400,700]],
+ ["Reem Kufi Ink",0,[400],[]],
+ ["Reenie Beanie",3,[400],[]],
+ ["Reggae One",2,[400],[]],
+ ["REM",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Rethink Sans",0,[400,500,600,700,800],[400,500,600,700,800],[400,800]],
+ ["Revalia",2,[400],[]],
+ ["Rhodium Libre",1,[400],[]],
+ ["Ribeye",2,[400],[]],
+ ["Ribeye Marrow",2,[400],[]],
+ ["Righteous",2,[400],[]],
+ ["Risque",2,[400],[]],
+ ["Road Rage",2,[400],[]],
+ ["Roboto",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Roboto Condensed",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Roboto Flex",0,[100,200,300,400,500,600,700,800,900,1000],[],[100,1000]],
+ ["Roboto Mono",4,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["Roboto Serif",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Roboto Slab",1,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Rochester",3,[400],[]],
+ ["Rock 3D",2,[400],[]],
+ ["Rock Salt",3,[400],[]],
+ ["RocknRoll One",0,[400],[]],
+ ["Rokkitt",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Romanesco",3,[400],[]],
+ ["Ropa Sans",0,[400],[400]],
+ ["Rosario",0,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Rosarivo",1,[400],[400]],
+ ["Rouge Script",3,[400],[]],
+ ["Rowdies",2,[300,400,700],[]],
+ ["Rozha One",1,[400],[]],
+ ["Rubik",0,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Rubik 80s Fade",2,[400],[]],
+ ["Rubik Beastly",2,[400],[]],
+ ["Rubik Broken Fax",2,[400],[]],
+ ["Rubik Bubbles",2,[400],[]],
+ ["Rubik Burned",2,[400],[]],
+ ["Rubik Dirt",2,[400],[]],
+ ["Rubik Distressed",2,[400],[]],
+ ["Rubik Doodle Shadow",2,[400],[]],
+ ["Rubik Doodle Triangles",2,[400],[]],
+ ["Rubik Gemstones",2,[400],[]],
+ ["Rubik Glitch",2,[400],[]],
+ ["Rubik Glitch Pop",2,[400],[]],
+ ["Rubik Iso",2,[400],[]],
+ ["Rubik Lines",2,[400],[]],
+ ["Rubik Maps",2,[400],[]],
+ ["Rubik Marker Hatch",2,[400],[]],
+ ["Rubik Maze",2,[400],[]],
+ ["Rubik Microbe",2,[400],[]],
+ ["Rubik Mono One",0,[400],[]],
+ ["Rubik Moonrocks",2,[400],[]],
+ ["Rubik Pixels",2,[400],[]],
+ ["Rubik Puddles",2,[400],[]],
+ ["Rubik Scribble",2,[400],[]],
+ ["Rubik Spray Paint",2,[400],[]],
+ ["Rubik Storm",2,[400],[]],
+ ["Rubik Vinyl",2,[400],[]],
+ ["Rubik Wet Paint",2,[400],[]],
+ ["Ruda",0,[400,500,600,700,800,900],[],[400,900]],
+ ["Rufina",1,[400,700],[]],
+ ["Ruge Boogie",3,[400],[]],
+ ["Ruluko",0,[400],[]],
+ ["Rum Raisin",0,[400],[]],
+ ["Ruslan Display",2,[400],[]],
+ ["Russo One",0,[400],[]],
+ ["Ruthie",3,[400],[]],
+ ["Ruwudu",1,[400,500,600,700],[]],
+ ["Rye",2,[400],[]],
+ ["Sacramento",3,[400],[]],
+ ["Sahitya",1,[400,700],[]],
+ ["Sail",2,[400],[]],
+ ["Saira",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Saira Condensed",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Saira Extra Condensed",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Saira Semi Condensed",0,[100,200,300,400,500,600,700,800,900],[]],
+ ["Saira Stencil",2,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Salsa",2,[400],[]],
+ ["Sanchez",1,[400],[400]],
+ ["Sancreek",2,[400],[]],
+ ["Sankofa Display",0,[400],[]],
+ ["Sansation",0,[300,400,700],[300,400,700]],
+ ["Sansita",0,[400,700,800,900],[400,700,800,900]],
+ ["Sansita Swashed",2,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Sarabun",0,[100,200,300,400,500,600,700,800],[100,200,300,400,500,600,700,800]],
+ ["Sarala",0,[400,700],[]],
+ ["Sarina",2,[400],[]],
+ ["Sarpanch",0,[400,500,600,700,800,900],[]],
+ ["Sassy Frass",3,[400],[]],
+ ["Satisfy",3,[400],[]],
+ ["Savate",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Sawarabi Gothic",0,[400],[]],
+ ["Sawarabi Mincho",1,[400],[]],
+ ["Scada",0,[400,700],[400,700]],
+ ["Scheherazade New",1,[400,500,600,700],[]],
+ ["Schibsted Grotesk",0,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Schoolbell",3,[400],[]],
+ ["Science Gothic",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Scope One",1,[400],[]],
+ ["Scoutie Sans",0,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800],[200,800]],
+ ["Seaweed Script",2,[400],[]],
+ ["Secular One",0,[400],[]],
+ ["Sedan",1,[400],[400]],
+ ["Sedan SC",1,[400],[]],
+ ["Sedgwick Ave",3,[400],[]],
+ ["Sedgwick Ave Display",3,[400],[]],
+ ["Sekuya",2,[400],[]],
+ ["Sen",0,[400,500,600,700,800],[],[400,800]],
+ ["Send Flowers",3,[400],[]],
+ ["Sevillana",2,[400],[]],
+ ["Seymour One",0,[400],[]],
+ ["Shadows Into Light",3,[400],[]],
+ ["Shadows Into Light Two",3,[400],[]],
+ ["Shafarik",2,[400],[]],
+ ["Shalimar",3,[400],[]],
+ ["Shantell Sans",2,[300,400,500,600,700,800],[300,400,500,600,700,800],[300,800]],
+ ["Shanti",0,[400],[]],
+ ["Share",0,[400,700],[400,700]],
+ ["Share Tech",0,[400],[]],
+ ["Share Tech Mono",4,[400],[]],
+ ["Shippori Antique",0,[400],[]],
+ ["Shippori Antique B1",0,[400],[]],
+ ["Shippori Mincho",1,[400,500,600,700,800],[]],
+ ["Shippori Mincho B1",1,[400,500,600,700,800],[]],
+ ["Shizuru",2,[400],[]],
+ ["Shojumaru",2,[400],[]],
+ ["Short Stack",3,[400],[]],
+ ["Shrikhand",2,[400],[]],
+ ["Siemreap",0,[400],[]],
+ ["Sigmar",2,[400],[]],
+ ["Sigmar One",2,[400],[]],
+ ["Signika",0,[300,400,500,600,700],[],[300,700]],
+ ["Signika Negative",0,[300,400,500,600,700],[],[300,700]],
+ ["Silkscreen",2,[400,700],[]],
+ ["Simonetta",2,[400,900],[400,900]],
+ ["Single Day",2,[400],[]],
+ ["Sintony",0,[400,700],[]],
+ ["Sirin Stencil",2,[400],[]],
+ ["Sirivennela",0,[400],[]],
+ ["Six Caps",0,[400],[]],
+ ["Sixtyfour",4,[400],[]],
+ ["Sixtyfour Convergence",4,[400],[]],
+ ["Skranji",2,[400,700],[]],
+ ["Slabo 13px",1,[400],[]],
+ ["Slabo 27px",1,[400],[]],
+ ["Slackey",2,[400],[]],
+ ["Slackside One",3,[400],[]],
+ ["Smokum",2,[400],[]],
+ ["Smooch",3,[400],[]],
+ ["Smooch Sans",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Smythe",2,[400],[]],
+ ["SN Pro",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Sniglet",2,[400,800],[]],
+ ["Snippet",0,[400],[]],
+ ["Snowburst One",2,[400],[]],
+ ["Sofadi One",2,[400],[]],
+ ["Sofia",3,[400],[]],
+ ["Sofia Sans",0,[1,100,200,300,400,500,600,700,800,900,1000],[1,100,200,300,400,500,600,700,800,900,1000],[1,1000]],
+ ["Sofia Sans Condensed",0,[1,100,200,300,400,500,600,700,800,900,1000],[1,100,200,300,400,500,600,700,800,900,1000],[1,1000]],
+ ["Sofia Sans Extra Condensed",0,[1,100,200,300,400,500,600,700,800,900,1000],[1,100,200,300,400,500,600,700,800,900,1000],[1,1000]],
+ ["Sofia Sans Semi Condensed",0,[1,100,200,300,400,500,600,700,800,900,1000],[1,100,200,300,400,500,600,700,800,900,1000],[1,1000]],
+ ["Solitreo",3,[400],[]],
+ ["Solway",1,[300,400,500,700,800],[]],
+ ["Sometype Mono",4,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Song Myung",1,[400],[]],
+ ["Sono",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Sonsie One",2,[400],[]],
+ ["Sora",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Sorts Mill Goudy",1,[400],[400]],
+ ["Sour Gummy",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Source Code Pro",4,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Source Sans 3",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Source Serif 4",1,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Space Grotesk",0,[300,400,500,600,700],[],[300,700]],
+ ["Space Mono",4,[400,700],[400,700]],
+ ["Special Elite",2,[400],[]],
+ ["Special Gothic",0,[400,500,600,700],[],[400,700]],
+ ["Special Gothic Condensed One",0,[400],[]],
+ ["Special Gothic Expanded One",0,[400],[]],
+ ["Spectral",1,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800]],
+ ["Spectral SC",1,[200,300,400,500,600,700,800],[200,300,400,500,600,700,800]],
+ ["Spicy Rice",2,[400],[]],
+ ["Spinnaker",0,[400],[]],
+ ["Spirax",2,[400],[]],
+ ["Splash",3,[400],[]],
+ ["Spline Sans",0,[300,400,500,600,700],[],[300,700]],
+ ["Spline Sans Mono",4,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Squada One",2,[400],[]],
+ ["Square Peg",3,[400],[]],
+ ["Sree Krushnadevaraya",1,[400],[]],
+ ["Sriracha",3,[400],[]],
+ ["Srisakdi",2,[400,700],[]],
+ ["Staatliches",2,[400],[]],
+ ["Stack Sans Headline",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Stack Sans Notch",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Stack Sans Text",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Stalemate",3,[400],[]],
+ ["Stalinist One",2,[400],[]],
+ ["Stardos Stencil",2,[400,700],[]],
+ ["Stick",0,[400],[]],
+ ["Stick No Bills",0,[200,300,400,500,600,700,800],[],[200,800]],
+ ["Stint Ultra Condensed",1,[400],[]],
+ ["Stint Ultra Expanded",1,[400],[]],
+ ["STIX Two Math",1,[400],[]],
+ ["STIX Two Text",1,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Stoke",1,[300,400],[]],
+ ["Story Script",0,[400],[]],
+ ["Strait",0,[400],[]],
+ ["Strichpunkt Sans",0,[400,500,600,700,800,900],[],[400,900]],
+ ["Style Script",3,[400],[]],
+ ["Stylish",0,[400],[]],
+ ["Sue Ellen Francisco",3,[400],[]],
+ ["Suez One",1,[400],[]],
+ ["Sulphur Point",0,[300,400,700],[]],
+ ["Sumana",1,[400,700],[]],
+ ["Sunflower",0,[300,500,700],[]],
+ ["Sunshiney",3,[400],[]],
+ ["Supermercado One",2,[400],[]],
+ ["Sura",1,[400,700],[]],
+ ["Suranna",1,[400],[]],
+ ["Suravaram",1,[400],[]],
+ ["SUSE",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["SUSE Mono",0,[100,200,300,400,500,600,700,800],[100,200,300,400,500,600,700,800],[100,800]],
+ ["Suwannaphum",1,[100,300,400,700,900],[]],
+ ["Swanky and Moo Moo",3,[400],[]],
+ ["Syncopate",0,[400,700],[]],
+ ["Syne",0,[400,500,600,700,800],[],[400,800]],
+ ["Syne Mono",4,[400],[]],
+ ["Syne Tactile",2,[400],[]],
+ ["Tac One",0,[400],[]],
+ ["Tagesschrift",2,[400],[]],
+ ["Tai Heritage Pro",1,[400,700],[]],
+ ["Tajawal",0,[200,300,400,500,700,800,900],[]],
+ ["Tangerine",3,[400,700],[]],
+ ["Tapestry",3,[400],[]],
+ ["Taprom",2,[400],[]],
+ ["TASA Explorer",0,[400,500,600,700,800],[],[400,800]],
+ ["TASA Orbiter",0,[400,500,600,700,800],[],[400,800]],
+ ["Tauri",0,[400],[]],
+ ["Taviraj",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Teachers",0,[400,500,600,700,800],[400,500,600,700,800],[400,800]],
+ ["Teko",0,[300,400,500,600,700],[],[300,700]],
+ ["Tektur",2,[400,500,600,700,800,900],[],[400,900]],
+ ["Telex",0,[400],[]],
+ ["Tenali Ramakrishna",0,[400],[]],
+ ["Tenor Sans",0,[400],[]],
+ ["Text Me One",0,[400],[]],
+ ["Texturina",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Thasadith",0,[400,700],[400,700]],
+ ["The Girl Next Door",3,[400],[]],
+ ["The Nautigal",3,[400,700],[]],
+ ["Tienne",1,[400,700,900],[]],
+ ["TikTok Sans",0,[300,400,500,600,700,800,900],[],[300,900]],
+ ["Tillana",2,[400,500,600,700,800],[]],
+ ["Tilt Neon",2,[400],[]],
+ ["Tilt Prism",2,[400],[]],
+ ["Tilt Warp",2,[400],[]],
+ ["Timmana",0,[400],[]],
+ ["Tinos",1,[400,700],[400,700]],
+ ["Tiny5",0,[400],[]],
+ ["Tiro Bangla",1,[400],[400]],
+ ["Tiro Devanagari Hindi",1,[400],[400]],
+ ["Tiro Devanagari Marathi",1,[400],[400]],
+ ["Tiro Devanagari Sanskrit",1,[400],[400]],
+ ["Tiro Gurmukhi",1,[400],[400]],
+ ["Tiro Kannada",1,[400],[400]],
+ ["Tiro Tamil",1,[400],[400]],
+ ["Tiro Telugu",1,[400],[400]],
+ ["Tirra",0,[400,500,600,700,800,900],[]],
+ ["Titan One",2,[400],[]],
+ ["Titillium Web",0,[200,300,400,600,700,900],[200,300,400,600,700]],
+ ["Tomorrow",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Tourney",2,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Trade Winds",2,[400],[]],
+ ["Train One",2,[400],[]],
+ ["Triodion",2,[400],[]],
+ ["Trirong",1,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900]],
+ ["Trispace",0,[100,200,300,400,500,600,700,800],[],[100,800]],
+ ["Trocchi",1,[400],[]],
+ ["Trochut",2,[400,700],[400]],
+ ["Truculenta",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Trykker",1,[400],[]],
+ ["Tsukimi Rounded",0,[300,400,500,600,700],[]],
+ ["Tuffy",0,[400,700],[400,700]],
+ ["Tulpen One",2,[400],[]],
+ ["Turret Road",2,[200,300,400,500,700,800],[]],
+ ["Twinkle Star",3,[400],[]],
+ ["Ubuntu",0,[300,400,500,700],[300,400,500,700]],
+ ["Ubuntu Condensed",0,[400],[]],
+ ["Ubuntu Mono",4,[400,700],[400,700]],
+ ["Ubuntu Sans",0,[100,200,300,400,500,600,700,800],[100,200,300,400,500,600,700,800],[100,800]],
+ ["Ubuntu Sans Mono",4,[400,500,600,700],[400,500,600,700],[400,700]],
+ ["Uchen",1,[400],[]],
+ ["Ultra",1,[400],[]],
+ ["Unbounded",0,[200,300,400,500,600,700,800,900],[],[200,900]],
+ ["Uncial Antiqua",2,[400],[]],
+ ["Underdog",2,[400],[]],
+ ["Unica One",2,[400],[]],
+ ["UnifrakturCook",2,[700],[]],
+ ["UnifrakturMaguntia",2,[400],[]],
+ ["Unkempt",2,[400,700],[]],
+ ["Unlock",2,[400],[]],
+ ["Unna",1,[400,700],[400,700]],
+ ["UoqMunThenKhung",1,[400],[]],
+ ["Updock",3,[400],[]],
+ ["Urbanist",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Valley Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Vampiro One",2,[400],[]],
+ ["Varela",0,[400],[]],
+ ["Varela Round",0,[400],[]],
+ ["Varta",0,[300,400,500,600,700],[],[300,700]],
+ ["Vast Shadow",1,[400],[]],
+ ["Vazirmatn",0,[100,200,300,400,500,600,700,800,900],[],[100,900]],
+ ["Vend Sans",0,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Vesper Libre",1,[400,500,700,900],[]],
+ ["Viaoda Libre",2,[400],[]],
+ ["Vibes",2,[400],[]],
+ ["Vibur",3,[400],[]],
+ ["Victor Mono",4,[100,200,300,400,500,600,700],[100,200,300,400,500,600,700],[100,700]],
+ ["Vidaloka",1,[400],[]],
+ ["Viga",0,[400],[]],
+ ["Vina Sans",2,[400],[]],
+ ["Voces",0,[400],[]],
+ ["Volkhov",1,[400,700],[400,700]],
+ ["Vollkorn",1,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Vollkorn SC",1,[400,600,700,900],[]],
+ ["Voltaire",0,[400],[]],
+ ["VT323",4,[400],[]],
+ ["Vujahday Script",3,[400],[]],
+ ["Waiting for the Sunrise",3,[400],[]],
+ ["Wallpoet",2,[400],[]],
+ ["Walter Turncoat",3,[400],[]],
+ ["Warnes",2,[400],[]],
+ ["Water Brush",3,[400],[]],
+ ["Waterfall",3,[400],[]],
+ ["Wavefont",2,[100,200,300,400,500,600,700,800,900,1000],[],[4,1000]],
+ ["WDXL Lubrifont JP N",0,[400],[]],
+ ["WDXL Lubrifont SC",0,[400],[]],
+ ["WDXL Lubrifont TC",0,[400],[]],
+ ["Wellfleet",1,[400],[]],
+ ["Wendy One",0,[400],[]],
+ ["Whisper",3,[400],[]],
+ ["WindSong",3,[400,500],[]],
+ ["Winky Rough",0,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Winky Sans",0,[300,400,500,600,700,800,900],[300,400,500,600,700,800,900],[300,900]],
+ ["Wire One",0,[400],[]],
+ ["Wittgenstein",1,[400,500,600,700,800,900],[400,500,600,700,800,900],[400,900]],
+ ["Wix Madefor Display",0,[400,500,600,700,800],[],[400,800]],
+ ["Wix Madefor Text",0,[400,500,600,700,800],[400,500,600,700,800],[400,800]],
+ ["Work Sans",0,[100,200,300,400,500,600,700,800,900],[100,200,300,400,500,600,700,800,900],[100,900]],
+ ["Workbench",4,[400],[]],
+ ["Xanh Mono",4,[400],[400]],
+ ["Yaldevi",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Yanone Kaffeesatz",0,[200,300,400,500,600,700],[],[200,700]],
+ ["Yantramanav",0,[100,300,400,500,700,900],[]],
+ ["Yarndings 12",2,[400],[]],
+ ["Yarndings 12 Charted",2,[400],[]],
+ ["Yarndings 20",2,[400],[]],
+ ["Yarndings 20 Charted",2,[400],[]],
+ ["Yatra One",2,[400],[]],
+ ["Yellowtail",3,[400],[]],
+ ["Yeon Sung",2,[400],[]],
+ ["Yeseva One",2,[400],[]],
+ ["Yesteryear",3,[400],[]],
+ ["Yomogi",3,[400],[]],
+ ["Young Serif",1,[400],[]],
+ ["Yrsa",1,[300,400,500,600,700],[300,400,500,600,700],[300,700]],
+ ["Ysabeau",0,[1,100,200,300,400,500,600,700,800,900,1000],[1,100,200,300,400,500,600,700,800,900,1000],[1,1000]],
+ ["Ysabeau Infant",0,[1,100,200,300,400,500,600,700,800,900,1000],[1,100,200,300,400,500,600,700,800,900,1000],[1,1000]],
+ ["Ysabeau Office",0,[1,100,200,300,400,500,600,700,800,900,1000],[1,100,200,300,400,500,600,700,800,900,1000],[1,1000]],
+ ["Ysabeau SC",0,[1,100,200,300,400,500,600,700,800,900,1000],[],[1,1000]],
+ ["Yuji Boku",1,[400],[]],
+ ["Yuji Hentaigana Akari",3,[400],[]],
+ ["Yuji Hentaigana Akebono",3,[400],[]],
+ ["Yuji Mai",1,[400],[]],
+ ["Yuji Syuku",1,[400],[]],
+ ["Yusei Magic",0,[400],[]],
+ ["Yuyu",3,[400],[]],
+ ["Yuyu Short",3,[400],[]],
+ ["Zain",0,[200,300,400,700,800,900],[300,400]],
+ ["Zalando Sans",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Zalando Sans Expanded",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["Zalando Sans SemiExpanded",0,[200,300,400,500,600,700,800,900],[200,300,400,500,600,700,800,900],[200,900]],
+ ["ZCOOL KuaiLe",0,[400],[]],
+ ["ZCOOL QingKe HuangYou",0,[400],[]],
+ ["ZCOOL XiaoWei",0,[400],[]],
+ ["Zen Antique",1,[400],[]],
+ ["Zen Antique Soft",1,[400],[]],
+ ["Zen Dots",2,[400],[]],
+ ["Zen Kaku Gothic Antique",0,[300,400,500,700,900],[]],
+ ["Zen Kaku Gothic New",0,[300,400,500,700,900],[]],
+ ["Zen Kurenaido",0,[400],[]],
+ ["Zen Loop",2,[400],[400]],
+ ["Zen Maru Gothic",0,[300,400,500,700,900],[]],
+ ["Zen Old Mincho",1,[400,500,600,700,900],[]],
+ ["Zen Tokyo Zoo",2,[400],[]],
+ ["Zeyada",3,[400],[]],
+ ["Zhi Mang Xing",3,[400],[]],
+ ["Zilla Slab",1,[300,400,500,600,700],[300,400,500,600,700]],
+ ["Zilla Slab Highlight",1,[400,700],[]],
+];
diff --git a/packages/runtime/src/fonts/face-set.ts b/packages/runtime/src/fonts/face-set.ts
new file mode 100644
index 00000000..f39436c2
--- /dev/null
+++ b/packages/runtime/src/fonts/face-set.ts
@@ -0,0 +1,9 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+/** The environment's FontFaceSet: document.fonts on a page, self.fonts in a worker. */
+export function getFontFaceSet(): FontFaceSet | null {
+ const scope = globalThis as { document?: { fonts?: FontFaceSet }; fonts?: FontFaceSet };
+ return scope.document?.fonts ?? scope.fonts ?? null;
+}
diff --git a/packages/runtime/src/fonts/fixtures.ts b/packages/runtime/src/fonts/fixtures.ts
deleted file mode 100644
index 62f7b079..00000000
--- a/packages/runtime/src/fonts/fixtures.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-export const WebFonts = {
- Inter: {
- weights: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],
- url: 'https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwYZ8UA3.woff2',
- },
- 'The Bold Font': {
- weights: ['500'],
- url: 'https://diffusion-studio-public.s3.eu-central-1.amazonaws.com/fonts/the-bold-font.ttf',
- },
- 'Komika Axis': {
- weights: ['400'],
- url: 'https://diffusion-studio-public.s3.eu-central-1.amazonaws.com/fonts/komika-axis.ttf',
- },
- Geologica: {
- weights: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],
- url: 'https://fonts.gstatic.com/s/geologica/v1/oY1l8evIr7j9P3TN9YwNAdyjzUyDKkKdAGOJh1UlCDUIhAIdhCZOn1fLsig7jfvCCPHZckUWE1lELWNN-w.woff2',
- },
- Nunito: {
- weights: ['200', '300', '400', '500', '600', '700', '800', '900'],
- url: 'https://fonts.gstatic.com/s/nunito/v26/XRXV3I6Li01BKofINeaBTMnFcQ.woff2',
- },
- Figtree: {
- weights: ['300', '400', '500', '600', '700', '800', '900'],
- url: 'https://fonts.gstatic.com/s/figtree/v5/_Xms-HUzqDCFdgfMm4S9DaRvzig.woff2',
- },
- Urbanist: {
- weights: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],
- url: 'https://fonts.gstatic.com/s/urbanist/v15/L0x-DF02iFML4hGCyMqlbS1miXK2.woff2',
- },
- Montserrat: {
- weights: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],
- url: 'https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2',
- },
- Bangers: {
- weights: ['400'],
- url: 'https://fonts.gstatic.com/s/bangers/v20/FeVQS0BTqb0h60ACH55Q2J5hm24.woff2',
- },
- Chewy: {
- weights: ['400'],
- url: 'https://fonts.gstatic.com/s/chewy/v18/uK_94ruUb-k-wn52KjI9OPec.woff2',
- },
- 'Source Code Pro': {
- weights: ['200', '300', '400', '500', '600', '700', '800', '900'],
- url: 'https://fonts.gstatic.com/s/sourcecodepro/v22/HI_SiYsKILxRpg3hIP6sJ7fM7PqlPevWnsUnxg.woff2',
- },
-} as const;
-
-export const FONT_WEIGHTS = {
- '100': 'Thin',
- '200': 'Extra Light',
- '300': 'Light',
- '400': 'Normal',
- '500': 'Medium',
- '600': 'Semi Bold',
- '700': 'Bold',
- '800': 'Extra Bold',
- '900': 'Black',
-} as const;
diff --git a/packages/runtime/src/fonts/google.ts b/packages/runtime/src/fonts/google.ts
new file mode 100644
index 00000000..cb98dd91
--- /dev/null
+++ b/packages/runtime/src/fonts/google.ts
@@ -0,0 +1,215 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// The Google Fonts library. The catalog (names, categories, weights) is a
+// generated module loaded on first use; the stylesheets and font files come
+// from the Google Fonts CSS API when a family is used, so no font URL ships.
+
+import { getFontFaceSet } from './face-set';
+
+export type GoogleFontRow = [
+ family: string,
+ category: number,
+ weights: number[],
+ italics: number[],
+ axis?: [min: number, max: number],
+];
+
+export const GOOGLE_FONT_CATEGORIES = ['sans-serif', 'serif', 'display', 'handwriting', 'monospace'] as const;
+
+export type GoogleFontCategory = (typeof GOOGLE_FONT_CATEGORIES)[number];
+
+export type GoogleFont = {
+ family: string;
+ category: GoogleFontCategory;
+ /** Upright weights the family comes in, ascending. */
+ weights: number[];
+ /** Italic weights the family comes in, ascending. */
+ italics: number[];
+ /** The variable wght axis, when the family has one. */
+ axis?: [min: number, max: number];
+};
+
+/**
+ * The families the font picker leads with: the display, caption and title
+ * faces video work reaches for first, ahead of the full library.
+ */
+export const POPULAR_FONTS = [
+ 'Abril Fatface',
+ 'Anton',
+ 'Archivo Black',
+ 'Bangers',
+ 'Barlow Condensed',
+ 'Bebas Neue',
+ 'Caveat',
+ 'DM Serif Display',
+ 'Dancing Script',
+ 'Figtree',
+ 'Fredoka',
+ 'Instrument Serif',
+ 'Inter',
+ 'JetBrains Mono',
+ 'Kanit',
+ 'League Spartan',
+ 'Lilita One',
+ 'Lobster',
+ 'Luckiest Guy',
+ 'Montserrat',
+ 'Oswald',
+ 'Outfit',
+ 'Pacifico',
+ 'Permanent Marker',
+ 'Playfair Display',
+ 'Poppins',
+ 'Righteous',
+ 'Roboto',
+ 'Rubik',
+ 'Space Grotesk',
+ 'Syne',
+ 'Titan One',
+ 'Unbounded',
+ 'Urbanist',
+] as const;
+
+const CSS_API = 'https://fonts.googleapis.com/css2';
+
+// A failed stylesheet or file is asked for again after this long, so a
+// dropped connection does not leave a family on the fallback for the session.
+export const RETRY_MS = 10_000;
+
+let catalog: Map<string, GoogleFont> | null = null;
+let catalogPromise: Promise<ReadonlyMap<string, GoogleFont>> | null = null;
+
+/** Loads the Google Fonts catalog, keyed by family. */
+export function loadGoogleFonts(): Promise<ReadonlyMap<string, GoogleFont>> {
+ catalogPromise ??= import('./catalog')
+ .then(({ GOOGLE_FONT_ROWS }) => {
+ catalog = new Map(
+ GOOGLE_FONT_ROWS.map(([family, category, weights, italics, axis]) => [
+ family,
+ { family, category: GOOGLE_FONT_CATEGORIES[category]!, weights, italics, axis },
+ ]),
+ );
+ return catalog;
+ })
+ .catch((error: unknown) => {
+ catalogPromise = null;
+ throw error;
+ });
+ return catalogPromise;
+}
+
+/** The catalog once `loadGoogleFonts` has landed, null before. */
+export function getGoogleFonts(): ReadonlyMap<string, GoogleFont> | null {
+ return catalog;
+}
+
+/**
+ * The CSS API's `family` parameter asking for every variant the family has:
+ * the axis range when it is variable, each weight when it is not.
+ */
+function familyParam(font: GoogleFont, all = true): string {
+ const name = encodeURIComponent(font.family).replace(/%20/g, '+');
+ const span = (weights: number[]) =>
+ font.axis ? (weights.length ? [`${font.axis[0]}..${font.axis[1]}`] : []) : weights.map(String);
+
+ // A preview asks for one face: the upright regular when there is one.
+ const roman = all ? span(font.weights) : font.weights.includes(400) ? ['400'] : font.weights.slice(0, 1).map(String);
+ const italic = all ? span(font.italics) : roman.length ? [] : font.italics.slice(0, 1).map(String);
+
+ if (!italic.length) return roman.length === 1 && roman[0] === '400' ? name : `${name}:wght@${roman.join(';')}`;
+ return `${name}:ital,wght@${[...roman.map((w) => `0,${w}`), ...italic.map((w) => `1,${w}`)].join(';')}`;
+}
+
+/** The CSS API stylesheet for a family, subset to `text` when given. */
+export function googleFontUrl(font: GoogleFont, text?: string): string {
+ const url = `${CSS_API}?family=${familyParam(font, text === undefined)}`;
+ return text === undefined ? url : `${url}&text=${encodeURIComponent(text)}`;
+}
+
+function descriptor(block: string, name: string): string | undefined {
+ return new RegExp(`${name}\\s*:\\s*([^;]+);`).exec(block)?.[1]?.trim();
+}
+
+/** The stylesheet's @font-face rules as FontFaces named `family`, not yet loaded. */
+async function fetchFaces(url: string, family: string): Promise<FontFace[]> {
+ const response = await fetch(url);
+ if (!response.ok) throw new Error(`${family}: ${response.status} from the Google Fonts API`);
+ const css = await response.text();
+
+ const faces: FontFace[] = [];
+ for (const [, block] of css.matchAll(/@font-face\s*{([^}]*)}/g)) {
+ const src = descriptor(block!, 'src');
+ if (!src) continue;
+ faces.push(new FontFace(family, src, {
+ style: descriptor(block!, 'font-style') ?? 'normal',
+ weight: descriptor(block!, 'font-weight') ?? '400',
+ stretch: descriptor(block!, 'font-stretch') ?? 'normal',
+ unicodeRange: descriptor(block!, 'unicode-range') ?? 'U+0-10FFFF',
+ }));
+ }
+ return faces;
+}
+
+/** Whether the environment has faces of this family already, e.g. the app's bundled Inter. */
+function hasFaces(set: FontFaceSet, family: string): boolean {
+ for (const face of set) {
+ if (face.family.replace(/^["']|["']$/g, '') === family) return true;
+ }
+ return false;
+}
+
+const registered = new Map<string, Promise<void>>();
+
+/**
+ * Adds every face of a Google family to the environment's FontFaceSet without
+ * downloading a file: the set fetches only the subsets and variants that text
+ * asks for, through `FontFaceSet.load` or a draw.
+ */
+export function registerGoogleFont(font: GoogleFont): Promise<void> {
+ let promise = registered.get(font.family);
+ if (promise) return promise;
+
+ const set = getFontFaceSet();
+ if (!set || typeof FontFace === 'undefined' || hasFaces(set, font.family)) {
+ return Promise.resolve();
+ }
+
+ promise = fetchFaces(googleFontUrl(font), font.family)
+ .then((faces) => {
+ for (const face of faces) set.add(face);
+ })
+ .catch((error: unknown) => {
+ setTimeout(() => registered.delete(font.family), RETRY_MS);
+ throw error;
+ });
+ registered.set(font.family, promise);
+ return promise;
+}
+
+const previews = new Map<string, Promise<string>>();
+
+/**
+ * Loads the few glyphs that spell a family's name, under a family of its own
+ * so the partial face never stands in for the real one. Resolves to the name
+ * to set the label in.
+ */
+export function loadGoogleFontPreview(font: GoogleFont): Promise<string> {
+ let promise = previews.get(font.family);
+ if (promise) return promise;
+
+ const alias = `${font.family} Preview`;
+ promise = fetchFaces(googleFontUrl(font, font.family), alias)
+ .then(async (faces) => {
+ const set = getFontFaceSet();
+ for (const face of faces) set?.add(await face.load());
+ return alias;
+ })
+ .catch((error: unknown) => {
+ previews.delete(font.family);
+ throw error;
+ });
+ previews.set(font.family, promise);
+ return promise;
+}
diff --git a/packages/runtime/src/fonts/index.ts b/packages/runtime/src/fonts/index.ts
index 38e756ee..884a6726 100644
--- a/packages/runtime/src/fonts/index.ts
+++ b/packages/runtime/src/fonts/index.ts
@@ -1,3 +1,4 @@
export * from './types';
-export * from './fixtures';
+export * from './google';
+export * from './face-set';
export * from './utils';
diff --git a/packages/runtime/src/fonts/utils.ts b/packages/runtime/src/fonts/utils.ts
index 64d3b4a7..5a1563d7 100644
--- a/packages/runtime/src/fonts/utils.ts
+++ b/packages/runtime/src/fonts/utils.ts
@@ -2,16 +2,36 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-// Web font loading (was engine/font/utils.ts, minus the app-side pieces:
-// getLocalFonts needs window.queryLocalFonts, and font persistence is the
-// app's IndexedDB concern; it wraps loadWebFont and re-calls it on restore).
+// Font loading. A text names its family; any Google family it names is
+// fetched when the text's style is written (see the observers), and a family
+// the catalog does not know (one installed on the machine) is left for the
+// platform to resolve. getLocalFonts stays in the app, since it needs
+// window.queryLocalFonts.
-import { WebFonts } from './fixtures';
+import { getFontFaceSet } from './face-set';
+import { getGoogleFonts, googleFontUrl, loadGoogleFonts, registerGoogleFont, RETRY_MS } from './google';
import { FontStyle } from '../constants';
-import { Fonts } from '../traits';
+import { Cache, Chars, Fonts, FramePromises, TextRange, TextStyle } from '../traits';
+import { getParentEntity } from '../queries/hierarchy';
+import { store } from '../world/store';
-import type { World } from 'koota';
-import type * as types from './types';
+import type { Entity, World } from 'koota';
+import type { GoogleFont } from './google';
+
+export const FONT_WEIGHTS = {
+ '100': 'Thin',
+ '200': 'Extra Light',
+ '300': 'Light',
+ '400': 'Normal',
+ '500': 'Medium',
+ '600': 'Semi Bold',
+ '700': 'Bold',
+ '800': 'Extra Bold',
+ '900': 'Black',
+} as const;
+
+/** The family a text without one is set in (the renderer's fallback). */
+export const DEFAULT_FONT_FAMILY = 'Inter';
const STYLE_MAP = {
[FontStyle.NORMAL]: 'normal',
@@ -19,79 +39,137 @@ const STYLE_MAP = {
[FontStyle.OBLIQUE]: 'oblique',
} as const;
-/** The environment's FontFaceSet: document.fonts on a page, self.fonts in a worker. */
-function getFontFaceSet(): FontFaceSet | null {
- const scope = globalThis as { document?: { fonts?: FontFaceSet }; fonts?: FontFaceSet };
- return scope.document?.fonts ?? scope.fonts ?? null;
-}
+// Variants asked for, across worlds (the FontFaceSet is the environment's):
+// pending while the promise is in `requested`, then loaded or, for the retry
+// window, failed. A style is written often (a caption restyles its words as
+// they play), and none of those writes may refetch.
+const requested = new Map<string, Promise<void>>();
+const loaded = new Set<string>();
+const failed = new Set<string>();
+// Variants already listed on each world's Fonts trait.
+const listed = new WeakMap<World, Set<string>>();
/**
- * Get common web fonts
+ * Loads a Google family's variant: the subsets `text` needs (Latin when
+ * omitted), or with `all` every subset, for a render that cannot wait for the
+ * browser to fetch one at first draw. Returns the pending load, or null when
+ * there is nothing to wait for: already loaded, not a Google family, or no
+ * FontFace to load into. Never rejects, so an export's frame barrier survives
+ * a failed download.
*/
-export function getWebFonts(): types.FontSources[] {
- return Object.keys(WebFonts).map((family) => {
- return {
- family,
- variants: WebFonts[family as keyof typeof WebFonts].weights.map((weight) => {
- return {
- family,
- source: `url(${WebFonts[family as keyof typeof WebFonts].url})`,
- weight: weight,
- };
- }),
- };
- });
-}
-
-export async function loadWebFont(
+export function requestFont(
world: World,
- family: keyof typeof WebFonts,
+ family: string,
+ weight = '400',
style: FontStyle = FontStyle.NORMAL,
- weight?: string,
-): Promise<types.FontSource> {
- const source = `url(${WebFonts[family].url})`;
- const font: types.FontSource = {
- source,
- family,
- weight,
- style,
- };
+ text?: string,
+ all = false,
+): Promise<void> | null {
+ const set = getFontFaceSet();
+ const font = getGoogleFonts()?.get(family);
+ if (!set || !font || typeof FontFace === 'undefined') return null;
+
+ const key = `${family}|${weight}|${style}${all ? '|all' : ''}`;
+ if (loaded.has(key)) {
+ list(world, key, font, weight, style);
+ return null;
+ }
+ if (failed.has(key)) return null;
+
+ let promise = requested.get(key);
+ if (!promise) {
+ promise = registerGoogleFont(font)
+ .then(() => (all ? loadEveryFace(set, family, weight, style) : set.load(`${STYLE_MAP[style]} ${weight} 16px "${family}"`, text || undefined)))
+ .then(() => {
+ loaded.add(key);
+ })
+ .catch((error: unknown) => {
+ console.warn(`Font ${family} ${weight} could not be loaded`, error);
+ failed.add(key);
+ setTimeout(() => {
+ failed.delete(key);
+ }, RETRY_MS);
+ })
+ .finally(() => requested.delete(key));
+ requested.set(key, promise);
+ }
+ return promise.then(() => list(world, key, font, weight, style));
+}
- const fonts = world.get(Fonts)?.list;
- // No FontFace = headless environment without font rasterization; text
- // measurement falls back to the system font.
- if (!fonts || typeof FontFace === 'undefined') return font;
+/** Records a loaded variant on the world's Fonts trait, once per world. */
+function list(world: World, key: string, font: GoogleFont, weight: string, style: FontStyle) {
+ let keys = listed.get(world);
+ if (!keys) listed.set(world, (keys = new Set()));
+ if (keys.has(key) || !loaded.has(key)) return;
+ keys.add(key);
+ world.get(Fonts)?.list.push({ family: font.family, weight, style, source: `url(${googleFontUrl(font)})` });
+}
- // Already loaded
- if (fonts.some((f) => f.source === font.source && f.weight === font.weight)) {
- return font;
+/** Every subset of the family's faces that `weight` and `style` resolve to. */
+function loadEveryFace(set: FontFaceSet, family: string, weight: string, style: FontStyle): Promise<unknown> {
+ // Google Fonts serves italics only; an oblique is drawn from them.
+ const wanted = style === FontStyle.NORMAL ? 'normal' : 'italic';
+ const w = Number(weight);
+ const faces: FontFace[] = [];
+ for (const face of set) {
+ if (face.family.replace(/^["']|["']$/g, '') !== family || face.style !== wanted) continue;
+ const [min, max = min] = face.weight.split(' ').map(Number);
+ if (min! <= w && w <= max!) faces.push(face);
+ }
+ // No face at that weight: the browser synthesizes it from the nearest.
+ if (!faces.length) {
+ return set.load(`${STYLE_MAP[style]} ${weight} 16px "${family}"`);
}
- fonts.push(font);
+ return Promise.all(faces.map((face) => face.load()));
+}
+
+/**
+ * Requests the fonts a text is set in: the node's own family, weight and
+ * style, and each range override's (a range names only what it changes).
+ * Called with the text node or with one of its ranges. A world with a frame
+ * barrier (an export) loads every subset and puts the load on the barrier, so
+ * no frame is sampled before its glyphs; the editor loads the subsets the
+ * text needs and lets the browser fetch any other at first draw.
+ */
+export function requestTextFonts(world: World, entity: Entity): void {
+ const pending = textFonts(world, entity);
+ if (pending) world.get(FramePromises)?.list?.push(pending);
+}
- // Load all weights if no weight is specified
- if (!weight) {
- const config = WebFonts[family as keyof typeof WebFonts];
- const weights = config.weights;
- weight = weights.length > 1 ? `${weights[0]} ${weights[weights.length - 1]}` : weights[0];
+function textFonts(world: World, entity: Entity): Promise<unknown> | null {
+ if (!getFontFaceSet() || typeof FontFace === 'undefined') return null;
+ // Only a world with text pays for the catalog.
+ if (!getGoogleFonts()) {
+ return loadGoogleFonts().then(() => textFonts(world, entity), () => { });
}
- const fontFace = new FontFace(family, source, { weight, style: STYLE_MAP[style] });
+ // A range not yet placed under its text resolves when it is (the
+ // ChildOf observer asks again).
+ const node = entity.has(TextRange) ? getParentEntity(entity) : entity;
+ if (!node?.isAlive() || !node.has(TextStyle)) return null;
- await new Promise((resolve, reject) => {
- fontFace
- .load()
- .then((loaded) => {
- getFontFaceSet()?.add(loaded);
- resolve(null);
- })
- .catch((error) => {
- world.set(Fonts, {
- list: fonts.filter((f) => f.source !== font.source && f.weight !== font.weight),
- });
- reject(error);
- });
- });
-
- return font;
+ const textStyle = store(world, TextStyle);
+ const eid = node.id();
+ const family = textStyle.fontFamily[eid] || DEFAULT_FONT_FAMILY;
+ const weight = textStyle.fontWeight[eid] ?? '400';
+ const style = textStyle.fontStyle[eid] ?? FontStyle.NORMAL;
+ const text = store(world, Chars).value[eid];
+ const all = !!world.get(FramePromises)?.list;
+
+ const pending: Promise<void>[] = [];
+ const request = (f: string, w: string, s: FontStyle) => {
+ const promise = requestFont(world, f, w, s, text, all);
+ if (promise) pending.push(promise);
+ };
+
+ request(family, weight, style);
+
+ for (const range of store(world, Cache).textRanges[eid] ?? []) {
+ const rid = range.id();
+ if (textStyle.fontFamily[rid] === undefined && textStyle.fontWeight[rid] === undefined && textStyle.fontStyle[rid] === undefined) continue;
+ request(textStyle.fontFamily[rid] || family, textStyle.fontWeight[rid] ?? weight, textStyle.fontStyle[rid] ?? style);
+ }
+
+ return pending.length ? Promise.all(pending) : null;
}
diff --git a/packages/runtime/src/media/caption/cascade.ts b/packages/runtime/src/media/caption/cascade.ts
index 6515b845..5268073e 100644
--- a/packages/runtime/src/media/caption/cascade.ts
+++ b/packages/runtime/src/media/caption/cascade.ts
@@ -4,7 +4,6 @@
import { CaptionAlign, CaptionType, FontStyle, TextAlign, TextBaseline, TextCase } from '../../constants';
import { renderText } from '../../utils/text';
-import { loadWebFont } from '../../fonts/utils';
import { groupBy, findActiveGroup, resolveTranscript, setChars } from './utils';
import { placeCaption } from './position';
@@ -57,7 +56,6 @@ export class CascadeCaptionDecoder implements CaptionDecoder {
public applyStyles(world: World, entity: Entity): boolean {
if (!this.reposition(world, entity)) return false;
- loadWebFont(world, CASCADE_TEXT_STYLE.fontFamily);
return true;
}
diff --git a/packages/runtime/src/media/caption/classic.ts b/packages/runtime/src/media/caption/classic.ts
index c6d596cc..bdf410d3 100644
--- a/packages/runtime/src/media/caption/classic.ts
+++ b/packages/runtime/src/media/caption/classic.ts
@@ -5,7 +5,6 @@
import { CaptionAlign, CaptionType, FontStyle, TextAlign, TextBaseline, TextCase } from '../../constants';
import { Color, Shadow, Opacity, Blur, Offset } from '../../traits';
import { renderText } from '../../utils/text';
-import { loadWebFont } from '../../fonts/utils';
import { groupBy, findActiveGroup, resolveTranscript, setChars } from './utils';
import { placeCaption } from './position';
import { createEntity } from '../../actions/entities';
@@ -76,7 +75,6 @@ export class ClassicCaptionDecoder implements CaptionDecoder {
shadow.set(Offset, { x: 0, y: 5 });
appendChild(world, shadow, entity);
- loadWebFont(world, CLASSIC_TEXT_STYLE.fontFamily);
return true;
}
diff --git a/packages/runtime/src/media/caption/guinea.ts b/packages/runtime/src/media/caption/guinea.ts
index 146bda41..8f86262c 100644
--- a/packages/runtime/src/media/caption/guinea.ts
+++ b/packages/runtime/src/media/caption/guinea.ts
@@ -6,7 +6,6 @@ import { store } from '../../world/store';
import { CaptionAlign, CaptionType, PaintType, FontStyle, TextAlign, TextBaseline, TextCase } from '../../constants';
import { Paint, Color, Caption, ItemIndex, TextRange, TextStyle } from '../../traits';
import { renderText } from '../../utils/text';
-import { loadWebFont } from '../../fonts/utils';
import { groupBy, findActiveGroup, splitSequence, clearTextRanges, resolveTranscript, setChars } from './utils';
import { placeCaption } from './position';
import { createEntity } from '../../actions/entities';
@@ -22,8 +21,8 @@ const HEIGHT = 200;
// The preset's base TextStyle; the document writes it and authored style
// props overwrite it (see CAPTION_PRESET_STYLES).
export const GUINEA_TEXT_STYLE = {
- fontFamily: 'The Bold Font',
- fontWeight: '500',
+ fontFamily: 'Poppins',
+ fontWeight: '800',
fontSize: 62,
textAlign: TextAlign.CENTER,
textBaseline: TextBaseline.MIDDLE,
@@ -70,7 +69,6 @@ export class GuineaCaptionDecoder implements CaptionDecoder {
public applyStyles(world: World, entity: Entity): boolean {
if (!this.reposition(world, entity)) return false;
- loadWebFont(world, GUINEA_TEXT_STYLE.fontFamily);
return true;
}
diff --git a/packages/runtime/src/media/caption/paper.ts b/packages/runtime/src/media/caption/paper.ts
index 8f849c72..17380043 100644
--- a/packages/runtime/src/media/caption/paper.ts
+++ b/packages/runtime/src/media/caption/paper.ts
@@ -5,7 +5,6 @@
import { CaptionAlign, CaptionType, FontStyle, TextAlign, TextBaseline, TextCase } from '../../constants';
import { TextRange, TextStyle } from '../../traits';
import { renderText } from '../../utils/text';
-import { loadWebFont } from '../../fonts/utils';
import { groupBy, findActiveGroup, splitSequence, clearTextRanges, resolveTranscript, setChars } from './utils';
import { placeCaption } from './position';
import { createEntity } from '../../actions/entities';
@@ -61,7 +60,6 @@ export class PaperCaptionDecoder implements CaptionDecoder {
public applyStyles(world: World, entity: Entity): boolean {
if (!this.reposition(world, entity)) return false;
- loadWebFont(world, PAPER_TEXT_STYLE.fontFamily);
return true;
}
diff --git a/packages/runtime/src/media/caption/spotlight.ts b/packages/runtime/src/media/caption/spotlight.ts
index 2c092745..4924e6dd 100644
--- a/packages/runtime/src/media/caption/spotlight.ts
+++ b/packages/runtime/src/media/caption/spotlight.ts
@@ -6,7 +6,6 @@ import { store } from '../../world/store';
import { CaptionAlign, CaptionType, PaintType, FontStyle, TextAlign, TextBaseline, TextCase } from '../../constants';
import { Paint, Color, Caption, TextRange } from '../../traits';
import { renderText } from '../../utils/text';
-import { loadWebFont } from '../../fonts/utils';
import { groupBy, findActiveGroup, clearTextRanges, resolveTranscript, setChars } from './utils';
import { placeCaption } from './position';
import { createEntity } from '../../actions/entities';
@@ -24,8 +23,8 @@ const HIGHLIGHT_COLOR = 0x24D5FF;
// The preset's base TextStyle; the document writes it and authored style
// props overwrite it (see CAPTION_PRESET_STYLES).
export const SPOTLIGHT_TEXT_STYLE = {
- fontFamily: 'The Bold Font',
- fontWeight: '500',
+ fontFamily: 'Poppins',
+ fontWeight: '800',
fontStyle: FontStyle.NORMAL,
fontSize: 70,
textAlign: TextAlign.CENTER,
@@ -65,7 +64,6 @@ export class SpotlightCaptionDecoder implements CaptionDecoder {
public applyStyles(world: World, entity: Entity): boolean {
if (!this.reposition(world, entity)) return false;
- loadWebFont(world, SPOTLIGHT_TEXT_STYLE.fontFamily);
return true;
}
diff --git a/packages/runtime/src/media/caption/stark.ts b/packages/runtime/src/media/caption/stark.ts
index 5e2fb207..d83f218d 100644
--- a/packages/runtime/src/media/caption/stark.ts
+++ b/packages/runtime/src/media/caption/stark.ts
@@ -5,7 +5,6 @@
import { BlendModeType, CaptionAlign, CaptionType, PaintType, FontStyle, TextAlign, TextBaseline, TextCase } from '../../constants';
import { Paint, Color, BlendMode } from '../../traits';
import { renderText } from '../../utils/text';
-import { loadWebFont } from '../../fonts/utils';
import { groupBy, findActiveGroup, resolveTranscript, setChars } from './utils';
import { placeCaption } from './position';
import { createEntity } from '../../actions/entities';
@@ -69,7 +68,6 @@ export class StarkCaptionDecoder implements CaptionDecoder {
fill.set(BlendMode, { value: BlendModeType.DIFFERENCE });
appendChild(world, fill, entity);
- loadWebFont(world, STARK_TEXT_STYLE.fontFamily);
return true;
}
diff --git a/packages/runtime/src/media/caption/whisper.ts b/packages/runtime/src/media/caption/whisper.ts
index eedddf3e..28dd5999 100644
--- a/packages/runtime/src/media/caption/whisper.ts
+++ b/packages/runtime/src/media/caption/whisper.ts
@@ -4,7 +4,6 @@
import { CaptionAlign, CaptionType, FontStyle, TextAlign, TextBaseline, TextCase } from '../../constants';
import { renderText } from '../../utils/text';
-import { loadWebFont } from '../../fonts/utils';
import { groupBy, findActiveGroup, resolveTranscript, setChars } from './utils';
import { placeCaption } from './position';
@@ -58,7 +57,6 @@ export class WhisperCaptionDecoder implements CaptionDecoder {
public applyStyles(world: World, entity: Entity): boolean {
if (!this.reposition(world, entity)) return false;
- loadWebFont(world, WHISPER_TEXT_STYLE.fontFamily);
return true;
}
diff --git a/packages/runtime/src/utils/text.ts b/packages/runtime/src/utils/text.ts
index ba28d59a..f20edca1 100644
--- a/packages/runtime/src/utils/text.ts
+++ b/packages/runtime/src/utils/text.ts
@@ -141,7 +141,7 @@ function applyFont(ctx: Ctx, world: World, entity: Entity, ranges: Entity[]) {
const mappedStyle = FontStyle[style]!.toLowerCase();
const mappedBaseline = TextBaseline[baseline]!.toLowerCase() as CanvasTextBaseline;
- ctx.font = `${mappedStyle} ${weight.toLowerCase()} ${size}px ${family}`.trim();
+ ctx.font = `${mappedStyle} ${weight.toLowerCase()} ${size}px "${family.replace(/"/g, '')}", Inter`;
ctx.textBaseline = mappedBaseline;
ctx.letterSpacing = `${spacing}px`;
}
diff --git a/packages/runtime/src/world/observers.ts b/packages/runtime/src/world/observers.ts
index 269decb4..d4cdcc67 100644
--- a/packages/runtime/src/world/observers.ts
+++ b/packages/runtime/src/world/observers.ts
@@ -12,7 +12,7 @@ import {
ColorStop, StrokeStyle, Size, Computed, Active, Stage, IsClipPath,
ImageDecoderHandle, VideoDecoderHandle,
AudioDecoderHandle, CaptionDecoderHandle, WaveformHandle,
- ShaderHostHandle, AudioBusHandle,
+ ShaderHostHandle, AudioBusHandle, TextStyle, TextRange,
} from '../traits';
import { getParentEntity } from '../queries/hierarchy';
import { evictFromCaches, rebuildCaches, refileClipPath } from '../actions/cache';
@@ -25,6 +25,7 @@ import {
} from '../actions/timing';
import { propagateSize, resolveConstraintOffsets } from '../actions/resize';
import { resetAnimatedValues } from '../systems/motion';
+import { requestTextFonts } from '../fonts/utils';
import type { Entity, Trait, World } from 'koota';
@@ -46,6 +47,10 @@ export function observeWorld(world: World): () => void {
reactToChildAttached(world, child);
syncStagePlayback(child);
syncStagePlayback(parent);
+
+ if (child.has(TextRange)) {
+ requestTextFonts(world, child);
+ }
}));
// On re-target (and destroy) the remove event fires while the child is
@@ -91,7 +96,9 @@ export function observeWorld(world: World): () => void {
rebuildCaches(world, entity, getParentEntity(entity));
}));
- // ── Model invariants ──────────────────────────────────────
+ // Fonts
+ subs.push(world.onAdd(TextStyle, (e) => requestTextFonts(world, e)));
+ subs.push(world.onChange(TextStyle, (e) => requestTextFonts(world, e)));
// A sequence is a group without spatial identity of its own.
subs.push(world.onAdd(Sequential, (entity) => {