mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 10:33:42 +00:00
font ascent and descent values should be non-negative
This commit is contained in:
@@ -282,8 +282,8 @@ public class DefineFont2Tag extends FontTag {
|
||||
}
|
||||
|
||||
if (fontFlagsHasLayout) {
|
||||
fontAscent = sis.readSI16("fontAscent");
|
||||
fontDescent = sis.readSI16("fontDescent");
|
||||
fontAscent = sis.readUI16("fontAscent");
|
||||
fontDescent = sis.readUI16("fontDescent");
|
||||
fontLeading = sis.readSI16("fontLeading");
|
||||
fontAdvanceTable = new ArrayList<>();
|
||||
for (int i = 0; i < numGlyphs; i++) {
|
||||
|
||||
@@ -192,8 +192,8 @@ public class DefineFont3Tag extends FontTag {
|
||||
}
|
||||
}
|
||||
if (fontFlagsHasLayout) {
|
||||
fontAscent = sis.readSI16("fontAscent");
|
||||
fontDescent = sis.readSI16("fontDescent");
|
||||
fontAscent = sis.readUI16("fontAscent");
|
||||
fontDescent = sis.readUI16("fontDescent");
|
||||
fontLeading = sis.readSI16("fontLeading");
|
||||
fontAdvanceTable = new ArrayList<>();
|
||||
for (int i = 0; i < numGlyphs; i++) {
|
||||
|
||||
Reference in New Issue
Block a user