Skip to content

accurately computing the x-height of a font #195

@hrj

Description

@hrj

The problem:

  • CSS21 tests use ex units with Ahem font.
  • Ahem font's x glyph is a full-height square, but it defines x-height to 0.8em in the OS/2 table of the font file.
  • Reading the OS/2 table is not possible because:
  • Per CSS Spec, if the x-height can't be correctly calculated, it should default to 0.5em. However, 0.5em is too low for many fonts (causes problems with vote counts on reddit for example).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions