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
..
2023-12-03 00:30:12 +00:00
2025-06-03 19:30:10 -05:00
2025-06-01 20:51:38 +02:00
2024-11-17 20:27:58 +01:00
2025-04-09 12:51:21 +02:00
2025-01-30 18:42:59 +01:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-06-03 19:30:10 -05:00
2025-06-03 19:30:10 -05:00
2023-12-03 00:30:12 +00:00
2025-06-11 08:10:18 -05:00
2025-06-11 08:10:18 -05:00
2025-06-03 11:20:56 -05:00
2025-05-16 14:57:59 -05:00
2025-06-11 08:10:18 -05:00
2025-06-11 08:10:18 -05:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-01-27 17:50:39 +01:00
2024-12-10 11:29:48 +01:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-05-28 23:05:36 +02:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-04-09 12:51:21 +02:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-04-09 12:51:21 +02:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-06-03 19:30:10 -05:00
2025-06-03 19:30:10 -05:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2024-12-10 11:29:48 +01:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-06-10 23:01:09 +02:00
2025-06-10 23:01:09 +02:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-04-09 12:51:21 +02:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2024-06-10 19:31:41 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-04-24 01:05:34 +02:00
2025-04-24 01:05:34 +02:00
2024-11-17 18:03:49 +01:00
2024-12-10 11:29:48 +01:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2024-01-17 19:40:27 +00:00
2024-01-17 19:40:27 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-06-02 00:29:03 -05:00
2025-06-02 00:29:03 -05:00
2025-06-02 00:29:03 -05:00
2025-06-02 00:29:03 -05:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2024-12-30 22:23:05 +01:00
2023-12-03 00:30:12 +00:00
2025-05-29 06:23:20 -05:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2025-04-11 06:24:32 +02:00
2023-12-17 09:43:54 +00:00
2025-04-09 12:51:21 +02:00
2023-12-03 00:30:12 +00:00
2024-12-10 11:29:48 +01:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00
2023-12-03 00:30:12 +00:00