Files
0ad/source/ps
trompetin17 dfb4598186 Align font height, capHeight to FreeType metrics
Previously, `height` was derived from a manually chosen glyph (typically
"I", Standard Cap Height) using FontBuilder, and `lineSpacing` was used
inconsistently for layout logic as a height.

Now, with the FreeType-based system:
- `height` uses `face->size->metrics.height`, which includes the
  recommended line height with internal leading/line gap as defined by
  the font designer.
- `lineSpacing` was removed
- `GetCapHeight` uses the standard cap height + ascender to have a
  visual virtual alignment

This change standardizes font metric usage:
- Use `height` for vertical layout and line progression.
- Use `GetCapheight` in layout engines like `CGUIText` or `CGUIString`,

This ensures better alignment across fonts and consistent spacing in
multiline text rendering.

Fixes: #7962
2025-06-11 08:10:18 -05:00
..
2024-12-27 19:32:03 +01:00
2025-04-17 12:35:40 +02:00
2025-04-17 12:35:40 +02:00
2024-12-10 11:29:48 +01:00
2025-02-10 18:11:02 +01:00
2025-04-11 06:24:32 +02:00
2025-01-06 06:59:14 +01:00
2024-12-19 21:36:51 +01:00
2024-12-19 21:36:51 +01:00