I'm not sure that you always can assume that java fonts are the same as
your system fonts, and I don't think you should map Arial to Helvetica. If
I remember correctly, Helvetica is a nice font, but Arial looks more
like... ugly. Also Arial exists in dozens of different versions, that goes
for other fonts to.

I guess that the simplest solution to your problem is to create
fontmetrics for your java fonts (those found in jre/lib) and add those to
fop with the same name as their java name. You don't have to embed them
in your document (just don't use embed file in your userconfig.xml).

As for sansserif and sans-serif, I don't think it's controversial to add a
mapping for both sansserif and sans-serif in FontSetup


On Sun, 19 Aug 2001, 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 
>    Arial                      -->> Helvetica
>   Times New Roman  -->>  Times-Roman
>   Courier New            -->>  Courier
>  and when they have bold and italic they should be mapped appropriately as well.
> I came across this relevant quote in an article by Thomas Phinney about TrueType and 
>PostScript Type 1.
> Article excerpts:
> According to Dov Isaacs,then Adobe 's Manager
> of Quality Assurance,Printing &Systems Division,
> "regardless of whether you are on a Mac or a PC run-
> ning Windows ...or above,you can mix TrueType
> and Type .with the caveat that you should never
> have both TrueType and Type .fonts with the same
> exact names on the same system."Indeed,having any
> two fonts with identical menu names or PostScript
> font names can confuse the operating system or your
> applications,with unpredictable results.
> ...
> When dealing with fonts on the computer 's side,
> one needs to be careful about deliberately substitut-
> ing Arial for Helvetica and Times New Roman for
> Times,or vice versa.Although the basic spacing of
> the substituted fonts is identical,their kerning pairs
> are not.is can cause text to reflow if one switches
> between two different-but-almost-the-same fonts on
> the computer doing the typesetting,if the program
> supports kerning pairs (graphics and DTP programs,
> and some better word processors).In situations in
> which exact line breaks are not critical,or applica-
> tions in question do not use kerning,problems are
> unlikely.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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

Reply via email to