xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lberna...@apache.org
Subject svn commit: r1445976 - /xmlgraphics/site/trunk/content/fop/trunk/fonts.mdtext
Date Wed, 13 Feb 2013 23:13:58 GMT
Author: lbernardo
Date: Wed Feb 13 23:13:58 2013
New Revision: 1445976

URL: http://svn.apache.org/r1445976
Log:
updated information about embedding and type 1 fonts

Modified:
    xmlgraphics/site/trunk/content/fop/trunk/fonts.mdtext

Modified: xmlgraphics/site/trunk/content/fop/trunk/fonts.mdtext
URL: http://svn.apache.org/viewvc/xmlgraphics/site/trunk/content/fop/trunk/fonts.mdtext?rev=1445976&r1=1445975&r2=1445976&view=diff
==============================================================================
--- xmlgraphics/site/trunk/content/fop/trunk/fonts.mdtext (original)
+++ xmlgraphics/site/trunk/content/fop/trunk/fonts.mdtext Wed Feb 13 23:13:58 2013
@@ -51,7 +51,7 @@ When working with one of these output fo
 
 ## Custom Fonts {#custom}
 
-Support for custom fonts is highly output format dependent (see above table). This section
shows how to add Type 1 and TrueType fonts to the PDF, PostScript and Java2D-based renderers.
Other renderers (like AFP) support other font formats. Details in this case can be found on
the page about [output formats](output.html). FOP does not support OpenType fonts yet, although
that is in the roadmap for the next release. 
+Support for custom fonts is highly output format dependent (see above table). This section
shows how to add Type 1 and TrueType fonts (TTF) to the PDF, PostScript and Java2D-based renderers.
Other renderers (like AFP) support other font formats. Details in this case can be found on
the page about [output formats](output.html). FOP does not support OpenType fonts (OTF) yet,
although that is in the roadmap for the next release. 
 
 In earlier FOP versions, it was always necessary to create an XML font metrics file if you
wanted to add a custom font. This unconvenient step has been removed and in addition to that,
FOP supports auto-registration of fonts, i.e. FOP can find fonts installed in your operating
system or can scan user-specified directories for fonts. Font registration via XML font metrics
has been deprecated and is not recommended although it is still supported by the current code.
 
@@ -87,19 +87,19 @@ You must tell FOP how to find and use th
     <renderers>
        <renderer mime="application/pdf">
            <fonts>
-               <!-- register a particular font -->
-               <font kerning="yes"
-                     embed-url="/System/Library/fonts/Arial.ttf"
-                     embedding-mode="subset">
+               <font kerning="yes" embed-url="/System/Library/Fonts/Arial.ttf" embedding-mode="subset">
                    <font-triplet name="Arial" style="normal" weight="normal"/>
                </font>
+               <font kerning="yes" embed-url="/System/Library/Fonts/AEHO____.PFB">
+                   <font-triplet name="Avenir-HeavyOblique" style="normal" weight="bold"/>
+               </font>
            </fonts>
        </renderer>
     </renderers>
 
 - The "embed-url" attribute is used to specify the font file. Relative URLs are resolved
relative to the font-base property (or base) if available. See [FOP: Configuration](configuration.html)
for more information. 
 
-- The "embedding-mode" attribute is optional and can take two values: subset (the default)
and full. If not specified the font is subset embedded unless is explicitly referenced (see
below).
+- The "embedding-mode" attribute is optional and can take two values: subset (the default)
and full. If not specified the font is subset embedded for TTF or full embedded for Type 1,
unless it is explicitly referenced (see below). Subset embedding for Type 1 fonts is not supported.
 
 - The font "kerning" attribute is optional. Default is "true".
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message