Fixed: #2357 FLA export letterspacing on two character texts

Fixed: #2357 FLA export to CS4 and lower - files exceeding 0x7FFF objects limit
Fixed: #2357 FLA export to CS4 and lower - speed optimization
This commit is contained in:
Jindra Petřík
2024-11-10 19:50:55 +01:00
parent 525ea1e031
commit 11ae337d68
4 changed files with 7 additions and 4 deletions
@@ -423,10 +423,10 @@ public abstract class TextTag extends DrawableTag {
letterSpacing = 0;
} else {
int newLetterSpacing = adv - defaultAdvance;
if (e == 0 || e == rec.glyphEntries.size() - 1) {
if (rec.glyphEntries.size() == 1) {
letterSpacing = 0;
}
if (rec.glyphEntries.size() == 1) {
letterSpacing = 0;
} else if (e == rec.glyphEntries.size() - 1) {
//empty
} else if (newLetterSpacing < letterSpacing) {
letterSpacing = newLetterSpacing;
}