Hi,
I am Ismail Khan, I am mailing for the first time in fop mailing list.
Please apologize for any mistakes.
In our application we are using FOP 0.20 to convert XML to PDF. When I am
specifying font-family as ARIAL and font-weight as BOLD, bold effect is not
happening.
Following is the XSL snippet
<xsl:template match="NLS">
<fo:inline font-size="[EMAIL PROTECTED]" font-family="[EMAIL PROTECTED]"
white-space-collapse="false">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match="B">
<fo:inline font-size="12pt" font-weight="bold"
font-family="monospace" white-space-collapse="false">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
Following is the XML snippet
<B>This Sample Text</B> --------
Text is displayed in BOLD with default font.
<NLS font-family="ARIAL" font-size="12">This Sample Text</NLS>
-------- Text is displayed in ARIAL font
<B><NLS font-family="ARIAL" font-size="12">This Sample Text</NLS></B>
-------- Text is displayed in ARIAL font but without BOLD
I tried change the XSL as below, then to it is not working.
<xsl:template match="NLS">
<fo:inline font-size="[EMAIL PROTECTED]" font-weight="bold"
font-family="[EMAIL PROTECTED]" white-space-collapse="false">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
Following is the Userconfig.xml file entry for ARIAL.
<font metrics-file="D:\fonts\ARIAL.xml" embed-file="D:\fonts\ARIAL.ttf"
kerning="yes">
<font-triplet name="ARIAL" style="normal" weight="normal"/>
<font-triplet name="ARIAL" style="normal" weight="bold"/>
<font-triplet name="ARIAL" style="italic" weight="normal"/>
<font-triplet name="ARIAL" style="italic" weight="bold"/>
</font>
No any help on this would be really helpful.
Thanks in Advance.
| Thanks & Regards
| Ismail Khan
This e-Mail may contain proprietary and confidential information and is sent
for the intended recipient(s) only. If by an addressing or transmission error
this mail has been misdirected to you, you are requested to delete this mail
immediately. You are also hereby notified that any use, any form of
reproduction, dissemination, copying, disclosure, modification, distribution
and/or publication of this e-mail message, contents or its attachment other
than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polaris.co.in
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]