[svnbook] r6000 committed - branches/1.8/zh
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Sat Oct 5 06:56:33 CDT 2019
Revision: 6000
http://sourceforge.net/p/svnbook/source/6000
Author: wuzhouhui
Date: 2019-10-05 11:56:32 +0000 (Sat, 05 Oct 2019)
Log Message:
-----------
1.8/zh: update font of pdf, which is more consistent with html.
Modified Paths:
--------------
branches/1.8/zh/book/fop.xconf
branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl
Modified: branches/1.8/zh/book/fop.xconf
===================================================================
--- branches/1.8/zh/book/fop.xconf 2019-10-05 03:00:51 UTC (rev 5999)
+++ branches/1.8/zh/book/fop.xconf 2019-10-05 11:56:32 UTC (rev 6000)
@@ -77,7 +77,7 @@
</font>
<font metrics-url="book/simkai.xml" kerning="yes" embed-url="book/simkai.ttf">
- <font-triplet name="SimSun" style="italic" weight="normal"/>
+ <font-triplet name="KaiTi_GB2312" style="italic" weight="normal"/>
</font>
</fonts>
Modified: branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl
===================================================================
--- branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl 2019-10-05 03:00:51 UTC (rev 5999)
+++ branches/1.8/zh/stylesheets/custom-fo-stylesheet.xsl 2019-10-05 11:56:32 UTC (rev 6000)
@@ -3,7 +3,22 @@
<!-- Here live locale-specific customizations to the FO base stylesheet -->
<xsl:param name="draft.mode">yes</xsl:param>
- <xsl:param name="body.font.family">SimSun</xsl:param>
+ <xsl:param name="body.font.family">serif,SimSun,KaiTi_GB2312</xsl:param>
<xsl:param name="title.font.family">DroidSansFallback</xsl:param>
+ <!-- override default setting in xsl/fo/inline.xsl, to be consistent
+ with html.
+ -->
+ <xsl:template match="userinput">
+ <xsl:call-template name="inline.monoseq"/>
+ </xsl:template>
+
+ <xsl:template match="filename">
+ <xsl:call-template name="inline.italicseq"/>
+ </xsl:template>
+
+ <xsl:template match="command">
+ <xsl:call-template name="inline.italicseq"/>
+ </xsl:template>
+
</xsl:stylesheet>
More information about the svnbook-dev
mailing list