diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-15 12:08:27 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-15 12:08:27 +0300 |
commit | 2f3987f5e54d95658f95c6991b0644bc15eedabf (patch) | |
tree | c8b76534a2b5d758c3062603afb3b2665856a548 /src/fontpack.c | |
parent | f5938745dcbe567d6e52f79b63151584d2c917d8 (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.c')
-rw-r--r-- | src/fontpack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fontpack.c b/src/fontpack.c index 9baedc0e..b135ea43 100644 --- a/src/fontpack.c +++ b/src/fontpack.c | |||
@@ -350,8 +350,8 @@ void handleIniKeyValue_FontPack_(void *context, const iString *table, const iStr | |||
350 | else if (!cmp_String(key, "auxiliary") && value->type == boolean_TomlType) { | 350 | else if (!cmp_String(key, "auxiliary") && value->type == boolean_TomlType) { |
351 | iChangeFlags(d->loadSpec->flags, auxiliary_FontSpecFlag, value->value.boolean); | 351 | iChangeFlags(d->loadSpec->flags, auxiliary_FontSpecFlag, value->value.boolean); |
352 | } | 352 | } |
353 | else if (!cmp_String(key, "arabic") && value->type == boolean_TomlType) { | 353 | else if (!cmp_String(key, "allowspace") && value->type == boolean_TomlType) { |
354 | iChangeFlags(d->loadSpec->flags, arabic_FontSpecFlag, value->value.boolean); | 354 | iChangeFlags(d->loadSpec->flags, allowSpacePunct_FontSpecFlag, value->value.boolean); |
355 | } | 355 | } |
356 | else if (!cmp_String(key, "tweaks")) { | 356 | else if (!cmp_String(key, "tweaks")) { |
357 | iChangeFlags(d->loadSpec->flags, fixNunitoKerning_FontSpecFlag, | 357 | iChangeFlags(d->loadSpec->flags, fixNunitoKerning_FontSpecFlag, |