Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Chrome "Rendered Fonts" get the name of the font from?

In the Chrome Inspector, Computed Tab, at the bottom, it shows the actual fonts that are rendered, but for the site I am working on it says:

Rendered Fonts

.—Network resource(40 glyphs)

Whereas normally, it says something like this on other sites:

Rendered Fonts

Arial—Local file(158 glyphs)

Consolas—Local file(29 glyphs)

Menlo—Local file(1 glyph)

or this:

Rendered Fonts

Nunito—Network resource(49 glyphs)

Where is it getting the "name" . for my file?

like image 837
allicarn Avatar asked Dec 08 '17 17:12

allicarn


People also ask

What is rendered font in Chrome?

Chrome / Microsoft Edge To see the rendered font you only have to navigate to “Elements”, select and element from the DOM, and select the “Computed” Style information. Scroll to the bottom, and you will see the font that gets rendered on this element. So whenever in doubt, which font, it can easily be identified now.

How do I see what fonts are loaded in Chrome?

The best way so far You can actaully do rightclick: inspect > Application (on the top tabs) > Frames (scroll on the left tabs) Then you can find a Font section where all loaded fonts are listed. It lists all fonts that are loaded in any possible secure way.


2 Answers

Fonts have MetaData, it seems the creator of the font you are using did not properly fill it.

You can try this website to check the metadata of your font to see if the name part has a . in it:

https://opentype.js.org/font-inspector.html

like image 194
Sirence Avatar answered Oct 04 '22 18:10

Sirence


Actually this is the expected behavior of the Webfonts format. In these fonts, font creators remove a number of OpenType tables that have no use in the web environment, including the 'name' table which is where the dot comes from, this allows us to keep the file size to a minimum, and enhance the fonts performance on the web browsers, for instance.

Because of the lack of the 'name' table, Webfonts are not installable on desktop machines, this is also so that the user does not misuse it in a desktop environment, which they are not intended for. Also, fonts can be downloaded from a website and then be used illegally by other companies, by preventing the Webfonts to be installable on desktop computers, we minimize font hacking.

In this case, I'd suggest using the Desktop fonts, as these files will have the complete information of the 'name' table.

like image 21
timSully Avatar answered Oct 04 '22 17:10

timSully