Settings

The font file

TrueType, OpenType, WOFF or WOFF2. It is parsed in this tab and never uploaded.

Drop a font here, or choose one .ttf .otf .woff .woff2
How it works

What a font file will tell you about its own licence

Somebody hands you a .ttf and asks if you can use it in a client's logo. The font itself has the beginning of an answer, in its name records: the copyright string, the designer, the foundry, the licence description, and a licence URL. Those are fields 0, 7, 8, 9, 13 and 14 of the name table, they are text the foundry wrote deliberately, and almost nobody reads them.

They are worth reading because they are frequently the only trace of where a file came from. A font that has passed through three agencies and a shared drive has lost its receipt, its folder and any memory of who bought it, and still carries the foundry's own URL in field 14.

Then there is fsType in the OS/2 table, which is reported here as exactly what it is: two bytes in which a foundry recorded an intention about embedding. It is not the licence. It has no legal force on its own, no application enforces it consistently, and a font marked installable can still be under terms that forbid what you are about to do. It is one signal, and a tool that presented it as an answer would be lying.

Read byte by byte, and why

The sfnt table directory, the name records, head, hhea, OS/2, post, maxp, cmap, fvar and the feature lists inside GSUB and GPOS are all parsed here from the file's own bytes. Borrowing a font library would mean shipping a megabyte of somebody else's code to read a few hundred bytes of header, and would leave nobody on this side able to say where a number on the screen came from.

Two compression formats sit in front of those tables. WOFF wraps each one in zlib, which is undone here. WOFF2 uses Brotli and reorders some tables as it goes; no browser hands its own Brotli decoder to a page, so the decoder the site’s font converter uses is loaded from this site and the tables are put back as they were. The specimen renders either way, because the browser's own font engine is handed the original bytes and does its own decompression.

Coverage, which is the other question

The cmap tells you which characters the font actually has glyphs for, and this is where a project goes wrong quietly. A font that looks complete in English has no idea what to do with Polish, Turkish, Vietnamese or Greek, and the failure is not an error message: the browser silently substitutes a different font for the missing characters, so one name on a certificate is set in something else and nobody notices until it is printed.

The variable-font axes from fvar and the feature lists from GSUB and GPOS answer the related question of what the font can do: whether the small caps, the old-style figures or the tabular numerals you were promised are in the file, rather than being synthesised badly by the application.

Nothing is uploaded, which for fonts is worth stating plainly: a licensed font is a purchased asset, and uploading one to an inspection site is a distribution of it.

Questions people ask about FONTLENS

Can I use this font on my website?

This page cannot tell you that and neither can any page. It shows you the two things that bear on it: the fsType bits, which say what the foundry recorded in the file, and the licence description and licence URL from the name table, which is where the actual terms live. Read the licence. A font marked installable in fsType can still be under a licence that forbids web use.

Can it read a WOFF2?

A WOFF2 holds its tables in one Brotli stream, with the outlines and metrics rearranged to pack smaller. FONTLENS unpacks it with the same decoder the font converter on this site uses, served from this site, and shows every table as it would for a TTF. WOFF2 keeps no checksums of its own, so the checksum column is worked out from the unpacked tables. If the decoder cannot load, the header and table directory are still read and the specimen still works.

What does a 78% on a Unicode block mean?

That the cmap maps 78% of the assigned code points in that block to a glyph. Unassigned code points are not counted against the font. It does not mean the glyphs are good, and it does not mean the font will compose them correctly: a complex script needs GSUB rules as much as it needs glyphs, and coverage says nothing about those.

Why are the metrics three different numbers?

Because there are three sets and they disagree by design. hhea ascender and descender are what most desktop applications use. OS/2 sTypoAscender and sTypoDescender are what the specification says should be used for line layout. OS/2 usWinAscent and usWinDescent are the clipping box Windows uses. A font whose three sets differ will set at different line heights on different systems, and seeing all three is usually how you find out why.

Can it tell a real font from a pirated copy?

No. It reads what the file says about itself, and every one of those fields is text somebody typed. A copy with the name records rewritten looks identical here to the original. What it can do is show you the fields, so you can see when the copyright, the designer and the vendor ID do not agree with each other.

Does the glyph count include blanks?

Yes. numGlyphs in maxp counts every glyph slot in the font, including .notdef, the space glyphs, and any glyph that is a component of another. It is the number the font declares, and it is usually larger than the number of characters the font can show.

I switched a feature on and nothing changed. Why?

Switching a feature on writes it into font-feature-settings on the specimen. If nothing changes, the font has no rule for that feature that applies to the characters in the sample. Change the sample text and try again.

What does FONTLENS read out of the file?

A font file is a database with outlines in it. FONTLENS parses the table directory itself, reads the name records the foundry wrote, decodes the embedding permission bits into English, works out which parts of Unicode the font actually covers, and loads it into the page so you can see a specimen, switch each OpenType feature on and off, and drag every variable axis. The file never leaves this tab.

Doing this often? OBSCURA Vector sets type with your own fonts and turns it into outlines for print, on artboards with layers. Everything is US$5 a month or US$48 a year.