Randall,

Maybe we need to have something similar to this class in batik:
org.apache.batik.gvt.font.FontFamilyResolver

Going a bit further we could make it an option to be able to use any font
that java can load (ie. reading the font metrics).



On Sun, 19 Aug 2001 23:09:12 Randall Parker wrote:
> 
> Here's the problem in a nutshell: Java's Font class knows about the True
> Type fonts that it loaded from jre\lib
> \fonts and it also seems to know about TrueType fonts that are in the
> operating system's directory of fonts (on
> my NT4 box they are in winnt\fonts). But those font names are not going
> match the Type 1 font names that
> FOP's FontInfo.java and FontSetup.java know about. It appears that
> FontSetup.java does provide a mechanism
> for mapping TT fonts to Type 1 PDF core fonts. What I'm arguing here is
> that more calls to
> FontInfo.addFontProperties need to be added to FontSetup in order to
> support mapping of more TT fonts to
> Type 1 fonts.
> 
> Elsewhere I've been told that the TrueType fonts Courier New and Times
> New Roman are supposed to have the
> same font metrics as the Type 1 fonts Courier and Times Roman. This same
> person also claimed that Arial
> has the same font metrics as Helvetica. If this is really true (anyone
> know a good way to find out?) then it
> makes sense to me for FontInfo to map those TrueType fonts to their
> corresponding Type 1 metric
> equivalalents.
> 
> So True Type fonts available in Java should be mapped to Type 1 fonts in
> PDF as follows:
>    Arial                      -->> Helvetica
>   Times New Roman  -->>  Times-Roman
>   Courier New            -->>  Courier
>  and when they have bold and italic they should be mapped appropriately
> as well.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to