Closed GoogleCodeExporter closed 8 years ago
I found the file in the library iText BaseFont.java this code:
if (nameBase.toLowerCase().endsWith(".ttf") || nameBase.toLowerCase().endsWith
(".otf") || nameBase.toLowerCase().indexOf(".ttc,") > 0) {
if (encoding.equals(IDENTITY_H) || encoding.equals(IDENTITY_V))
fontBuilt = new TrueTypeFontUnicode(name, encoding, embedded,
ttfAfm, forceRead);
else {
fontBuilt = new TrueTypeFont(name, encoding, embedded, ttfAfm,
false, forceRead);
fontBuilt.fastWinansi = encoding.equals(CP1252);
}
}
If encoding is not equal to line "IDENTITY-H" or "IDENTITY-V", it is created
non-
Unicode font, and so the Cyrillic characters are displayed incorrectly.
Original comment by stas.agarkov
on 21 Oct 2009 at 12:14
Is it working for you now? If so then what I need to do is make sure that the
feature
is documented! Thank you for the code snippet. I will include that as well, as I
could see that offering a lot of clarity to why the fontName and fontEncoding is
necessary.
Original comment by jeff.johnston.mn@gmail.com
on 22 Oct 2009 at 5:53
Yes, it works now. Since I need to create a Unicode font, but it creates only
when
the encoding is equal to line "IDENTITY_H" or "IDENTITY_V", then we have to
specify
the encoding as these lines! I think this is a iText error.
Original comment by stas.agarkov
on 5 Nov 2009 at 2:49
Original comment by jeff.johnston.mn@gmail.com
on 10 Mar 2011 at 10:09
Original issue reported on code.google.com by
stas.agarkov
on 2 Oct 2009 at 11:30