Hi,
I am having problems with maping fonts using this method.
The point is that, in my opinion, something is going wrong.
I am using Gentium font which is located in c:\my_fonts\*.ttf for showing unicode strings.
When the font is mapped
public BaseFont awtToPdf(Font font) {
try {
//BaseFontParameters p = getBaseFontParameters(font.getFontName());
BaseFontParameters p = getBaseFontParameters(font.getName());
.....
method font.getFontName() returns "dialog" name for the font which is located in the directory different than "c:\windows\fonts".
If I place the Gentium font in the "c:\windows\fonts" the name returned is "Gentium".
If I use method font.getName() instead of font.getFontName() each time the font name is proper and equals "Gentium".
Is there some other way to get DefaultFontMapper work properly ?
Maybe some font registration for Java ?
Thanks in advance
Michal
