mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 03:51:53 +00:00
Fixed: Writing DefineFont2/3 ascent/descent as SI16 - it's UI16
This commit is contained in:
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
|
||||
### Fixed
|
||||
- PDF Export - NullPointer when font of text is missing
|
||||
- PDF Export - Text position on font change
|
||||
- Writing DefineFont2/3 ascent/descent as SI16 - it's UI16
|
||||
|
||||
## [14.3.1] - 2021-03-25
|
||||
### Fixed
|
||||
|
||||
@@ -298,8 +298,8 @@ public class DefineFont2Tag extends FontTag {
|
||||
}
|
||||
}
|
||||
if (fontFlagsHasLayout) {
|
||||
sos.writeSI16(fontAscent);
|
||||
sos.writeSI16(fontDescent);
|
||||
sos.writeUI16(fontAscent);
|
||||
sos.writeUI16(fontDescent);
|
||||
sos.writeSI16(fontLeading);
|
||||
for (int i = 0; i < numGlyphs; i++) {
|
||||
sos.writeSI16(fontAdvanceTable.get(i));
|
||||
|
||||
@@ -289,8 +289,8 @@ public class DefineFont3Tag extends FontTag {
|
||||
}
|
||||
}
|
||||
if (fontFlagsHasLayout) {
|
||||
sos.writeSI16(fontAscent);
|
||||
sos.writeSI16(fontDescent);
|
||||
sos.writeUI16(fontAscent);
|
||||
sos.writeUI16(fontDescent);
|
||||
sos.writeSI16(fontLeading);
|
||||
for (int i = 0; i < numGlyphs; i++) {
|
||||
sos.writeSI16(fontAdvanceTable.get(i));
|
||||
|
||||
Reference in New Issue
Block a user