diff options
author | Phil Jones <philj56@gmail.com> | 2023-04-10 09:01:50 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2023-04-10 09:01:50 +0100 |
commit | ae8c8e36b93bfaf7120d99a6109998553eccfbcd (patch) | |
tree | cb74df01d199cdb8b65c75903bbc2580fe01a1b6 /src/entry_backend/harfbuzz.h | |
parent | 2f29475290c301af30e1067ea0aec23f5324bd3a (diff) |
Fix broken line spacing with some fonts.
I had misunderstood the purpose of the OpenType line gap field 'hlgp'. I
thought this was a suggested total line spacing, but it's actually extra
spacing to be added to (ascender - descender).
Diffstat (limited to 'src/entry_backend/harfbuzz.h')
-rw-r--r-- | src/entry_backend/harfbuzz.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entry_backend/harfbuzz.h b/src/entry_backend/harfbuzz.h index faf0c68..e15e785 100644 --- a/src/entry_backend/harfbuzz.h +++ b/src/entry_backend/harfbuzz.h @@ -27,6 +27,7 @@ struct entry_backend_harfbuzz { uint8_t num_variations; uint8_t num_features; + double line_spacing; double scale; bool disable_hinting; |