Toolvito

Works on this device

Font Inspector & Previewer

Open a font file from your device. The page reads what the file says about itself and shows your own text in that font. You can also try a font that is installed on your device. The file stays in your browser.

Choose a font

Which font do you want to look at?

A file that ends in .ttf, .otf, .ttc, .woff or .woff2, of at most 50 MB. It is read in this browser and is not uploaded.

No font is chosen yet. A font file is read on this device and is not sent anywhere.

Preview

No font is chosen yet. The text is shown in a font of your browser.

From 6 to 400.

A number from 0.8 to 3. It is times the font size.

From -0.2 to 1. Use 0 for the spacing of the font.

Width of the first line
Average width of a character
Height of one line
Size of the text as shown

To use a font file on a web page, the page also needs an @font-face rule that points at the file, and the licence of the font must allow it.

How to use this tool

  1. Choose A font file from my device, then choose a file that ends in .ttf, .otf, .ttc, .woff or .woff2. Or choose A font that is installed on this device and type its name.
  2. Type your own words in Text to show. Change the font size, the line height and the letter spacing to see how the font behaves.
  3. For a variable font, move the sliders under Axes of this variable font, or pick one of its named styles.
  4. Read What the file says for the names, the licence fields, the sizes and the list of tables. Download it as a CSV file if you want to keep it.
  5. Under Characters in the font, paste a text to see which of its characters the font does not have.

What the page reads from a font file

  • The kind of file: a TrueType or OpenType font, a font collection with several fonts, or a WOFF 1 file. For each table it shows the place, the size and whether its check number fits its bytes.
  • Names (the name table): family, style, full name, version, designer, maker, description, and the copyright, trademark and licence fields with their addresses.
  • Sizes (the head, hhea, OS/2 and post tables): units per em, ascender, descender, line gap, x-height and cap height when the file has them, underline, and the box around all glyphs.
  • Weight, width and style (the OS/2 table): the weight class from 100 to 900, the width class from 1 to 9, the style flags, the family class and the PANOSE numbers.
  • Embedding permission (the fsType number of the OS/2 table), said in plain words.
  • Characters (the cmap table): how many characters the font covers, counted by Unicode block. The page reads map formats 0, 4, 6, 10, 12 and 13.
  • Variable axes (the fvar table): each axis with its lowest, normal and highest value, and the named styles.
  • Features (the GSUB and GPOS tables): the feature tags such as liga and kern, the scripts and the number of lookups.

WOFF and WOFF 2 files

A WOFF 1 file packs each table with zlib. Your browser can unpack zlib data, so the page reads every table of a WOFF 1 file.

A WOFF 2 file packs its tables with Brotli. Browsers do not let a page unpack Brotli data, and this page does not carry an unpacker of its own. So for a WOFF 2 file you see the header and the list of tables with their sizes, and you can preview your text in the font. You do not see its names, sizes, characters or features. To see those, open the same font as a .ttf, .otf or .woff file.

The embedding permission in plain words

The fsType number says how the maker allows the font to be put inside documents. It is one line in the file, not the licence itself.

Embedding levels of the fsType number
Level Bit in the number What the file says
Installable none (0) No embedding limit. Embedded copies may be installed on another device.
Restricted 0x0002 The font must not be embedded, changed or shared without permission from its owner.
Preview and print 0x0004 The font may be embedded in a document for reading and printing only.
Editable 0x0008 The font may be embedded in a document that can be read, printed and edited.
No subsetting 0x0100 If the font is embedded, the whole font must be embedded.
Bitmaps only 0x0200 Only bitmap forms of the characters may be embedded.

Fonts on your device

A web page cannot list the fonts of your device. So the page checks one name at a time. It measures a test text in two different fall-back fonts, and then again with the font you named put first. If both sizes stay the same, the font was not used, and the page says that it was not found.

Find common fonts on this device runs this check for a list of font names that come with common operating systems, and shows only the ones it finds.

Some browsers hide fonts that you installed yourself, to protect your privacy. Such a font shows as not found here, although other programs on your device can use it.

Worked example

A font file says: units per em 1000, x-height 500, cap height 700. The x-height is 500 ÷ 1000 = 0.5 em, so at a font size of 16 px the small letters are 8 px high. The x-height is 500 ÷ 700 = 71.4% of the cap height.

The letter A of that font is 1000 units wide. Four of them at a font size of 100 px take 4 × 1000 ÷ 1000 × 100 = 400 px. If the font moves each A 200 units closer to the A before it, the three gaps take away 3 × 20 = 60 px, and the page measures 340 px. Turn off Use the kerning of the font and it measures 400 px again.

A file with the fsType number 0x0104 has the bits 0x0004 and 0x0100. The page says: preview and print embedding, and no subsetting.

Limits you should know

  • The page shows what is written in the file. It does not check that the names, the copyright line or the licence text are true. The licence of a font is set by its licence document, not by this tool. Read that document before you use, share or embed a font.
  • The page does not name the font of a picture and does not search a font collection. It reads a font file that you already have, or a font on your device.
  • No font comes with this page and none is downloaded. The page has no font files to give you.
  • It does not change or convert font files.
  • The outlines of the glyphs are not read. So the page cannot draw a glyph that has no character, and the x-height and cap height are shown only when the file states them.
  • A font collection shows one font at a time. Choose the font in the menu.
  • Old and rare forms are not read: Type 1 fonts, EOT files, SVG fonts, bitmap .fon files, and character maps of formats 2, 8 and 14.
  • The preview is drawn by your browser. Another program may place or shape the same text a little differently. The measured sizes are the sizes in this browser.
  • The page asks the browser not to make a fake bold or a fake italic. If an installed font has no italic face or no face of the weight you choose, the nearest real face is shown.
  • A file can be at most 50 MB.

Related tools