This defines the NotoSans font as default for report and FOP-PDF examples

With NotoSans by default, no need to specify the NotoSans "font-family" to write special characters in examples PDF (including content called from example).
This already worked in reports because of "fop.font.family=NotoSans" in fop.properties. It's also the way to use for custom reports.

I also added <auto-embed/> like we have <auto-detect/> but I'm unsure of what it does exactly (I suppose it embeds the fonts glyphs in the PDF) because the FOP documentation is unclear about it (to say the least). If someone knows better please chime in!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1675061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2015-04-21 08:03:41 +00:00
parent 364f8e389c
commit 1f7d53a806
@@ -132,6 +132,9 @@ under the License.
</screen>
<screen name="printExampleFOPFonts">
<section>
<actions>
<property-to-field resource="fop.properties" field="defaultFontFamily" property="fop.font.family" default="NotoSans" />
</actions>
<widgets>
<platform-specific><xsl-fo><html-template location="component://example/webapp/example/reports/fonts.fo.ftl"/></xsl-fo></platform-specific>
</widgets>