Hi, just a question about registering fonts which strikes me a bit weird..
I'm using pdfGraphics2D and register awt fonts and pdf fonts..
The awt fonts are physical included fonts..
fontName is location of the font/ resource..
FontFactory.register(fontName)
BaseFont pdfFont = BaseFont.createFont(fontName, BaseFont.IDENTITY_H,
BaseFont.EMBEDDED);
Object allNames[] = {pdfFont.getPostscriptFontName(),
pdfFont.getFamilyFontName(), pdfFont.getFullFontName()};
mapper.insertNames(allNames, fontName);
I put all the fonts in the DefaultFontMapper mapper..
When I use Polish characters and use by example Arial as font only certain
glyphs are drawn..
I noticed that the BaseFontParameters are default on CP1252..
When setting them to Identity-H...
DefaultFontMapper.BaseFontParameters baseFontParameters =
mapper.getBaseFontParameters(pdfFont.getPostscriptFontName());
if (baseFontParameters != null) {
baseFontParameters.encoding = BaseFont.IDENTITY_H;
baseFontParameters.embedded = true;
}
All is displayed correctly..
But why is this default on CP1252 when I just added the basefont with
Identity-H to the map?
Kind regards,
Peter van Raamsdonk
_________________________________________________________________
What can you do with the new Windows Live? Find out
http://www.microsoft.com/windows/windowslive/default.aspx
------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php