OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Re: fop: WARNING: Cannot Find a Base-14 Font (docbookbug?)


Most likely it has to do with the fonts that reside on your system. You will need to have a good symbol font that covers the symbols you need. We use the DejaVu fonts (http://dejavu-fonts.org) and I have not had any problems with them. It's been a long while since I used any other fonts, but I remember some "issues" with the regular fonts in Windows and Linux that FOP tries to use.
 
I have attached my font setup customization for your perusal. Also, like some of the previous posts said, check out the FO file and see what problem it is having. FOP usually will tell you a line to go to in the error. When I need to dig into the FO file, I usually format the FO with xmllint before running it through FOP. It will be easier to find the structure around your problem.
 
If FOP cannot find a suitable font, it will substitute one that it has.
 
Regards,
Dean Nelson
 
 
 
 
In a message dated 06/28/10 08:49:45 Pacific Daylight Time, tom.browder@gmail.com writes:
So, if I don't specify fonts in my xml source, will your setup help
with the warnings?
 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"; >


  <!-- ============= Fonts ==================== -->
  <!--   <xsl:param name="body.font.master" select="'12'"/> -->

  <xsl:param name="body.font.family" select="'DejaVuSans'"/>
  <xsl:param name="title.font.family" select="'DejaVuSans'"/>
  <xsl:param name="monospace.font.family" select="'DejaVuSansMono'"/>
  <xsl:param name="body.font.master" select="'10.1'"/>
  
  <xsl:param name="symbol.font.family" select="'DejaVuSansMono'"/> 
  
<!--    <xsl:param name="symbol.font.family" select="'Arialuni'"/> -->



    <!-- ============== Symbol font use ================== -->
    <!-- use non ascii letters -->
    <xsl:template match="symbol[@role = 'symbolfont']">
        <fo:inline font-family="Symbol">
            <xsl:apply-templates/>
            <!--     <xsl:call-template name="inline.charseq"/> -->
        </fo:inline>
    </xsl:template>
    
    <!-- ============== Bold AND Italic fonts  ================== -->
    <xsl:template match="emphasis[@role='bold-italic']|emphasis[@role='italic-bold']">
        <fo:inline font-weight="bold" font-style="italic">
            <xsl:apply-templates/>
        </fo:inline>
    </xsl:template>
    
    <!-- ============== Underline fonts  ================== -->
    <xsl:template match="emphasis[@role='underline']">
        <fo:inline text-decoration="underline">
            <xsl:apply-templates/>
        </fo:inline>
    </xsl:template>   
    <xsl:template match="emphasis[@role='underline-bold']|emphasis[@role='bold-underline']">
        <fo:inline font-weight="bold" text-decoration="underline">
            <xsl:apply-templates/>
        </fo:inline>
    </xsl:template>
    
    <!-- ============== Strike Through fonts  ================== -->
    <xsl:template match="emphasis[@role='strikethrough']">
        <fo:inline text-decoration="line-through">
            <xsl:apply-templates/>
        </fo:inline>
    </xsl:template>
 
	 <!-- Change the font size of the emphasis --> 
	<xsl:template match="emphasis[@font-size]">
	           <fo:inline font-size="{@font-size}">
	               <xsl:apply-templates/>
	          </fo:inline>
	</xsl:template>
 
 
 
</xsl:stylesheet>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]