A VS Code extension for browsing TrueType (.ttf) font files in a read-only custom editor. Double-click a font file to inspect glyphs, metrics, and live text preview without leaving the editor.
Features
Font metadata — family name, subfamily, version, units per em, ascent/descent, glyph count
Glyph grid — paginated thumbnail grid with Unicode code points and glyph names
Glyph detail — large SVG outline preview with advance width and bounding box; copy Unicode to clipboard
Text preview — type sample text rendered with the opened font via @font-face
Read-only — browse fonts safely; no save or edit workflow
VS Code theme aware — Blueprint UI adapts to light/dark editor themes
npm run pkg
code --install-extension ttf-explorer-0.1.0.vsix
Development (Extension Development Host)
Open this folder in VS Code
Run npm install and npm run compile
Press F5 to launch a new Extension Development Host
Open any .ttf file (e.g. C:\Windows\Fonts\arial.ttf)
Usage
Open TTF files
Double-click a .ttf file in the Explorer sidebar
Or right-click → Open With… → TTF Explorer
Or run the command palette: Open in TTF Explorer
Or use the editor title bar button when a .ttf tab is active
Interface
Area
Description
Header
Font name, version, UPM, metrics, file name
Glyph grid (left)
Click a glyph to select it; use pagination controls at the bottom
Glyph detail (right)
Outline preview and properties for the selected glyph
Text preview (bottom)
Edit sample text to preview the font in use
Settings
Key
Default
Description
ttf-explorer.glyphPageSize
100
Glyphs shown per page in the grid (10–500)
Development
Prerequisites
Node.js 18+
VS Code 1.78+
npm
Commands
npm install # Install dependencies
npm run compile # Typecheck + build extension and webview bundles
npm run watch # Rebuild on file changes
npm run compile:prod # Production build (minified)
npm run package # Create .vsix (requires prior compile)
npm run pkg # Clean, production build, and package