mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-23 23:10:17 +05:30
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:
@@ -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' };
|
||||
|
||||
Reference in New Issue
Block a user