Added #2176 Ignoring letter spacing on text search (only applies to global search, not to search inside text

Fixed #2176 Reset letterspacing on text import
This commit is contained in:
Jindra Petřík
2024-01-06 10:23:34 +01:00
parent f931488477
commit 4a4851fb50
3 changed files with 6 additions and 3 deletions

View File

@@ -302,7 +302,7 @@ public abstract class StaticTextTag extends TextTag {
}
int advance = getAdvance(fnt, ge.glyphIndex, textHeight, c, nextChar);
int delta = ge.glyphAdvance - advance;
if (delta != letterSpacing) {
if (delta != letterSpacing && !ignoreLetterSpacing) {
writer.append("[space " + (delta - letterSpacing) + "]");
}
}