mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-14 15:51:53 +00:00
Fixed #1748 Wrong glyphadvance of DefineEditText fonts for rendering
Added DSSReader to Netbeans Lib project
This commit is contained in:
@@ -1052,7 +1052,7 @@ public class DefineEditTextTag extends TextTag {
|
||||
String fontName = ge.fontFace != null ? ge.fontFace : FontTag.getDefaultFontName();
|
||||
int fontStyle = font == null ? ge.fontStyle : font.getFontStyle();
|
||||
ge.glyphAdvance = font == null ? (int) Math.round(SWF.unitDivisor * FontTag.getSystemFontAdvance(fontName, fontStyle, (int) (lastStyle.fontHeight / SWF.unitDivisor), c, nextChar))
|
||||
: (int) (font.getGlyphAdvance(ge.glyphIndex) / font.getDivider());
|
||||
: (int) Math.round(font.getGlyphAdvance(ge.glyphIndex) / font.getDivider() * lastStyle.fontHeight / 1024);
|
||||
|
||||
textModel.addGlyph(c, ge);
|
||||
if (Character.isWhitespace(c)) {
|
||||
|
||||
Reference in New Issue
Block a user