xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Stoessel" <hstoes...@pm-medici.ch>
Subject AW: AW: PDFTranscoder
Date Wed, 10 Mar 2004 08:38:47 GMT
Hi Thomas

Maybe its really a problem with the fonts. I have copied all ttf fonts from
the C:\WINNT\Fonts (my windows directory) to
C:\Programme\Java\J2SDK1.3.1_07\jre\lib\fonts (my java directory).

I read all the fonts with:

GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
Font[] fonts = ge.getAllFonts();

If I have a look to all this fonts there is no bold or italic font. There
are fonts like "Courier New Negreta cursiva" who should be bold and italic.
But if I have a look with "fonts[i].isBold()", "fonts[i].isItalic()" or
"fonts[i].getStyle()" there is always "false" for bold and italic and "0"
for the style. I don't know why. Maybe you have an idea?

Thanks
Hans




> -----Ursprungliche Nachricht-----
> Von: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
> Gesendet: Dienstag, 9. Marz 2004 19:08
> An: Batik Users
> Betreff: Re: AW: PDFTranscoder
>
>
> Hans Stoessel wrote:
>
> > Are the fonts in your PDF all correct? I mean is the used font the right
> > one? Whats about bold and italic?
>
>      There shouldn't be a problem with bold and italic.  I know I
> use them all the time without a problem.
>
> > I also convert SVG files into WMF, PDF and JPG. And the fonts are not
> > correct. Sometimes the wrong font is used, bold and italic are never
> > correct.
>
>      It sounds to me like you are using fonts (and/or font styles) that
> Java/Batik can't locate.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message