Am 09.02.2026 um 20:43 schrieb Daniel Gredler:
Ah, got it -- thanks! This indeed fixed the EOF issue.

However, I'm now getting the following error: "True Type fonts using CFF
outlines are not supported"

This is while reading the Noto Sans CJK Regular font file. Is this an area
where FontBox 3.x functionality is more limited than FontBox 2.x was?

No, you should get the same exception in 2.0. If you don't have it as a ttf file, it should work as a ttc file, however the calls are different

https://github.com/notofonts/noto-cjk/tree/main/Sans/OTC

https://github.com/notofonts/noto-cjk/tree/main/Sans

from the EmbeddedMultipleFonts.java example

TrueTypeCollection ttc2 = new TrueTypeCollection(new File("c:/windows/fonts/batang.ttc"));

PDType0Font font2 = PDType0Font.load(document, ttc2.getFontByName("Batang"), true); // Korean


TrueTypeCollection can take an inputstream.

However I see from that website that ttf files are also available, if you know which country you need.


Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to