+<xsl:param name="xetex.font.alegreya">
+ <xsl:text>\setmainfont[SmallCapsFont={Alegreya SC}]{Alegreya} </xsl:text>
+ <xsl:text>\setsansfont{Alegreya Sans} </xsl:text>
+ <xsl:text>\setmonofont{DejaVu Sans Mono} </xsl:text>
+
+ <!-- Use a smaller font except for the letter heading which is bold -->
+ <xsl:text>\newfontfamily\indexfont[Scale=0.7,
+ BoldFeatures={Scale=1}]{Alegreya} </xsl:text>
+</xsl:param>
+
+<xsl:param name="xetex.font.gandhi">
+ <xsl:text>\setmainfont[SmallCapsFont={Alegreya SC}]{Gandhi Serif} </xsl:text>
+ <xsl:text>\setsansfont{Gandhi Sans} </xsl:text>
+ <xsl:text>\setmonofont{DejaVu Sans Mono} </xsl:text>
+
+ <!-- Use a smaller font except for the letter heading which is bold -->
+ <xsl:text>\newfontfamily\indexfont[Scale=0.7,
+ BoldFeatures={Scale=1}]{Gandhi Serif} </xsl:text>
+</xsl:param>
+
+<xsl:param name="xetex.font">
+ <xsl:choose>
+ <xsl:when test="$book.font = 'crimson'">
+ <xsl:value-of select="$xetex.font.crimson"/>
+ </xsl:when>
+ <xsl:when test="$book.font = 'gandhi'">
+ <xsl:value-of select="$xetex.font.gandhi"/>
+ </xsl:when>
+ <xsl:when test="$book.font = 'alegreya'">
+ <xsl:value-of select="$xetex.font.alegreya"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- Fallback to the default Crimson font -->
+ <xsl:value-of select="$xetex.font.crimson"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+
+