diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-12-02 13:23:37 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-12-02 13:23:37 -0500 |
| commit | c9164f7af0661fae28772200992436cd27e4f93b (patch) | |
| tree | f384fcf873cdf341914b2384f3c7f1402f5cf94a /src | |
| parent | 96bf1092d9c0fc53ab3ab2da9d5af979ce890c81 (diff) | |
pke: font center vertical
Diffstat (limited to 'src')
| -rw-r--r-- | src/font.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/font.cpp b/src/font.cpp index 2296466..3e6f3bc 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -291,6 +291,7 @@ bool FontType_Inner_CalcTransforms(const FontType *ft, FontRender *fr, FontInsta line_index = 0; line_offset = 0; line_height = font_glyph_spacing * ft->spacing.line_height * fr->settings.line_height_scale; + line_offset -= (font_glyph_spacing * fr->settings.line_height_scale) / 2.0; line_length = FontType_Inner_LookAheadLineLength(ft, fr, 0, font_glyph_spacing); if (PK_HAS_FLAG(fr->settings.surface_area_type_flags, FONT_RENDER_SURFACE_AREA_TYPE_FLAGS_CENTER_HORIZONTAL)) { |
