Questions about font styles

Hi,
I’m trying to figure out what are the exact values (font-size, line-height, letter-spacing) for all the typography styles (title 1 to 4, body, caption, caption-heading. heading). I tried to use Typography app, but it doesn’t display these details. I checked the documentation for Adwaita, but it is not listed there. I checked the source code for libadwaita project and got some details, but can’t find the base font-size which everything is calculated on.

  • Is base font-size 14px (11pt)?
    What is base line-height?
  • Are the values in CSS the same as in the actual Gnome desktop?
  • Are values with sub-pixel rounded in the end?

Hi,

You can read these values with the GTK Inspector, under the “CSS nodes” tab.

That depends on user settings.

The GNOME desktop only defines the base font size. Apps can override all these settings with custom styles. For non-Adwaita apps, the user theme may impact them too.

I don’t understand the question… These CSS values are floats.
Do you have an usecase in mind?