feat(monospace): wire PDF export to use bundled monospace font

Replaces -V monofont=Consolas with a generated xelatex/lualatex header
that fontspec-loads the bundled JetBrains Mono or Fira Code TTF. Adds
a cached settings reader with proper invalidation on store.set, and
reorders fallback engines to prefer lualatex (fontspec-capable) before
pdflatex.
This commit is contained in:
2026-08-23 19:31:33 +05:30
parent cdc318ebc7
commit 269d4ac028
4 changed files with 52 additions and 7 deletions
-1
View File
@@ -2,7 +2,6 @@
const fs = require('fs');
const path = require('path');
const { app } = require('electron');
const { getActiveMonoFont, isLigaturesEnabled, FAMILY_BY_KEY } = require('./settings/monospaceSettings');
const WEIGHT_BY_KEY = { 300: 'Light', 400: 'Regular', 500: 'Medium', 600: 'SemiBold', 700: 'Bold' };