Author: jacopoc
Date: Fri Aug 10 04:19:58 2007
New Revision: 564554
URL:
http://svn.apache.org/viewvc?view=rev&rev=564554Log:
Added simple way to set a user defined/custom font family for XSL-FO templates (thru FO inheritance).
Modified:
ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl
ofbiz/trunk/framework/common/widget/CommonScreens.xml
Modified: ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl?view=diff&rev=564554&r1=564553&r2=564554==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl Fri Aug 10 04:19:58 2007
@@ -18,7 +18,10 @@
under the License.
-->
<#escape x as x?xml>
-<fo:root xmlns:fo="
http://www.w3.org/1999/XSL/Format">
+<fo:root xmlns:fo="
http://www.w3.org/1999/XSL/Format"
+ <#-- inheritance -->
+ <#if defaultFontFamily?has_content>font-family="${defaultFontFamily}"</#if>
+>
<fo:layout-master-set>
<fo:simple-page-master master-name="main-page"
page-width="8.5in" page-height="11in"
Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?view=diff&rev=564554&r1=564553&r2=564554==============================================================================
--- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Fri Aug 10 04:19:58 2007
@@ -206,6 +206,7 @@
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="logoImageUrl" value="
http://localhost:8080/images/ofbiz_logo.jpg"/>
+ <!--<set field="defaultFontFamily" value="Arial"/>-->
</actions>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/reportTemplate.fo.ftl"/></html></platform-specific>
@@ -220,6 +221,7 @@
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="logoImageUrl" value="
http://localhost:8080/images/ofbiz_logo.jpg"/>
+ <!--<set field="defaultFontFamily" value="Arial"/>-->
</actions>
<widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/simple.fo.ftl"/></html></platform-specific>