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 Tore Engvig <te...@infostream.no> on 2001/01/30 00:29:42 UTC

Code submission: TrueType font support


Attached is a .tar.gz file containing code, a changes file describing
added files and changes to existing files, and an example document
describing how to create font metrics and embed truetype and type 1
fonts.

The submitted code is support for using TrueType fonts, and embedding
of TrueType and Type1 fonts, and support for kerning.

To embed fonts you have to enter the fontnames to embed in the
userconfig.xml file. You also have to use the userconfig.xml file to
enable kerning.

Fontsupport is still using the old approach of compiling in the
fontclass. In the future it would've been nicer to create metric.xml
files and enable them trough the userconfig.xml file. It would've also
been nice to know wich fonts that are used in a document and only
embed those fonts (or add metric information for used fonts only) - an
even nicer approach would've been to known which glyphs use the
different fonts and only embed subsets.

This code works for most latin fonts, but as the example shows, it has
some weaknesses. It assumes too much about the encoding and doesn't
reencode fonts. That's on the todo list. Also on the todo list are:
reading metrics from .afm files and support for more fonttypes (eg CID
Keyed fonts).

Note: Acrobat3 doesn't like embedded fonts. You'll have to use
Acrobat4.




Re: Code submission: TrueType font support Build with Xalan2?

Posted by Jeroen de Zwart <fa...@dds.nl>.
I'm very excited about this font submission but i can't build fop with it
because
the class org.apache.xalan.xslt.XSLTInputSource is not in xalan2.
anybody who knows how to build it with xalan2?

messages from ant:
...
JAXP1.1 transforms is present. Installing TRaX support
  [copydir] Copying 2 files to D:\java\xml-fop\build\src

prepare-src:
  [copydir] Copying 407 files to D:\java\xml-fop\build\src

compile:
Compiling the sources
    [javac] Compiling 601 source files to D:\java\xml-fop\build\classes
    [javac]
D:\java\xml-fop\build\src\org\apache\fop\fonts\apps\TTFReader.java:458:
Class org.apache.xalan.xslt.XSLTInputSource not found.
    [javac]             org.apache.xalan.xslt.XSLTInputSource xmlSource =
    [javac]                                  ^
....


Jeroen de Zwart


----- Original Message -----
From: "Tore Engvig" <te...@infostream.no>
To: <fo...@xml.apache.org>
Sent: Tuesday, January 30, 2001 12:29 AM
Subject: Code submission: TrueType font support


>
>
> Attached is a .tar.gz file containing code, a changes file describing
> added files and changes to existing files, and an example document
> describing how to create font metrics and embed truetype and type 1
> fonts.
>
> The submitted code is support for using TrueType fonts, and embedding
> of TrueType and Type1 fonts, and support for kerning.
>
> To embed fonts you have to enter the fontnames to embed in the
> userconfig.xml file. You also have to use the userconfig.xml file to
> enable kerning.
>
> Fontsupport is still using the old approach of compiling in the
> fontclass. In the future it would've been nicer to create metric.xml
> files and enable them trough the userconfig.xml file. It would've also
> been nice to know wich fonts that are used in a document and only
> embed those fonts (or add metric information for used fonts only) - an
> even nicer approach would've been to known which glyphs use the
> different fonts and only embed subsets.
>
> This code works for most latin fonts, but as the example shows, it has
> some weaknesses. It assumes too much about the encoding and doesn't
> reencode fonts. That's on the todo list. Also on the todo list are:
> reading metrics from .afm files and support for more fonttypes (eg CID
> Keyed fonts).
>
> Note: Acrobat3 doesn't like embedded fonts. You'll have to use
> Acrobat4.
>
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> 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: Code submission: TrueType font support

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
Hi, Arved

ok, I will link the new design docs with the existing docs. 

Fotis



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


Re: Code submission: TrueType font support

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
Hi, Fotis

I can knock this out tonight. Incidentally, you will doubtless have noticed 
that Stuart Zakon's new design docs (API with images, from Togther, for the 
pdf and layout packages) got committed. Since you are the documentation 
maestro I guess we could use your feedback on the best spot to link that 
stuff in (it's in docs/design/contrib, and there are 2 natural entry points, 
1 for each package).

Regards,
Arved

At 11:09 AM 1/30/01 +0100, Fotis Jannidis wrote:
>Great! Thanks for the contribution. If nobody else 
>has time to commit it, I can do it, but I am not sure whether I can 
>do this before week-end, so if anybody is able to do this earlier ...
>
>Fotis
>
>
>Send reply to:  	fop-dev@xml.apache.org
>Date sent:      	Tue, 30 Jan 2001 00:29:42 +0100 (MET)
>From:           	Tore Engvig <te...@infostream.no>
>To:             	fop-dev@xml.apache.org
>Subject:        	Code submission: TrueType font support
>
>> 
>> 
>> Attached is a .tar.gz file containing code, a changes file describing
>> added files and changes to existing files, and an example document
>> describing how to create font metrics and embed truetype and type 1
>> fonts.
>> 
>> The submitted code is support for using TrueType fonts, and embedding
>> of TrueType and Type1 fonts, and support for kerning.
>> 
>> To embed fonts you have to enter the fontnames to embed in the
>> userconfig.xml file. You also have to use the userconfig.xml file to
>> enable kerning.
>> 
>> Fontsupport is still using the old approach of compiling in the
>> fontclass. In the future it would've been nicer to create metric.xml
>> files and enable them trough the userconfig.xml file. It would've also
>> been nice to know wich fonts that are used in a document and only
>> embed those fonts (or add metric information for used fonts only) - an
>> even nicer approach would've been to known which glyphs use the
>> different fonts and only embed subsets.
>> 
>> This code works for most latin fonts, but as the example shows, it has
>> some weaknesses. It assumes too much about the encoding and doesn't
>> reencode fonts. That's on the todo list. Also on the todo list are:
>> reading metrics from .afm files and support for more fonttypes (eg CID
>> Keyed fonts).
>> 
>> Note: Acrobat3 doesn't like embedded fonts. You'll have to use
>> Acrobat4.
>> 
>> 
>> 
>> 
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>For additional commands, email: fop-dev-help@xml.apache.org
>
>
Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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


Re: Code submission: TrueType font support

Posted by Scott Hofmann <ho...@one.net>.
Tore 
I would like to use the TrueType fonts but I'm not sure how to build a new
fop.jar with the stuff you sent. Can you give me some guidance on this or
simply send me a fop.jar that has your TrueType stuff already in it?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott Hofmann  /  hofmanns@one.net


> From:     Tore Engvig <te...@infostream.no>
> Reply-To: fop-dev@xml.apache.org
> Date:     Mon, 29 Jan 2001 18:29:09 -0500
> To:     fop-dev@xml.apache.org
> Subject: Code submission: TrueType font support
> 
> 
> 
> Attached is a .tar.gz file containing code, a changes file describing
> added files and changes to existing files, and an example document
> describing how to create font metrics and embed truetype and type 1
> fonts.
> 
> The submitted code is support for using TrueType fonts, and embedding
> of TrueType and Type1 fonts, and support for kerning.
> 
> To embed fonts you have to enter the fontnames to embed in the
> userconfig.xml file. You also have to use the userconfig.xml file to
> enable kerning.
> 
> Fontsupport is still using the old approach of compiling in the
> fontclass. In the future it would've been nicer to create metric.xml
> files and enable them trough the userconfig.xml file. It would've also
> been nice to know wich fonts that are used in a document and only
> embed those fonts (or add metric information for used fonts only) - an
> even nicer approach would've been to known which glyphs use the
> different fonts and only embed subsets.
> 
> This code works for most latin fonts, but as the example shows, it has
> some weaknesses. It assumes too much about the encoding and doesn't
> reencode fonts. That's on the todo list. Also on the todo list are:
> reading metrics from .afm files and support for more fonttypes (eg CID
> Keyed fonts).
> 
> Note: Acrobat3 doesn't like embedded fonts. You'll have to use
> Acrobat4.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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: Code submission: TrueType font support

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
Great! Thanks for the contribution. If nobody else 
has time to commit it, I can do it, but I am not sure whether I can 
do this before week-end, so if anybody is able to do this earlier ...

Fotis


Send reply to:  	fop-dev@xml.apache.org
Date sent:      	Tue, 30 Jan 2001 00:29:42 +0100 (MET)
From:           	Tore Engvig <te...@infostream.no>
To:             	fop-dev@xml.apache.org
Subject:        	Code submission: TrueType font support

> 
> 
> Attached is a .tar.gz file containing code, a changes file describing
> added files and changes to existing files, and an example document
> describing how to create font metrics and embed truetype and type 1
> fonts.
> 
> The submitted code is support for using TrueType fonts, and embedding
> of TrueType and Type1 fonts, and support for kerning.
> 
> To embed fonts you have to enter the fontnames to embed in the
> userconfig.xml file. You also have to use the userconfig.xml file to
> enable kerning.
> 
> Fontsupport is still using the old approach of compiling in the
> fontclass. In the future it would've been nicer to create metric.xml
> files and enable them trough the userconfig.xml file. It would've also
> been nice to know wich fonts that are used in a document and only
> embed those fonts (or add metric information for used fonts only) - an
> even nicer approach would've been to known which glyphs use the
> different fonts and only embed subsets.
> 
> This code works for most latin fonts, but as the example shows, it has
> some weaknesses. It assumes too much about the encoding and doesn't
> reencode fonts. That's on the todo list. Also on the todo list are:
> reading metrics from .afm files and support for more fonttypes (eg CID
> Keyed fonts).
> 
> Note: Acrobat3 doesn't like embedded fonts. You'll have to use
> Acrobat4.
> 
> 
> 
> 



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