Noto CJK fonts OTF to TTF export

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
srigud
Posts: 2
Joined: Fri Mar 27, 2020 1:54 pm

Noto CJK fonts OTF to TTF export

Post by srigud »

Hi,
I am a new user to FontCreator and I have no knowledge of fonts. I bought this software only to convert Google Noto CJK fonts from otf format to ttf format so that I can use the ttf fonts to create pdf documents using apache pdf box library.
When I am using the converted ttf font, the pdf box fails while loading font with below error.
java.io.IOException: loca is mandatory
at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:209)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:106)
at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:79)

How do we convert Noto cjk otf font to ttf with loca available?
Last edited by srigud on Wed Apr 01, 2020 9:55 pm, edited 1 time in total.
Erwin Denissen
Moderator
Moderator
Posts: 11158
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Noto CJK fonts OTF to TTC export

Post by Erwin Denissen »

You can extract fonts from an OpenType collection, and then open such font to export it with TrueType based outlines.
Erwin Denissen
High-Logic
Proven Font Technology
srigud
Posts: 2
Joined: Fri Mar 27, 2020 1:54 pm

Re: Noto CJK fonts OTF to TTF export

Post by srigud »

This font is not a collection. I have exported it with options given in Legacy TrueType fonts section of your help file.
Could you please let me know how to include loca info? I am converting Google NotosansCJK-TC.otf to ttf. The ttf fails when using with pdfbox with "loca is mandatory" error
Last edited by srigud on Wed Apr 01, 2020 9:56 pm, edited 1 time in total.
Erwin Denissen
Moderator
Moderator
Posts: 11158
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Noto CJK fonts OTF to TTC export

Post by Erwin Denissen »

You mentioned TTC in the subject, so that was why I assumed it was an OpenType font collection. What do you mean with TTC?

I've just send you an email, so we can further look into this issue.
Erwin Denissen
High-Logic
Proven Font Technology
Post Reply