summaryrefslogtreecommitdiff
path: root/src/fontpack.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-15 12:08:27 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-15 12:08:27 +0300
commit2f3987f5e54d95658f95c6991b0644bc15eedabf (patch)
treec8b76534a2b5d758c3062603afb3b2665856a548 /src/fontpack.h
parentf5938745dcbe567d6e52f79b63151584d2c917d8 (diff)
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.
Diffstat (limited to 'src/fontpack.h')
-rw-r--r--src/fontpack.h8
1 files changed, 4 insertions, 4 deletions
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)
110iDeclareTypeConstruction(FontSpec) 110iDeclareTypeConstruction(FontSpec)
111 111
112enum iFontSpecFlags { 112enum iFontSpecFlags {
113 override_FontSpecFlag = iBit(1), 113 override_FontSpecFlag = iBit(1),
114 monospace_FontSpecFlag = iBit(2), /* can be used in preformatted content */ 114 monospace_FontSpecFlag = iBit(2), /* can be used in preformatted content */
115 auxiliary_FontSpecFlag = iBit(3), /* only used for looking up glyphs missing from other fonts */ 115 auxiliary_FontSpecFlag = iBit(3), /* only used for looking up glyphs missing from other fonts */
116 arabic_FontSpecFlag = iBit(4), 116 allowSpacePunct_FontSpecFlag = iBit(4), /* space/punctuation glyphs from this auxiliary font can be used */
117 fixNunitoKerning_FontSpecFlag = iBit(31), /* manual hardcoded kerning tweaks for Nunito */ 117 fixNunitoKerning_FontSpecFlag = iBit(31), /* manual hardcoded kerning tweaks for Nunito */
118}; 118};
119 119