From 2f3987f5e54d95658f95c6991b0644bc15eedabf Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 15 Oct 2021 12:08:27 +0300 Subject: Text: Fixed a line wrapping issue When the last safe break position was not in the current attributed run, the calculated wrap advance came out incorrect. This was possible when the first glyph in an attributed run didn't fit. --- src/fontpack.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fontpack.h') diff --git a/src/fontpack.h b/src/fontpack.h index 429afb5d..f69e2adc 100644 --- a/src/fontpack.h +++ b/src/fontpack.h @@ -110,10 +110,10 @@ iDeclareType(FontSpec) iDeclareTypeConstruction(FontSpec) enum iFontSpecFlags { - override_FontSpecFlag = iBit(1), - monospace_FontSpecFlag = iBit(2), /* can be used in preformatted content */ - auxiliary_FontSpecFlag = iBit(3), /* only used for looking up glyphs missing from other fonts */ - arabic_FontSpecFlag = iBit(4), + override_FontSpecFlag = iBit(1), + monospace_FontSpecFlag = iBit(2), /* can be used in preformatted content */ + auxiliary_FontSpecFlag = iBit(3), /* only used for looking up glyphs missing from other fonts */ + allowSpacePunct_FontSpecFlag = iBit(4), /* space/punctuation glyphs from this auxiliary font can be used */ fixNunitoKerning_FontSpecFlag = iBit(31), /* manual hardcoded kerning tweaks for Nunito */ }; -- cgit v1.2.3