On Mon, May 13, 2002 at 03:08:32PM +0100, Paulo Soares wrote:
> > What I can't do is actually select and use this font via the Graphics 2D
> > interface.  I found part of a thread in the mailing list archives (which
> > is where I got the above code) but I couldn't find the beginning of the
> > thread.
> > 
>       The purpose of the FonfMapper is to map a PDF font to a awt font.
> This implies that there is a awt font to start with. You'll have to find out
> how are the fonts registered in Unix. In Windows, all the system fonts are
> automatically registered and I suspect that it's the same in Unix with the X
> fonts.  

OK.  What I was trying to do is make the logical font name "SanSerif"
resolve to be this particular TTF font, without registering that font
with the X server.  I am intending to run this under jdk 1.4, running
with the "headless" option - I have yet to investigate how fonts are
registered in this case.

> If you can't register the font you may replace any awt font with:
> 
>       mapper.putName("sansserif", pp);

That works - many thanks.

I had tried this previously, but with:

    mapper.putName("SanSerif", pp);

Like this, it does not work, with "sansserif" it does.  Both ways, I
create the font in AWT using:

  new Font("SanSerif", Font.PLAIN, 18);

> > A non-itext related problem that I have is that we will not be able to
> > distribute the MS Arial Unicode font as part of our application.  Can
> > anyone suggest an alternative source for a font containing the infinity
> > symbol?
> > 
>       All the standard Windows fonts have that symbol.

Unfortunately, the EULA prevents us from redistributing these fonts with
our application.  I have just realised that the Lucida font distributed
with Java is a TTF font, and contains a good range of characters, so
that may be suitable.

thanks for your help,

Paul

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to