chore: remove bundled IBM Plex fonts

This commit is contained in:
Bohdan Triapitsyn
2026-07-02 00:45:59 +03:00
parent c9c178c000
commit 37a9179656
72 changed files with 202 additions and 252 deletions
+4 -8
View File
@@ -18,8 +18,8 @@
// The sentence wraps automatically; the version + sentence block is
// bottom-anchored over a readability scrim so the glowing plate stays visible.
//
// Fonts (IBM Plex Sans, Instrument Serif) are fetched once from Fontsource
// into ./.fonts (gitignored) and wired into fontconfig for Pango.
// Accent fonts are fetched once from Fontsource into ./.fonts (gitignored)
// and wired into fontconfig for Pango. Main text uses the system sans stack.
import { mkdir, writeFile, readFile, access } from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
@@ -30,10 +30,6 @@ const repoRoot = path.resolve(toolDir, '..', '..');
const fontsDir = path.join(toolDir, '.fonts');
const FONTS = [
{
file: 'IBMPlexSans-SemiBold.ttf',
url: 'https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.ttf',
},
{
file: 'InstrumentSerif-Italic.ttf',
url: 'https://cdn.jsdelivr.net/fontsource/fonts/instrument-serif@latest/latin-400-italic.ttf',
@@ -142,7 +138,7 @@ async function main() {
const sentenceBuf = await sharp({
text: {
text: toPangoMarkup(sentence),
font: 'IBM Plex Sans 92',
font: 'system-ui 92',
rgba: true,
width: wrapWidth,
wrap: 'word',
@@ -160,7 +156,7 @@ async function main() {
text: `<span foreground="${AMBER}" letter_spacing="2048">${escapeMarkup(
title
)}</span>`,
font: 'IBM Plex Sans 64',
font: 'system-ui 64',
rgba: true,
align: 'left',
},
+3 -3
View File
@@ -120,9 +120,9 @@ const DEFAULT_OUT_DIR = path.join(REPO_ROOT, 'packages', 'ui', 'src', 'lib', 'th
const DEFAULT_CONFIG = {
fonts: {
sans: '"IBM Plex Mono", monospace',
mono: '"IBM Plex Mono", monospace',
heading: '"IBM Plex Mono", monospace',
sans: '"SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
mono: 'ui-monospace, "SFMono-Regular", "Menlo", "Cascadia Mono", "Segoe UI Mono", monospace',
heading: '"SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',
},
radius: {
none: '0',