Read more

CSS: How to find out the rendered font in chrome

Emanuel
December 06, 2018Software engineer at makandra GmbH

The rendered font often depends on the local font your system provides, therefore you often find a rule like below in the computed style for an element:

font-family: Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

This means if your system has a font named Menlo, it will render the text with this font. Otherwise it will try Monaco and so on. For the last two fallback options the system is free to use any monospace font or if not present any serif font. At least one serif font should be present on any system.

A side effect is the rendering of a different font on a different system, meaning the font changes e.g. between Linux and Windows. With chrome you can show the actual rendered font in the tab "Elements" > "Computed". Below all computed styles you will see a separated section with the name "Rendered Fonts":

Image

Note: If you want to force a desired font on all systems you normally embed a webfont. This could still lead to some problems e.g. because of IE security settings.

Posted by Emanuel to makandra dev (2018-12-06 09:33)