Re: Problem regarding font substitution

2011-02-02 Thread mehdi houshmand
Hi Peder,

What OS are you using? I just checked in Windows 7, and it's not
obvious using the file system GUI, but there Arial is split up into
arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
However, when going into Windows\Fonts, it does appear to be a single
file. In the Ubuntu flavour of linux, it's the same, arial is split up
into it's constituent parts.

So 2 questions really, firstly, what OS are you using? Secondly what
version of FOP are you using?

Thanks

Mehdi

2011/2/2 Peet Kes peet@gmail.com:
 Hi Eric,

 But I only have one truetrype file for the ArialUnicodeMS font
 I only have ARIALUNI.TTF and when I use this font in Word I can turn on Bold
 and Italic.
 What do I have to do to get this working?

 Best regards,

 Peder

 2011/2/1 Eric Douglas edoug...@blockhouse.com

 You're referencing normal and bold triplets with one font file name.
 They're normally separate files.
 
 From: Peder [mailto:peet@gmail.com]
 Sent: Tuesday, February 01, 2011 8:26 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Problem regarding font substitution

 Hi all,
 I ran across a problem regarding font substitution.
 I use font 'x' for my main output. Whenever I come across characters which
 are not included in my font 'x' I want to use the ArialUnicodeMS as
 catch-all.
 So on the fo:root element I specified:  font-family=ArialUnicodeMS
 But now when I come across the following fo:inline
 fo:inline font-weight=boldKişar Vari/fo:inline
 The text does not appear bold in the PDF
 How come?
 In my fop configuration I specified the following entry for the
 ArialUnicodeMS font:
         font metrics-url=/location to
 fonts/ARIALUNI.xml kerning=true
           embed-url=/location to fonts/ARIALUNI.TTF

   font-triplet name=ArialUnicodeMS style=normal weight=normal/
           font-triplet name=ArialUnicodeMS style=normal
 weight=bold/
           font-triplet name=ArialUnicodeMS style=italic
 weight=normal/
           font-triplet name=ArialUnicodeMS style=italic
 weight=bold/
         /font
 Do I have to change my configuration?
 When I run the transformation I receive the following message:
 WARN  Event
 groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
 effective=ArialUnicodeMS,normal,400}
 How can I prevent this from happening and get the bolded name?
 Best regards,
 Peder




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Problem regarding font substitution

2011-02-02 Thread Peder
Hi Mehdi,

I'm running one version on MacOS and another on linux, both having trouble with 
the arialunicodeMS.
Mind you, I'm using the unicode variant of the regular arial font. This font 
has many more glyphs to display than the regular Arial font.
I'm using FOP1.0 on both OS.

Best regards,

Peder

On 2 feb 2011, at 09:21, mehdi houshmand wrote:

 Hi Peder,
 
 What OS are you using? I just checked in Windows 7, and it's not
 obvious using the file system GUI, but there Arial is split up into
 arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
 However, when going into Windows\Fonts, it does appear to be a single
 file. In the Ubuntu flavour of linux, it's the same, arial is split up
 into it's constituent parts.
 
 So 2 questions really, firstly, what OS are you using? Secondly what
 version of FOP are you using?
 
 Thanks
 
 Mehdi
 
 2011/2/2 Peet Kes peet@gmail.com:
 Hi Eric,
 
 But I only have one truetrype file for the ArialUnicodeMS font
 I only have ARIALUNI.TTF and when I use this font in Word I can turn on Bold
 and Italic.
 What do I have to do to get this working?
 
 Best regards,
 
 Peder
 
 2011/2/1 Eric Douglas edoug...@blockhouse.com
 
 You're referencing normal and bold triplets with one font file name.
 They're normally separate files.
 
 From: Peder [mailto:peet@gmail.com]
 Sent: Tuesday, February 01, 2011 8:26 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Problem regarding font substitution
 
 Hi all,
 I ran across a problem regarding font substitution.
 I use font 'x' for my main output. Whenever I come across characters which
 are not included in my font 'x' I want to use the ArialUnicodeMS as
 catch-all.
 So on the fo:root element I specified:  font-family=ArialUnicodeMS
 But now when I come across the following fo:inline
 fo:inline font-weight=boldKişar Vari/fo:inline
 The text does not appear bold in the PDF
 How come?
 In my fop configuration I specified the following entry for the
 ArialUnicodeMS font:
 font metrics-url=/location to
 fonts/ARIALUNI.xml kerning=true
   embed-url=/location to fonts/ARIALUNI.TTF
 
   font-triplet name=ArialUnicodeMS style=normal weight=normal/
   font-triplet name=ArialUnicodeMS style=normal
 weight=bold/
   font-triplet name=ArialUnicodeMS style=italic
 weight=normal/
   font-triplet name=ArialUnicodeMS style=italic
 weight=bold/
 /font
 Do I have to change my configuration?
 When I run the transformation I receive the following message:
 WARN  Event
 groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
 effective=ArialUnicodeMS,normal,400}
 How can I prevent this from happening and get the bolded name?
 Best regards,
 Peder
 
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Problem regarding font substitution

2011-02-02 Thread Jeremias Maerki
There are two fonts: arial*.ttf and arialuni.ttf. The latter has more
glyphs but only comes in one style. Word can display bold and italic for
ArialUni because it tells Windows to synthesize the derived styles. We
could theoretically do this, too, for PDF output, but that is not
currently implemented in Apache FOP. Anyway, I don't think such a
derived font can ever look really nice. And AFAIK, PDF is the only
output format (of the ones we support) that allows this font derivation.

For reference:
- PDF 1.4 Spec, chapter 5.5.2 TrueType Fonts

  Using ArialUni,Bold instead of ArialUni in the /BaseFont entry
  creates the synthesized font.

On 02.02.2011 09:21:41 mehdi houshmand wrote:
 Hi Peder,
 
 What OS are you using? I just checked in Windows 7, and it's not
 obvious using the file system GUI, but there Arial is split up into
 arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
 However, when going into Windows\Fonts, it does appear to be a single
 file. In the Ubuntu flavour of linux, it's the same, arial is split up
 into it's constituent parts.
 
 So 2 questions really, firstly, what OS are you using? Secondly what
 version of FOP are you using?
 
 Thanks
 
 Mehdi
 
 2011/2/2 Peet Kes peet@gmail.com:
  Hi Eric,
 
  But I only have one truetrype file for the ArialUnicodeMS font
  I only have ARIALUNI.TTF and when I use this font in Word I can turn on Bold
  and Italic.
  What do I have to do to get this working?
 
  Best regards,
 
  Peder
 
  2011/2/1 Eric Douglas edoug...@blockhouse.com
 
  You're referencing normal and bold triplets with one font file name.
  They're normally separate files.
  
  From: Peder [mailto:peet@gmail.com]
  Sent: Tuesday, February 01, 2011 8:26 AM
  To: fop-users@xmlgraphics.apache.org
  Subject: Problem regarding font substitution
 
  Hi all,
  I ran across a problem regarding font substitution.
  I use font 'x' for my main output. Whenever I come across characters which
  are not included in my font 'x' I want to use the ArialUnicodeMS as
  catch-all.
  So on the fo:root element I specified:  font-family=ArialUnicodeMS
  But now when I come across the following fo:inline
  fo:inline font-weight=boldKiºar Vari/fo:inline
  The text does not appear bold in the PDF
  How come?
  In my fop configuration I specified the following entry for the
  ArialUnicodeMS font:
          font metrics-url=/location to
  fonts/ARIALUNI.xml kerning=true
            embed-url=/location to fonts/ARIALUNI.TTF
 
    font-triplet name=ArialUnicodeMS style=normal weight=normal/
            font-triplet name=ArialUnicodeMS style=normal
  weight=bold/
            font-triplet name=ArialUnicodeMS style=italic
  weight=normal/
            font-triplet name=ArialUnicodeMS style=italic
  weight=bold/
          /font
  Do I have to change my configuration?
  When I run the transformation I receive the following message:
  WARN  Event
  groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
  effective=ArialUnicodeMS,normal,400}
  How can I prevent this from happening and get the bolded name?
  Best regards,
  Peder
 
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 




Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Problem regarding font substitution

2011-02-02 Thread mehdi houshmand
I concur with Jeremias, if you wish to view fonts so you can better
diagnose these issues yourself a good tool is fontforge
(http://fontforge.sourceforge.net/) which allows you to analyse
individual glyphs. Also as part of the same package is a program
called showttf which I've found invaluable in debugging font files.

Hope that helps

Mehdi

On 2 February 2011 08:30, Jeremias Maerki d...@jeremias-maerki.ch wrote:
 There are two fonts: arial*.ttf and arialuni.ttf. The latter has more
 glyphs but only comes in one style. Word can display bold and italic for
 ArialUni because it tells Windows to synthesize the derived styles. We
 could theoretically do this, too, for PDF output, but that is not
 currently implemented in Apache FOP. Anyway, I don't think such a
 derived font can ever look really nice. And AFAIK, PDF is the only
 output format (of the ones we support) that allows this font derivation.

 For reference:
 - PDF 1.4 Spec, chapter 5.5.2 TrueType Fonts

  Using ArialUni,Bold instead of ArialUni in the /BaseFont entry
  creates the synthesized font.

 On 02.02.2011 09:21:41 mehdi houshmand wrote:
 Hi Peder,

 What OS are you using? I just checked in Windows 7, and it's not
 obvious using the file system GUI, but there Arial is split up into
 arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
 However, when going into Windows\Fonts, it does appear to be a single
 file. In the Ubuntu flavour of linux, it's the same, arial is split up
 into it's constituent parts.

 So 2 questions really, firstly, what OS are you using? Secondly what
 version of FOP are you using?

 Thanks

 Mehdi

 2011/2/2 Peet Kes peet@gmail.com:
  Hi Eric,
 
  But I only have one truetrype file for the ArialUnicodeMS font
  I only have ARIALUNI.TTF and when I use this font in Word I can turn on 
  Bold
  and Italic.
  What do I have to do to get this working?
 
  Best regards,
 
  Peder
 
  2011/2/1 Eric Douglas edoug...@blockhouse.com
 
  You're referencing normal and bold triplets with one font file name.
  They're normally separate files.
  
  From: Peder [mailto:peet@gmail.com]
  Sent: Tuesday, February 01, 2011 8:26 AM
  To: fop-users@xmlgraphics.apache.org
  Subject: Problem regarding font substitution
 
  Hi all,
  I ran across a problem regarding font substitution.
  I use font 'x' for my main output. Whenever I come across characters which
  are not included in my font 'x' I want to use the ArialUnicodeMS as
  catch-all.
  So on the fo:root element I specified:  font-family=ArialUnicodeMS
  But now when I come across the following fo:inline
  fo:inline font-weight=boldKiºar Vari/fo:inline
  The text does not appear bold in the PDF
  How come?
  In my fop configuration I specified the following entry for the
  ArialUnicodeMS font:
          font metrics-url=/location to
  fonts/ARIALUNI.xml kerning=true
            embed-url=/location to fonts/ARIALUNI.TTF
 
    font-triplet name=ArialUnicodeMS style=normal weight=normal/
            font-triplet name=ArialUnicodeMS style=normal
  weight=bold/
            font-triplet name=ArialUnicodeMS style=italic
  weight=normal/
            font-triplet name=ArialUnicodeMS style=italic
  weight=bold/
          /font
  Do I have to change my configuration?
  When I run the transformation I receive the following message:
  WARN  Event
  groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
  effective=ArialUnicodeMS,normal,400}
  How can I prevent this from happening and get the bolded name?
  Best regards,
  Peder
 
 
 

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





 Jeremias Maerki


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Problem regarding font substitution

2011-02-02 Thread Peder
Hi Jeremias,

Well, it helps partially. When I come across words with characters not in the 
standard font, the word gets rendered in the second (fall-back) font. The only 
side-effect is that bold and/or italic is ignored;-(
Anyway, thanks for the clarification.

Best regards,

Peder


On 2 feb 2011, at 09:51, Jeremias Maerki wrote:

 On 02.02.2011 09:41:12 Peder wrote:
 Hi Jeremias,
 
 What can be done when I have characters in the xml that don't have a glyph 
 in the used font?
 I can fall back to another font, which in this case is ArialUni but that 
 doesn't get the bold or italic style if needed.
 
 You can specify font-family=Arial, ArialUni but since Apache FOP
 currently doesn't support font selection glyph-by-glyph, the automatic
 selection will only work word-by-word. So that probably won't help you,
 I'm afraid.
 
 What do you mean with Using ArialUni,Bold In stead of ArialUni in the 
 /BaseFont entry? Where do I put that?
 
 These are low-level PDF structures. First we'd have to support that in
 FOP's PDF library and then within the fonts module. So we're talking
 Java development here. Nothing a normal user can do at the moment. I
 just mentioned that to give some context should anyone decide to change
 FOP to support this.
 
 Best regards,
 
 Peder
 
 On 2 feb 2011, at 09:30, Jeremias Maerki wrote:
 
 There are two fonts: arial*.ttf and arialuni.ttf. The latter has more
 glyphs but only comes in one style. Word can display bold and italic for
 ArialUni because it tells Windows to synthesize the derived styles. We
 could theoretically do this, too, for PDF output, but that is not
 currently implemented in Apache FOP. Anyway, I don't think such a
 derived font can ever look really nice. And AFAIK, PDF is the only
 output format (of the ones we support) that allows this font derivation.
 
 For reference:
 - PDF 1.4 Spec, chapter 5.5.2 TrueType Fonts
 
 Using ArialUni,Bold instead of ArialUni in the /BaseFont entry
 creates the synthesized font.
 
 On 02.02.2011 09:21:41 mehdi houshmand wrote:
 Hi Peder,
 
 What OS are you using? I just checked in Windows 7, and it's not
 obvious using the file system GUI, but there Arial is split up into
 arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
 However, when going into Windows\Fonts, it does appear to be a single
 file. In the Ubuntu flavour of linux, it's the same, arial is split up
 into it's constituent parts.
 
 So 2 questions really, firstly, what OS are you using? Secondly what
 version of FOP are you using?
 
 Thanks
 
 Mehdi
 
 2011/2/2 Peet Kes peet@gmail.com:
 Hi Eric,
 
 But I only have one truetrype file for the ArialUnicodeMS font
 I only have ARIALUNI.TTF and when I use this font in Word I can turn on 
 Bold
 and Italic.
 What do I have to do to get this working?
 
 Best regards,
 
 Peder
 
 2011/2/1 Eric Douglas edoug...@blockhouse.com
 
 You're referencing normal and bold triplets with one font file name.
 They're normally separate files.
 
 From: Peder [mailto:peet@gmail.com]
 Sent: Tuesday, February 01, 2011 8:26 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Problem regarding font substitution
 
 Hi all,
 I ran across a problem regarding font substitution.
 I use font 'x' for my main output. Whenever I come across characters 
 which
 are not included in my font 'x' I want to use the ArialUnicodeMS as
 catch-all.
 So on the fo:root element I specified:  font-family=ArialUnicodeMS
 But now when I come across the following fo:inline
 fo:inline font-weight=boldKiºar Vari/fo:inline
 The text does not appear bold in the PDF
 How come?
 In my fop configuration I specified the following entry for the
 ArialUnicodeMS font:
font metrics-url=/location to
 fonts/ARIALUNI.xml kerning=true
  embed-url=/location to fonts/ARIALUNI.TTF
 
  font-triplet name=ArialUnicodeMS style=normal weight=normal/
  font-triplet name=ArialUnicodeMS style=normal
 weight=bold/
  font-triplet name=ArialUnicodeMS style=italic
 weight=normal/
  font-triplet name=ArialUnicodeMS style=italic
 weight=bold/
/font
 Do I have to change my configuration?
 When I run the transformation I receive the following message:
 WARN  Event
 groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
 effective=ArialUnicodeMS,normal,400}
 How can I prevent this from happening and get the bolded name?
 Best regards,
 Peder
 
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h

Re: Problem regarding font substitution

2011-02-02 Thread Peder
But the problem really springs from the fact that FOP doesn't support opentype 
fonts.
Are there any plans to support opentype fonts in FOP?

Best regards,

Peder

On 2 feb 2011, at 09:51, Jeremias Maerki wrote:

 On 02.02.2011 09:41:12 Peder wrote:
 Hi Jeremias,
 
 What can be done when I have characters in the xml that don't have a glyph 
 in the used font?
 I can fall back to another font, which in this case is ArialUni but that 
 doesn't get the bold or italic style if needed.
 
 You can specify font-family=Arial, ArialUni but since Apache FOP
 currently doesn't support font selection glyph-by-glyph, the automatic
 selection will only work word-by-word. So that probably won't help you,
 I'm afraid.
 
 What do you mean with Using ArialUni,Bold In stead of ArialUni in the 
 /BaseFont entry? Where do I put that?
 
 These are low-level PDF structures. First we'd have to support that in
 FOP's PDF library and then within the fonts module. So we're talking
 Java development here. Nothing a normal user can do at the moment. I
 just mentioned that to give some context should anyone decide to change
 FOP to support this.
 
 Best regards,
 
 Peder
 
 On 2 feb 2011, at 09:30, Jeremias Maerki wrote:
 
 There are two fonts: arial*.ttf and arialuni.ttf. The latter has more
 glyphs but only comes in one style. Word can display bold and italic for
 ArialUni because it tells Windows to synthesize the derived styles. We
 could theoretically do this, too, for PDF output, but that is not
 currently implemented in Apache FOP. Anyway, I don't think such a
 derived font can ever look really nice. And AFAIK, PDF is the only
 output format (of the ones we support) that allows this font derivation.
 
 For reference:
 - PDF 1.4 Spec, chapter 5.5.2 TrueType Fonts
 
 Using ArialUni,Bold instead of ArialUni in the /BaseFont entry
 creates the synthesized font.
 
 On 02.02.2011 09:21:41 mehdi houshmand wrote:
 Hi Peder,
 
 What OS are you using? I just checked in Windows 7, and it's not
 obvious using the file system GUI, but there Arial is split up into
 arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
 However, when going into Windows\Fonts, it does appear to be a single
 file. In the Ubuntu flavour of linux, it's the same, arial is split up
 into it's constituent parts.
 
 So 2 questions really, firstly, what OS are you using? Secondly what
 version of FOP are you using?
 
 Thanks
 
 Mehdi
 
 2011/2/2 Peet Kes peet@gmail.com:
 Hi Eric,
 
 But I only have one truetrype file for the ArialUnicodeMS font
 I only have ARIALUNI.TTF and when I use this font in Word I can turn on 
 Bold
 and Italic.
 What do I have to do to get this working?
 
 Best regards,
 
 Peder
 
 2011/2/1 Eric Douglas edoug...@blockhouse.com
 
 You're referencing normal and bold triplets with one font file name.
 They're normally separate files.
 
 From: Peder [mailto:peet@gmail.com]
 Sent: Tuesday, February 01, 2011 8:26 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Problem regarding font substitution
 
 Hi all,
 I ran across a problem regarding font substitution.
 I use font 'x' for my main output. Whenever I come across characters 
 which
 are not included in my font 'x' I want to use the ArialUnicodeMS as
 catch-all.
 So on the fo:root element I specified:  font-family=ArialUnicodeMS
 But now when I come across the following fo:inline
 fo:inline font-weight=boldKiºar Vari/fo:inline
 The text does not appear bold in the PDF
 How come?
 In my fop configuration I specified the following entry for the
 ArialUnicodeMS font:
font metrics-url=/location to
 fonts/ARIALUNI.xml kerning=true
  embed-url=/location to fonts/ARIALUNI.TTF
 
  font-triplet name=ArialUnicodeMS style=normal weight=normal/
  font-triplet name=ArialUnicodeMS style=normal
 weight=bold/
  font-triplet name=ArialUnicodeMS style=italic
 weight=normal/
  font-triplet name=ArialUnicodeMS style=italic
 weight=bold/
/font
 Do I have to change my configuration?
 When I run the transformation I receive the following message:
 WARN  Event
 groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
 effective=ArialUnicodeMS,normal,400}
 How can I prevent this from happening and get the bolded name?
 Best regards,
 Peder
 
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 
 -
 To unsubscribe, e-mail: fop-users

RE: Problem regarding font substitution

2011-02-02 Thread Eric Douglas
There are 3 options.

1) You must include font-name for each block with a reference to a font which 
contains every character you're trying to print.  If you want bold text you 
must reference a bold font name on the tag.  If you want unicode you must name 
a font set which includes the unicode characters.  If you want bold unicode you 
must have a bold unicode font.

2) You can reference a bold font name to get normal characters to print in bold 
and a fallback font name of unicode to get unicode characters to print.  You'd 
still need a font file containing a unicode bold triplet to get the unicode to 
print in bold.

3) The program must be able to use a normal font and generate a bold font from 
it.  I'm no expert on generating fonts, I don't know how difficult it might be 
to identify lines of characters in fonts, but I think there's more to creating 
a good bold font than simply making the lines thicker.


-Original Message-
From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] 
Sent: Wednesday, February 02, 2011 3:31 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem regarding font substitution

There are two fonts: arial*.ttf and arialuni.ttf. The latter has more glyphs 
but only comes in one style. Word can display bold and italic for ArialUni 
because it tells Windows to synthesize the derived styles. We could 
theoretically do this, too, for PDF output, but that is not currently 
implemented in Apache FOP. Anyway, I don't think such a derived font can ever 
look really nice. And AFAIK, PDF is the only output format (of the ones we 
support) that allows this font derivation.

For reference:
- PDF 1.4 Spec, chapter 5.5.2 TrueType Fonts

  Using ArialUni,Bold instead of ArialUni in the /BaseFont entry
  creates the synthesized font.

On 02.02.2011 09:21:41 mehdi houshmand wrote:
 Hi Peder,
 
 What OS are you using? I just checked in Windows 7, and it's not 
 obvious using the file system GUI, but there Arial is split up into 
 arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
 However, when going into Windows\Fonts, it does appear to be a single 
 file. In the Ubuntu flavour of linux, it's the same, arial is split up 
 into it's constituent parts.
 
 So 2 questions really, firstly, what OS are you using? Secondly what 
 version of FOP are you using?
 
 Thanks
 
 Mehdi
 
 2011/2/2 Peet Kes peet@gmail.com:
  Hi Eric,
 
  But I only have one truetrype file for the ArialUnicodeMS font I 
  only have ARIALUNI.TTF and when I use this font in Word I can turn 
  on Bold and Italic.
  What do I have to do to get this working?
 
  Best regards,
 
  Peder
 
  2011/2/1 Eric Douglas edoug...@blockhouse.com
 
  You're referencing normal and bold triplets with one font file name.
  They're normally separate files.
  
  From: Peder [mailto:peet@gmail.com]
  Sent: Tuesday, February 01, 2011 8:26 AM
  To: fop-users@xmlgraphics.apache.org
  Subject: Problem regarding font substitution
 
  Hi all,
  I ran across a problem regarding font substitution.
  I use font 'x' for my main output. Whenever I come across 
  characters which are not included in my font 'x' I want to use the 
  ArialUnicodeMS as catch-all.
  So on the fo:root element I specified:  font-family=ArialUnicodeMS
  But now when I come across the following fo:inline fo:inline 
  font-weight=boldKiºar Vari/fo:inline The text does not appear 
  bold in the PDF How come?
  In my fop configuration I specified the following entry for the 
  ArialUnicodeMS font:
          font metrics-url=/location to fonts/ARIALUNI.xml 
  kerning=true
            embed-url=/location to fonts/ARIALUNI.TTF
 
    font-triplet name=ArialUnicodeMS style=normal 
  weight=normal/
            font-triplet name=ArialUnicodeMS style=normal
  weight=bold/
            font-triplet name=ArialUnicodeMS style=italic
  weight=normal/
            font-triplet name=ArialUnicodeMS style=italic
  weight=bold/
          /font
  Do I have to change my configuration?
  When I run the transformation I receive the following message:
  WARN  Event
  groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fo
  nts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={r
  equested=ArialUnicodeMS,normal,700,
  effective=ArialUnicodeMS,normal,400}
  How can I prevent this from happening and get the bolded name?
  Best regards,
  Peder
 
 
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 




Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr

Re: Problem regarding font substitution

2011-02-02 Thread Glenn Adams
OTF are already supported. However, some features of OTF are not supported.

Regards, Glenn

On Wed, Feb 2, 2011 at 6:10 AM, Peder peet@gmail.com wrote:

 But the problem really springs from the fact that FOP doesn't support
 opentype fonts.
 Are there any plans to support opentype fonts in FOP?

 Best regards,

 Peder

 On 2 feb 2011, at 09:51, Jeremias Maerki wrote:

  On 02.02.2011 09:41:12 Peder wrote:
  Hi Jeremias,
 
  What can be done when I have characters in the xml that don't have a
 glyph in the used font?
  I can fall back to another font, which in this case is ArialUni but that
 doesn't get the bold or italic style if needed.
 
  You can specify font-family=Arial, ArialUni but since Apache FOP
  currently doesn't support font selection glyph-by-glyph, the automatic
  selection will only work word-by-word. So that probably won't help you,
  I'm afraid.
 
  What do you mean with Using ArialUni,Bold In stead of ArialUni in the
 /BaseFont entry? Where do I put that?
 
  These are low-level PDF structures. First we'd have to support that in
  FOP's PDF library and then within the fonts module. So we're talking
  Java development here. Nothing a normal user can do at the moment. I
  just mentioned that to give some context should anyone decide to change
  FOP to support this.
 
  Best regards,
 
  Peder
 
  On 2 feb 2011, at 09:30, Jeremias Maerki wrote:
 
  There are two fonts: arial*.ttf and arialuni.ttf. The latter has more
  glyphs but only comes in one style. Word can display bold and italic
 for
  ArialUni because it tells Windows to synthesize the derived styles. We
  could theoretically do this, too, for PDF output, but that is not
  currently implemented in Apache FOP. Anyway, I don't think such a
  derived font can ever look really nice. And AFAIK, PDF is the only
  output format (of the ones we support) that allows this font
 derivation.
 
  For reference:
  - PDF 1.4 Spec, chapter 5.5.2 TrueType Fonts
 
  Using ArialUni,Bold instead of ArialUni in the /BaseFont entry
  creates the synthesized font.
 
  On 02.02.2011 09:21:41 mehdi houshmand wrote:
  Hi Peder,
 
  What OS are you using? I just checked in Windows 7, and it's not
  obvious using the file system GUI, but there Arial is split up into
  arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf.
  However, when going into Windows\Fonts, it does appear to be a single
  file. In the Ubuntu flavour of linux, it's the same, arial is split up
  into it's constituent parts.
 
  So 2 questions really, firstly, what OS are you using? Secondly what
  version of FOP are you using?
 
  Thanks
 
  Mehdi
 
  2011/2/2 Peet Kes peet@gmail.com:
  Hi Eric,
 
  But I only have one truetrype file for the ArialUnicodeMS font
  I only have ARIALUNI.TTF and when I use this font in Word I can turn
 on Bold
  and Italic.
  What do I have to do to get this working?
 
  Best regards,
 
  Peder
 
  2011/2/1 Eric Douglas edoug...@blockhouse.com
 
  You're referencing normal and bold triplets with one font file name.
  They're normally separate files.
  
  From: Peder [mailto:peet@gmail.com]
  Sent: Tuesday, February 01, 2011 8:26 AM
  To: fop-users@xmlgraphics.apache.org
  Subject: Problem regarding font substitution
 
  Hi all,
  I ran across a problem regarding font substitution.
  I use font 'x' for my main output. Whenever I come across characters
 which
  are not included in my font 'x' I want to use the ArialUnicodeMS as
  catch-all.
  So on the fo:root element I specified:  font-family=ArialUnicodeMS
  But now when I come across the following fo:inline
  fo:inline font-weight=boldKiºar Vari/fo:inline
  The text does not appear bold in the PDF
  How come?
  In my fop configuration I specified the following entry for the
  ArialUnicodeMS font:
 font metrics-url=/location to
  fonts/ARIALUNI.xml kerning=true
   embed-url=/location to fonts/ARIALUNI.TTF
 
   font-triplet name=ArialUnicodeMS style=normal
 weight=normal/
   font-triplet name=ArialUnicodeMS style=normal
  weight=bold/
   font-triplet name=ArialUnicodeMS style=italic
  weight=normal/
   font-triplet name=ArialUnicodeMS style=italic
  weight=bold/
 /font
  Do I have to change my configuration?
  When I run the transformation I receive the following message:
  WARN  Event
 
 groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
  effective=ArialUnicodeMS,normal,400}
  How can I prevent this from happening and get the bolded name?
  Best regards,
  Peder
 
 
 
 
  -
  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
  For additional commands, e-mail:
 fop-users-h...@xmlgraphics.apache.org
 
 
 
 
 
  Jeremias Maerki

Problem regarding font substitution

2011-02-01 Thread Peder
Hi all,

I ran across a problem regarding font substitution.
I use font 'x' for my main output. Whenever I come across characters which are 
not included in my font 'x' I want to use the ArialUnicodeMS as catch-all.
So on the fo:root element I specified:  font-family=ArialUnicodeMS

But now when I come across the following fo:inline

fo:inline font-weight=boldKişar Vari/fo:inline

The text does not appear bold in the PDF
How come?

In my fop configuration I specified the following entry for the ArialUnicodeMS 
font:
font metrics-url=/location to fonts/ARIALUNI.xml kerning=true 
  embed-url=/location to fonts/ARIALUNI.TTF
  font-triplet name=ArialUnicodeMS style=normal weight=normal/
  font-triplet name=ArialUnicodeMS style=normal weight=bold/
  font-triplet name=ArialUnicodeMS style=italic weight=normal/
  font-triplet name=ArialUnicodeMS style=italic weight=bold/
/font

Do I have to change my configuration?
When I run the transformation I receive the following message:

WARN  Event 
groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
 effective=ArialUnicodeMS,normal,400}

How can I prevent this from happening and get the bolded name?

Best regards,

Peder

 



RE: Problem regarding font substitution

2011-02-01 Thread Eric Douglas
You're referencing normal and bold triplets with one font file name.  They're 
normally separate files.



From: Peder [mailto:peet@gmail.com] 
Sent: Tuesday, February 01, 2011 8:26 AM
To: fop-users@xmlgraphics.apache.org
Subject: Problem regarding font substitution


Hi all, 

I ran across a problem regarding font substitution.
I use font 'x' for my main output. Whenever I come across characters which are 
not included in my font 'x' I want to use the ArialUnicodeMS as catch-all.
So on the fo:root element I specified:  font-family=ArialUnicodeMS


But now when I come across the following fo:inline

fo:inline font-weight=boldKişar Vari/fo:inline


The text does not appear bold in the PDF
How come?

In my fop configuration I specified the following entry for the ArialUnicodeMS 
font:
font metrics-url=/location to fonts/ARIALUNI.xml kerning=true 
  embed-url=/location to fonts/ARIALUNI.TTF
  font-triplet name=ArialUnicodeMS style=normal weight=normal/
  font-triplet name=ArialUnicodeMS style=normal weight=bold/
  font-triplet name=ArialUnicodeMS style=italic weight=normal/
  font-triplet name=ArialUnicodeMS style=italic weight=bold/
/font

Do I have to change my configuration?
When I run the transformation I receive the following message:

WARN  Event 
groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
 effective=ArialUnicodeMS,normal,400}

How can I prevent this from happening and get the bolded name?

Best regards,

Peder

 



Re: Problem regarding font substitution

2011-02-01 Thread Peet Kes
Hi Eric,

But I only have one truetrype file for the ArialUnicodeMS font
I only have ARIALUNI.TTF and when I use this font in Word I can turn on Bold
and Italic.
What do I have to do to get this working?

Best regards,

Peder

2011/2/1 Eric Douglas edoug...@blockhouse.com

  You're referencing normal and bold triplets with one font file name.
 They're normally separate files.

  --
 *From:* Peder [mailto:peet@gmail.com]
 *Sent:* Tuesday, February 01, 2011 8:26 AM
 *To:* fop-users@xmlgraphics.apache.org
 *Subject:* Problem regarding font substitution

 Hi all,

 I ran across a problem regarding font substitution.
 I use font 'x' for my main output. Whenever I come across characters which
 are not included in my font 'x' I want to use the ArialUnicodeMS as
 catch-all.
 So on the fo:root element I specified:  font-family=ArialUnicodeMS

  But now when I come across the following fo:inline

  fo:inline font-weight=boldKişar Vari/fo:inline

 The text does not appear bold in the PDF
 How come?

 In my fop configuration I specified the following entry for the
 ArialUnicodeMS font:
  font metrics-url=/location to
 fonts/ARIALUNI.xml kerning=true
   embed-url=/location to fonts/ARIALUNI.TTF

   font-triplet name=ArialUnicodeMS style=normal weight=normal/
   font-triplet name=ArialUnicodeMS style=normal
 weight=bold/
   font-triplet name=ArialUnicodeMS style=italic
 weight=normal/
   font-triplet name=ArialUnicodeMS style=italic
 weight=bold/
 /font

 Do I have to change my configuration?
 When I run the transformation I receive the following message:

  WARN  Event
 groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700,
 effective=ArialUnicodeMS,normal,400}

 How can I prevent this from happening and get the bolded name?

 Best regards,

 Peder