Other thing: the font must be known to Java. It must be placed in a
directory that Java knows about.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Paulo Soares
> Sent: Tuesday, August 05, 2003 12:09
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] DefaultFontMapper - awtToPdf(Font
> font) - problem
>
> Are you registering all the directories with fonts?
>
> Best Regards,
> Paulo Soares
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 11:44
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] DefaultFontMapper - awtToPdf(Font
> font) - problem
>
> 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
>
>
>
>
>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions