bai yuan created PDFBOX-6177:
--------------------------------
Summary: Incorrect Thai tone mark position
Key: PDFBOX-6177
URL: https://issues.apache.org/jira/browse/PDFBOX-6177
Project: PDFBox
Issue Type: Bug
Affects Versions: 2.0.35
Reporter: bai yuan
Attachments: 38455816201.ttf, image-2026-03-17-11-49-42-175.png
Thai tone mark does not match expectations
{code:java}
try (PDDocument document = new PDDocument()) {
PDPage page = new PDPage();
document.addPage(page);
TrueTypeFont ttFont = new TTFParser().parse(new File("38455816201.ttf"));
PDFont font = PDType0Font.load(document, ttFont, true);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.beginText();
contentStream.setFont(font, 12);
contentStream.newLineAtOffset(100, 700);
contentStream.showText("ผู้ค้ำ");
contentStream.endText();
contentStream.close();
document.save("output.pdf");
} catch (IOException e) {
e.printStackTrace();
} {code}
!image-2026-03-17-11-49-42-175.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]