mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 06:40:29 +00:00
Fixed #2211 PDF export, Font export - glyphs with no contours (advance only)
This commit is contained in:
@@ -609,11 +609,8 @@ public class DualPdfGraphics2D extends Graphics2D implements BlendModeSetable, G
|
||||
int spacing = entry.glyphAdvance - calcAdvance;
|
||||
char ch = font.glyphToChar(entry.glyphIndex);
|
||||
if (spacing != 0) {
|
||||
if (text.length() > 0) {
|
||||
drawText(x, y, trans, textColor, existingFonts, font, text.toString(), textHeight, pdfGraphics);
|
||||
}
|
||||
drawText(x + deltaX, y, trans, textColor, existingFonts, font, "" + currentChar, textHeight, pdfGraphics);
|
||||
|
||||
text.append(currentChar);
|
||||
drawText(x, y, trans, textColor, existingFonts, font, text.toString(), textHeight, pdfGraphics);
|
||||
text = new StringBuilder();
|
||||
x = x + deltaX + entry.glyphAdvance;
|
||||
deltaX = 0;
|
||||
|
||||
Reference in New Issue
Block a user