Font Viewer, TTF Viewer, OTF & WOFF Viewer

Font Viewer, TTF Viewer, OTF & WOFF Viewer, a VS Code extension by Zovo

Open any TTF, OTF, WOFF, WOFF2 or TTC font in VS Code to test text with its variable axes and OpenType features, see every glyph, and read its license before you ship it.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.font-viewer-vscode, version 0.1.1.

JetBrains Mono, a variable font, open in Font Viewer. Sample text at 56 px with the frac feature on, a waterfall of sizes, the weight slider at 700 and the OpenType feature check boxes

Screenshots come from a real VS Code 1.142 window running the packaged extension. The fonts are JetBrains Mono and Fraunces (both SIL Open Font License 1.1) and Zovo Test Sans, a small test font made by scripts/make-fixtures.py.

Quick start

  1. Install the extension.
  2. Click a .ttf, .otf, .woff, .woff2 or .ttc file in the Explorer.

Font Viewer is the default editor for these files. It's read-only, so it never changes the font.

Questions people ask

Is Font Viewer, TTF Viewer, OTF & WOFF Viewer free?

Yes. Font Viewer, TTF Viewer, OTF & WOFF Viewer is free and MIT licensed.

How do I install Font Viewer, TTF Viewer, OTF & WOFF Viewer?

Click "Install in VS Code" above, or search for zovo.font-viewer-vscode in the Extensions view.

What you can do

TabWhat it shows
Type testerYour sample text in the font, a size slider from 8 to 200 px and a waterfall. A slider for each variable axis, a list of named instances, and a check box for each OpenType feature. Copy CSS gives the @font-face rule plus the matching font-variation-settings and font-feature-settings.
GlyphsEvery glyph drawn from its outline, with its name and code point. Glyphs load in pages as you scroll, so a CJK font with 20,000 glyphs opens fast. Click one to see it large with the baseline, x-height, cap height and advance width.
CharactersThe characters of the font grouped by Unicode block, with coverage such as "Basic Latin 95/128". Turn off "Only characters in the font" to see the gaps.
InfoLicense and credits, the full name table, metrics, axes and instances, GSUB and GPOS feature tags, all tables with sizes, and the @font-face rule.
The glyph grid of JetBrains Mono with a search for "acute", and the detail panel of one glyph with its metrics lines and copy buttons
The character map of JetBrains Mono. Unicode blocks with coverage counts on the left, and the Latin-1 Supplement characters on the right
The Info tab of the test font with the license, designer, copyright and embedding rights at the top
Fraunces SemiBold (SIL Open Font License 1.1) in the type tester with the Light Modern theme

Supported files

FormatExtensionsNotes
TrueType.ttfAlso variable fonts.
OpenType.otfCFF outlines. CFF2 variable fonts show their text and metadata, but the glyph grid draws them with the font instead of from outlines.
WOFF.woffUnpacked with Node's zlib.
WOFF2.woff2Unpacked by our own decoder, which rebuilds the glyf, loca and hmtx tables.
Collections.ttc, .otcPick the font from a list in the header.

When you save a new build of a font, the open view reloads.

You can also right-click a font in the Explorer and choose Copy CSS @font-face without opening it.

Settings

SettingDefaultWhat it does
fontViewer.sampleTextThe quick brown fox jumps over the lazy dog. 0123456789Text in the type tester and the waterfall. You can edit it in the view too.
fontViewer.previewSize48Starting size in pixels of the large sample.
fontViewer.maxFileMB64Larger files show a message instead of opening.
fontViewer.askForRatingtrueOne rating request after a few days of use.
fontViewer.showSupportLinkstrueThe small Sponsor and More free viewers links in the status line.

Privacy

Font Viewer works offline. It makes no network calls and sends no telemetry. The font is read from disk and loaded into the view from memory, and the view has a strict Content Security Policy with no remote scripts. Font names and other text from the file are shown as plain text.

Known limits

License

MIT. Font Viewer bundles opentype.js (MIT). See THIRD-PARTY-NOTICES.md.

Install Font Viewer, TTF Viewer, OTF & WOFF Viewer

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.font-viewer-vscode.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.font-viewer-vscode, version 0.1.1.

Source code and issues are on GitHub.

All our VS Code extensions

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.