Since a number of documents, especially the credits section in the Release Notes, use characters not found in the fop default base PostScript fonts, add a stylesheet for the fop generated documents to use the free DejaVu and GNU Unifont fonts which cover a much wider range of characters.
Signed-off-by: Alan Coopersmith <[email protected]> --- Makefile.am | 1 + fop.xsl | 11 +++++++++++ xmlrules.in | 9 +++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 fop.xsl diff --git a/Makefile.am b/Makefile.am index 5121a1c..066fca7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,6 +26,7 @@ dist_doc_DATA = MAINTAINERS MAINTAINERCLEANFILES = ChangeLog INSTALL EXTRA_DIST = \ + fop.xsl \ misc/xlogo.epsi \ misc/xlogo.svg \ registry \ diff --git a/fop.xsl b/fop.xsl new file mode 100644 index 0000000..1ad77b6 --- /dev/null +++ b/fop.xsl @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="1.0"> + + <!-- Available from http://dejavu-fonts.org/ --> + <xsl:param name="body.font.family">DejaVu Serif</xsl:param> + + <!-- Available from http://unifoundry.com/unifont.html --> + <xsl:param name="symbol.font.family">Symbol,GNU Unifont</xsl:param> + +</xsl:stylesheet> diff --git a/xmlrules.in b/xmlrules.in index 41abb1b..905acff 100644 --- a/xmlrules.in +++ b/xmlrules.in @@ -40,6 +40,11 @@ XMLTO_FLAGS = \ --stringparam img.src.path=$(abs_builddir)/ endif +# Need to override fonts in FOP output to get support for characters not +# present in the default Postscript-builtin font sets, such as the names +# in the credits section of ReleaseNotes.xml +XMLTO_FOP_FLAGS = --with-fop -m $(top_srcdir)/fop.xsl + CLEANFILES = $(xml_DATA) SUFFIXES = .xml .ps .pdf .txt .html @@ -51,10 +56,10 @@ SUFFIXES = .xml .ps .pdf .txt .html $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $< %.pdf: %.xml $(dist_xml_DATA) - $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $< + $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FOP_FLAGS) pdf $< %.ps: %.xml $(dist_xml_DATA) - $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $< + $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) $(XMLTO_FOP_FLAGS) ps $< chunked-html: $(doc_sources) $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) -o html xhtml $(doc_sources) -- 1.7.3.2 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
