forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r686683 - /forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/output.xmap
Date Mon, 18 Aug 2008 06:42:37 GMT
Author: sjur
Date: Sun Aug 17 23:42:37 2008
New Revision: 686683

URL: http://svn.apache.org/viewvc?rev=686683&view=rev
Log:
Passing in font family names as parameters to the stylesheet.

Tested with the standard skins-based seed. The font family can now easily be changed or overrided
by a simple user configuration.

TODO: If the user wants a named font family instead of the generic serif, sans-serif and monospace,
she still has to change a property within the plugin sitemap, ie change the plugin source.
This needs to be changed to using a locationmap lookup instead.

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/output.xmap

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/output.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/output.xmap?rev=686683&r1=686682&r2=686683&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/output.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/output.xmap Sun Aug 17 23:42:37
2008
@@ -40,6 +40,9 @@
                     <map:transform src="{lm:pdf.transform.document.fo}">
                         <map:parameter name="imagesdir" value="{properties:resources.images}/"/>
                         <map:parameter name="xmlbasedir" value="{properties:content.xdocs}{1}"/>
+                        <map:parameter name="serif"      value="{properties:output.pdf.fontFamily.serif}"/>
+                        <map:parameter name="sans-serif" value="{properties:output.pdf.fontFamily.sansSerif}"/>
+                        <map:parameter name="monospace"  value="{properties:output.pdf.fontFamily.monospace}"/>
                         <map:parameter name="path" value="{1}"/>
                     </map:transform>
                 </map:otherwise>



Mime
View raw message