You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Carsten Karkola <ca...@mailbox.tu-dresden.de> on 2001/04/04 16:06:57 UTC

TTF Font Support with Fop-0.18.1

Hello,

after reading the instructions on the web site, I tried to include a ttf 
font (arial). I modified userconfig.xml:

<font
  metrics-file="file:///E:/Temp/Fop-0.18.1-
DEV/Fonts/arial.xml" kerning="yes"
 embed-file="E:\Temp\Fop-0.18.1-
DEV\Fonts\arial.ttf">
  <font-triplet name="Arial"
                style="normal"
                weight="normal"/>
</font>

and I've used the font.fo example with

<fo:block space-after.optimum="10pt"
          font-family="Arial">
   Ok ! 
</fo:block>

With fop.bat there where no error messages:

>fop -c conf\userconfig.xml docs\examples\fo\fonts.fo
   docs\examples\fo\fonts.pdf
java -cp fop.jar;lib\w3c.jar;lib\xalan-2.0.0.jar;lib\xerces-
1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -c conf\u
serconfig.xml docs\examples\fo\fonts.fo docs\examples\fo\fonts.pdf
reading user configuration file
FOP 0.18.1-DEV
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
formatting FOs into areas
 [1]
rendering areas to PDF
Writing 3536 bytes of font data
Writing 6284 bytes of font data
writing out PDF

In the pdf-file there is only some invisible text (I can select). The 
Font is included, Acrobat Reader shows in Font information
1E3ea7Arial    TrueType (CID)    Windows   eingebettet

What have I missed ?

Carsten

==================================================
==
==    Dipl.-Ing. Carsten Karkola
==
==    TU Dresden - Dez.4; SG 4.2
==
==      Tel.:  +49 351 463 7817
==       Fax:  +49 351 463 7179
==    e-mail:  carsten.karkola@mailbox.tu-dresden.de
==
==================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: TTF Font Support with Fop-0.18.1

Posted by Jason <dr...@nc.rr.com>.
this also persists with the TTF version of MICR font.
the characters render, but they are nothing like the 
actual font character itself. is there something in 
common with these types of fonts which prevents them
from rendering properly?

- jason

> -----Original Message-----
> From: Tore Engvig [mailto:tengvig@infostream.no]
> Sent: Thursday, April 05, 2001 5:54 AM
> To: Petr Andrs
> Cc: fop-dev@xml.apache.org
> Subject: Re: TTF Font Support with Fop-0.18.1
> 
> 
> 
> 
> On Thu, 5 Apr 2001, Petr Andrs wrote:
> 
> > I recently verified, that TTF font embedding bug 1105 is 
> still present
> > in 0.18.1. However my Arial is working, Times and Courier 
> are also fine.
> > Problems are with Verdana, Georgia, Arial Narrow and Trebuchet MS.
> 
> Yes, bug 1105 is still there. I don't think it related to 
> specific fonts.
> I.e. I have a document with the Palatino font where it rendered some
> places but not found other places. I'm working on it and hope 
> to have a
> fix during easter.
> 
> 
> Tore
> 
>  > 
> > pa
> > 
> > P.S. All these are microsoft's web core fonts downloadable from
> > www.microsoft.com/typography
> > 
> > On Thu, 5 Apr 2001, Carsten Karkola wrote:
> > 
> > > Hello, 
> > > 
> > > I update acrobat reader to 4.05, for Arial I see now two "o",
> > > another font (more older from Corel WP, 1996) gives again nothing.
> > > 
> > > I used arial.ttf (19.11.1999 on WinNT 4, size: 151 232),
> > > maybe it's the bug 1105 ?!
> > > 
> > > Ok, I will wait for some news in the discussion.
> > > 
> > > Thanks for the answers, Carsten
> > > 
> > > ==================================================
> > > ==
> > > ==    Dipl.-Ing. Carsten Karkola
> > > ==
> > > ==    TU Dresden - Dez.4; SG 4.2
> > > ==
> > > ==      Tel.:  +49 351 463 7817
> > > ==       Fax:  +49 351 463 7179
> > > ==    e-mail:  carsten.karkola@mailbox.tu-dresden.de
> > > ==
> > > ==================================================
> > > 
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: fop-dev-help@xml.apache.org
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: TTF Font Support with Fop-0.18.1

Posted by Tore Engvig <te...@infostream.no>.

On Thu, 5 Apr 2001, Petr Andrs wrote:

> I recently verified, that TTF font embedding bug 1105 is still present
> in 0.18.1. However my Arial is working, Times and Courier are also fine.
> Problems are with Verdana, Georgia, Arial Narrow and Trebuchet MS.

Yes, bug 1105 is still there. I don't think it related to specific fonts.
I.e. I have a document with the Palatino font where it rendered some
places but not found other places. I'm working on it and hope to have a
fix during easter.


Tore

 > 
> pa
> 
> P.S. All these are microsoft's web core fonts downloadable from
> www.microsoft.com/typography
> 
> On Thu, 5 Apr 2001, Carsten Karkola wrote:
> 
> > Hello, 
> > 
> > I update acrobat reader to 4.05, for Arial I see now two "o",
> > another font (more older from Corel WP, 1996) gives again nothing.
> > 
> > I used arial.ttf (19.11.1999 on WinNT 4, size: 151 232),
> > maybe it's the bug 1105 ?!
> > 
> > Ok, I will wait for some news in the discussion.
> > 
> > Thanks for the answers, Carsten
> > 
> > ==================================================
> > ==
> > ==    Dipl.-Ing. Carsten Karkola
> > ==
> > ==    TU Dresden - Dez.4; SG 4.2
> > ==
> > ==      Tel.:  +49 351 463 7817
> > ==       Fax:  +49 351 463 7179
> > ==    e-mail:  carsten.karkola@mailbox.tu-dresden.de
> > ==
> > ==================================================
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: TTF Font Support with Fop-0.18.1

Posted by Petr Andrs <pa...@artax.karlin.mff.cuni.cz>.
I recently verified, that TTF font embedding bug 1105 is still present
in 0.18.1. However my Arial is working, Times and Courier are also fine.
Problems are with Verdana, Georgia, Arial Narrow and Trebuchet MS.

pa

P.S. All these are microsoft's web core fonts downloadable from
www.microsoft.com/typography

On Thu, 5 Apr 2001, Carsten Karkola wrote:

> Hello, 
> 
> I update acrobat reader to 4.05, for Arial I see now two "o",
> another font (more older from Corel WP, 1996) gives again nothing.
> 
> I used arial.ttf (19.11.1999 on WinNT 4, size: 151 232),
> maybe it's the bug 1105 ?!
> 
> Ok, I will wait for some news in the discussion.
> 
> Thanks for the answers, Carsten
> 
> ==================================================
> ==
> ==    Dipl.-Ing. Carsten Karkola
> ==
> ==    TU Dresden - Dez.4; SG 4.2
> ==
> ==      Tel.:  +49 351 463 7817
> ==       Fax:  +49 351 463 7179
> ==    e-mail:  carsten.karkola@mailbox.tu-dresden.de
> ==
> ==================================================
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: TTF Font Support with Fop-0.18.1

Posted by Carsten Karkola <ca...@mailbox.tu-dresden.de>.
Hello, 

I update acrobat reader to 4.05, for Arial I see now two "o",
another font (more older from Corel WP, 1996) gives again nothing.

I used arial.ttf (19.11.1999 on WinNT 4, size: 151 232),
maybe it's the bug 1105 ?!

Ok, I will wait for some news in the discussion.

Thanks for the answers, Carsten

==================================================
==
==    Dipl.-Ing. Carsten Karkola
==
==    TU Dresden - Dez.4; SG 4.2
==
==      Tel.:  +49 351 463 7817
==       Fax:  +49 351 463 7179
==    e-mail:  carsten.karkola@mailbox.tu-dresden.de
==
==================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: TTF Font Support with Fop-0.18.1

Posted by Petr Andrs <pa...@artax.karlin.mff.cuni.cz>.
As I can see you have made no mistake. This behavior is described in bug
1105. But latest Arial from microsoft worked ok for me, I had these
problems with other fonts.

pa

On Wed, 4 Apr 2001, Carsten Karkola wrote:

> Hello,
> 
> after reading the instructions on the web site, I tried to include a ttf 
> font (arial). I modified userconfig.xml:
> 
> <font
>   metrics-file="file:///E:/Temp/Fop-0.18.1-
> DEV/Fonts/arial.xml" kerning="yes"
>  embed-file="E:\Temp\Fop-0.18.1-
> DEV\Fonts\arial.ttf">
>   <font-triplet name="Arial"
>                 style="normal"
>                 weight="normal"/>
> </font>
> 
> and I've used the font.fo example with
> 
> <fo:block space-after.optimum="10pt"
>           font-family="Arial">
>    Ok ! 
> </fo:block>
> 
> With fop.bat there where no error messages:
> 
> >fop -c conf\userconfig.xml docs\examples\fo\fonts.fo
>    docs\examples\fo\fonts.pdf
> java -cp fop.jar;lib\w3c.jar;lib\xalan-2.0.0.jar;lib\xerces-
> 1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -c conf\u
> serconfig.xml docs\examples\fo\fonts.fo docs\examples\fo\fonts.pdf
> reading user configuration file
> FOP 0.18.1-DEV
> using SAX parser org.apache.xerces.parsers.SAXParser
> building formatting object tree
> setting up fonts
> formatting FOs into areas
>  [1]
> rendering areas to PDF
> Writing 3536 bytes of font data
> Writing 6284 bytes of font data
> writing out PDF
> 
> In the pdf-file there is only some invisible text (I can select). The 
> Font is included, Acrobat Reader shows in Font information
> 1E3ea7Arial    TrueType (CID)    Windows   eingebettet
> 
> What have I missed ?
> 
> Carsten
> 
> ==================================================
> ==
> ==    Dipl.-Ing. Carsten Karkola
> ==
> ==    TU Dresden - Dez.4; SG 4.2
> ==
> ==      Tel.:  +49 351 463 7817
> ==       Fax:  +49 351 463 7179
> ==    e-mail:  carsten.karkola@mailbox.tu-dresden.de
> ==
> ==================================================
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org