You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Paul Loy <pa...@peoplesarchive.com> on 2006/09/18 17:13:31 UTC
Unicode Fonts!!!!
Hi All,
I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.
My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:
<xsl:template match="para">
<fo:block font-family="VAGRounded" font-weight="normal"
font-size="10pt" line-height="13pt" space-before.optimum="10pt"
space-after.optimum="10pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="sup">
<fo:inline vertical-align="super"
font-size="8pt"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="sub">
<fo:inline vertical-align="sub"
font-size="8pt"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="i">
<fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="i">
<fo:inline
text-decoration="underline"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="pre">
<fo:block font-family="VAGRounded" font-weight="normal"
font-size="10pt" line-height="13pt" space-before.optimum="5pt"
space-after.optimum="5pt" white-space-collapse="false">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!
Thanks for any help,
Paul.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unicode Fonts!!!!
Posted by Paul Loy <pa...@peoplesarchive.com>.
And these are the characters I need displayed (see attached)
Paul Loy wrote:
> Hi All,
>
> I've inherited a poorly written system. Part of it uses FOP to create
> PDFs from an xslt. Now, we have international people on our site which
> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
> instead of any polish characters. I think this is due to the font we
> were using didn't have the unicode glyphs.
>
> My question is, where are any unicode fonts for FOP. I just want an
> Arial or Helvetica type font, nothing fancy! Then, how do I use this
> font in my PDF? Here's a snippet of my xslt:
>
> <xsl:template match="para">
> <fo:block font-family="VAGRounded" font-weight="normal"
> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
> space-after.optimum="10pt">
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> <xsl:template match="sup">
> <fo:inline vertical-align="super"
> font-size="8pt"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="sub">
> <fo:inline vertical-align="sub"
> font-size="8pt"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="i">
> <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="i">
> <fo:inline
> text-decoration="underline"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="pre">
> <fo:block font-family="VAGRounded" font-weight="normal"
> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
> space-after.optimum="5pt" white-space-collapse="false">
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
>
> I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
> Roman but I still don't get the characters to be in the final PDF!!!
>
> Thanks for any help,
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
Re: Unicode Fonts!!!!
Posted by Luis Ferro <lf...@teladigital.pt>.
Paul Loy wrote:
>
> Do I have to translate all the foreign characters into a character
> reference?
>
Prolly not...
But i had to use "<?xml version="1.0" encoding="ISO-8859-1"?>" as the xml
definition in the master page... or it would present everything wrong... (a
bit like it happened to you)...
Cheers,
Luis Ferro
--
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6366861
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unicode Fonts!!!!
Posted by Luis Ferro <lf...@teladigital.pt>.
On a mac you can check the acrobat reader directories to get some type1 font
that works... ;)
(i'm not sure where are the system fonts instaled on macs)
The principle is the same and anyway, FOP is system transparent (hope my
faith isn't displaced, so far it isn't)... if you create a metrics file i'm
sure it will work with any kind of fonts that it suports albeit the OS its
under...
LF
Paul Loy wrote:
>
> Oh, forgot to mention that I'm on a mac.
>
> Thanks for the suggestions so far!
>
> Paul.
>
>
> Kai Mütz wrote:
>> On windows systems you probably find Arial TTF files in windows fonts
>> directory ("C:\Windows\Fonts" on my machine). You can use the
>> TTFReader to create the metrics files as described at
>>
>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
>>
>> -----Original Message-----
>> *From:*
>> fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org
>>
>> [mailto:fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org]*On
>> Behalf Of *Paul Loy
>> *Sent:* Monday, September 18, 2006 6:29 PM
>> *To:* fop-users@xmlgraphics.apache.org
>> *Subject:* Re: Unicode Fonts!!!!
>>
>> yeah but that still doesn't give me the fonts I need. Where are
>> the unicode PS fonts that I can use?
>>
>> Kai Mütz wrote:
>>> Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
>>>
>>>
>>>> -----Original Message-----
>>>> From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
>>>>
>>>> [mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
>>>> Behalf Of Paul Loy
>>>> Sent: Monday, September 18, 2006 5:35 PM
>>>> To: fop-users@xmlgraphics.apache.org
>>>> Subject: Re: Unicode Fonts!!!!
>>>>
>>>>
>>>> Do I have to translate all the foreign characters into a character
>>>> reference?
>>>>
>>>> Paul Loy wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I've inherited a poorly written system. Part of it uses FOP to
>>>>> create
>>>>> PDFs from an xslt. Now, we have international people on our site
>>>>> which
>>>>> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get
>>>>> #
>>>>> instead of any polish characters. I think this is due to the font
>>>>> we
>>>>> were using didn't have the unicode glyphs.
>>>>>
>>>>> My question is, where are any unicode fonts for FOP. I just want
>>>>> an
>>>>> Arial or Helvetica type font, nothing fancy! Then, how do I use
>>>>> this
>>>>> font in my PDF? Here's a snippet of my xslt:
>>>>>
>>>>> <xsl:template match="para">
>>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>>> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
>>>>> space-after.optimum="10pt">
>>>>> <xsl:apply-templates/>
>>>>> </fo:block>
>>>>> </xsl:template>
>>>>> <xsl:template match="sup">
>>>>> <fo:inline vertical-align="super"
>>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="sub">
>>>>> <fo:inline vertical-align="sub"
>>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="i">
>>>>> <fo:inline
>>>>> font-style="italic"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="i">
>>>>> <fo:inline
>>>>> text-decoration="underline"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="pre">
>>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>>> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
>>>>> space-after.optimum="5pt" white-space-collapse="false">
>>>>> <xsl:apply-templates/>
>>>>> </fo:block>
>>>>> </xsl:template>
>>>>>
>>>>> I've tried changing the VAGRounded bit to Arial, Helvetica, Times
>>>>> New
>>>>> Roman but I still don't get the characters to be in the final
>>>>> PDF!!!
>>>>>
>>>>> Thanks for any help,
>>>>>
>>>>> Paul.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>>> fop-users-unsubscribe@xmlgraphics.apache.org
>>>>> For additional commands, e-mail:
>>>>> fop-users-help@xmlgraphics.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail:
>>>> fop-users-help@xmlgraphics.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail:
>>> fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>> This email has been scanned by Postini.
>> For more information please visit http://www.postini.com
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6367701
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unicode Fonts!!!! (don't give up on us!)
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Please wait a second before you give up and spread a wrong impression
that FOP isn't up to the task. The bits of information that were given
to you contained all the hints that were necessary to accomplish your
goal. But I can imagine it is difficult to get it all together. So let
me give you a step-by-step guide to a full Polish document with Apache
FOP:
1. Obtain a font that contains all the necessary characters.
PDF defines a set of 14 so-called base fonts (Helvetica, Times etc.)
which are expected to be available on every PDF-capable product, viewer
or producer. These fonts are defined as Type 1 fonts with a maximum of
255 distinctive glyphs. And this set does not include every character
you need for your Polish documents. That's the reason why Michael Bruns
cannot view your iText-generated PDF properly. Your Acrobat Reader maps
the Helvetica font to an Arial font which has all the necessary
characters, but Michael's system only supports the basic base 14 font
set as required by the PDF specification. So you can't be sure that your
PDF generated using iText can be viewed correctly on every system as you
depend on the fact that the viewer has a font with all the characters
available. That's why it's important to embed a font in the PDF that
contains all the necessary characters. You can make sure every PDF
viewer uses the right font that you want used. And this is best done
using a TrueType font.
A free set of TrueType fonts can be obtained from the D�j�Vu project,
for example:
http://dejavu.sourceforge.net
2. Generate the XML font metrics file for each font you'd like to use.
This procedure is described in
http://xmlgraphics.apache.org/fop/0.92/fonts.html
or
http://xmlgraphics.apache.org/fop/0.20.5/fonts.html
depending on the FOP version you're using. I know this step is awkward,
but for the moment FOP still needs it. We hope that'll change soon.
There are efforts in that direction.
3. Configure the font in your FOP configuration file.
A minimal configuration file for FOP 0.92beta would look like this
(assuming you use DejaVuSans as a font):
<?xml version="1.0" encoding="UTF-8"?>
<fop>
<renderers>
<renderer mime="application/pdf">
<fonts>
<font metrics-url="/fonts/dejavu-ttf-2.5/DejaVuSans.ttf.xml" embed-url="fonts/dejavu-ttf-2.5/DejaVuSans.ttf">
<font-triplet name="DejaVuSans" style="normal" weight="normal"/>
</font>
</fonts>
</renderer>
</renderers>
</fop>
4. Run FOP (with your configuration file).
On the command-line:
fop -c myconfig.xml -fo myfile.fo -pdf myfile.pdf
For embedding in Java, see the documentation.
As a proof that this actually works, please see the attached files.
BTW, I recommend you encode your XML files using UTF-8 so you have the
full Unicode spectrum available and don't have to reply on using
character entities. And yes, it works on a Mac.
On 19.09.2006 14:26:32 Paul Loy wrote:
> Hi all,
>
> thank you for all your comments and help. I am still unable to get a
> single character to come out in polish. I have, therefore, admitted
> defeat and am going to ditch the old nasty code in favour of iText, a
> free PDF generating library. It was so easy to get the characters to
> display in the PDF using this:
<snip/>
>
> and that's it! I've attached the PDF too.
>
> I like the fact that FOP allows XSLT transformations into PDF, a very
> powerful feature, but I can't do with it's pitiful unicode support. Make
> it simple people! All we want to have to do is say: "this is iso-8859-2,
> can you output the correct characters please" and for FOP to say "no
> problem mate, if the font supports it"...
>
> Alas, FOP is not for me at the moment. Perhaps when they sort the
> unicode issues out it'll be worth coming back to. Good luck one and all
> with your FOPing, I hope you manage where I have failed.
<snip/>
Jeremias Maerki
Re: Unicode Fonts!!!!
Posted by Paul Loy <pa...@peoplesarchive.com>.
Hi Michael,
could you take a sceenshot of the pdf so I can see what it looks like to
you. That would be great.
Thanks,
Paul.
Michael Bruns wrote:
> On 19.09.2006 14:26, Paul Loy wrote:
>
>> [...]
>> It was so easy to get the characters to display in the PDF using this:
>> [...]
>>
>
> I don't want to spoil your joy about iText, but the PDF you attached
> most likely only works correctly if the necessary "Helvetica" font is
> present on the system on which the PDF is viewed.
>
> I'm using SuSE 9.3 localized for Germany and the only Polish character I
> can see in your document is the "l" with a small line in it. But as
> there are some really awkward gaps in the document I suppose there ought
> to be a lot more Polish characters.
>
> So I guess if you want everybody to be able to read a document with
> "strange" characters you should always attach the font to the document -
> no matter if with FOP or any other library. That's at least my personal
> experience.
>
> Cheers,
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unicode Fonts!!!!
Posted by Michael Bruns <mi...@schlund.de>.
On 19.09.2006 14:26, Paul Loy wrote:
> [...]
> It was so easy to get the characters to display in the PDF using this:
> [...]
I don't want to spoil your joy about iText, but the PDF you attached
most likely only works correctly if the necessary "Helvetica" font is
present on the system on which the PDF is viewed.
I'm using SuSE 9.3 localized for Germany and the only Polish character I
can see in your document is the "l" with a small line in it. But as
there are some really awkward gaps in the document I suppose there ought
to be a lot more Polish characters.
So I guess if you want everybody to be able to read a document with
"strange" characters you should always attach the font to the document -
no matter if with FOP or any other library. That's at least my personal
experience.
Cheers,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unicode Fonts!!!!
Posted by Paul Loy <pa...@peoplesarchive.com>.
Hi all,
thank you for all your comments and help. I am still unable to get a
single character to come out in polish. I have, therefore, admitted
defeat and am going to ditch the old nasty code in favour of iText, a
free PDF generating library. It was so easy to get the characters to
display in the PDF using this:
package com.mydomain.pdf;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Font;
import com.lowagie.text.Paragraph;
import com.lowagie.text.pdf.BaseFont;
import com.lowagie.text.pdf.PdfWriter;
import com.mydomain.sql.ConnectionFactory;
public class GenerateFulltextPDF {
public static void main(String[] args) {
String para = "";
try {
Connection con = ConnectionFactory.getConnection();
PreparedStatement stmt = con.prepareStatement("SELECT
wstf_fulltext FROM wstf WHERE wstf_wlng_id=2 LIMIT 1");
ResultSet res = stmt.executeQuery();
if (res.last()) {
para = res.getString(1);
}
} catch (SQLException e) {
e.printStackTrace();
}
Document document = new Document();
try {
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream("NewPage.pdf"));
BaseFont bf = BaseFont.createFont("Helvetica", "iso-8859-2",
true);
Font f = new Font(bf, 12);
document.open();
document.add(new Paragraph(para, f));
}
catch(DocumentException de) {
System.err.println(de.getMessage());
}
catch(IOException ioe) {
System.err.println(ioe.getMessage());
}
document.close();
}
}
and that's it! I've attached the PDF too.
I like the fact that FOP allows XSLT transformations into PDF, a very
powerful feature, but I can't do with it's pitiful unicode support. Make
it simple people! All we want to have to do is say: "this is iso-8859-2,
can you output the correct characters please" and for FOP to say "no
problem mate, if the font supports it"...
Alas, FOP is not for me at the moment. Perhaps when they sort the
unicode issues out it'll be worth coming back to. Good luck one and all
with your FOPing, I hope you manage where I have failed.
Paul.
Luis Ferro wrote:
> On my "unicode" wars... i've found one site of huge value:
>
> http://www.unicode.org/charts/charindex.html
>
> This has ALL the unicode tables of ALL supported glyphs on ALL the standards
> (specially important if you need just "that" glyph and you don't know it's
> code).
>
> I ended up consulting it regulary on my work.
>
> Another page of some interest specially because of the use of Macs is:
>
> http://www.alanwood.net/demos/charsetdiffs.html
>
> Which can enlight why some characters appear and some don't.
>
> Cheers,
> LF
>
>
> Paul Loy wrote:
>
>> Oh, forgot to mention that I'm on a mac.
>>
>> Thanks for the suggestions so far!
>>
>> Paul.
>>
>>
>> Kai Mütz wrote:
>>
>>> On windows systems you probably find Arial TTF files in windows fonts
>>> directory ("C:\Windows\Fonts" on my machine). You can use the
>>> TTFReader to create the metrics files as described at
>>>
>>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
>>>
>>> -----Original Message-----
>>> *From:*
>>> fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org
>>>
>>> [mailto:fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org]*On
>>> Behalf Of *Paul Loy
>>> *Sent:* Monday, September 18, 2006 6:29 PM
>>> *To:* fop-users@xmlgraphics.apache.org
>>> *Subject:* Re: Unicode Fonts!!!!
>>>
>>> yeah but that still doesn't give me the fonts I need. Where are
>>> the unicode PS fonts that I can use?
>>>
>>> Kai Mütz wrote:
>>>
>>>> Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
>>>>
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
>>>>>
>>>>> [mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
>>>>> Behalf Of Paul Loy
>>>>> Sent: Monday, September 18, 2006 5:35 PM
>>>>> To: fop-users@xmlgraphics.apache.org
>>>>> Subject: Re: Unicode Fonts!!!!
>>>>>
>>>>>
>>>>> Do I have to translate all the foreign characters into a character
>>>>> reference?
>>>>>
>>>>> Paul Loy wrote:
>>>>>
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I've inherited a poorly written system. Part of it uses FOP to
>>>>>> create
>>>>>> PDFs from an xslt. Now, we have international people on our site
>>>>>> which
>>>>>> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get
>>>>>> #
>>>>>> instead of any polish characters. I think this is due to the font
>>>>>> we
>>>>>> were using didn't have the unicode glyphs.
>>>>>>
>>>>>> My question is, where are any unicode fonts for FOP. I just want
>>>>>> an
>>>>>> Arial or Helvetica type font, nothing fancy! Then, how do I use
>>>>>> this
>>>>>> font in my PDF? Here's a snippet of my xslt:
>>>>>>
>>>>>> <xsl:template match="para">
>>>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>>>> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
>>>>>> space-after.optimum="10pt">
>>>>>> <xsl:apply-templates/>
>>>>>> </fo:block>
>>>>>> </xsl:template>
>>>>>> <xsl:template match="sup">
>>>>>> <fo:inline vertical-align="super"
>>>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>>>> </xsl:template>
>>>>>> <xsl:template match="sub">
>>>>>> <fo:inline vertical-align="sub"
>>>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>>>> </xsl:template>
>>>>>> <xsl:template match="i">
>>>>>> <fo:inline
>>>>>> font-style="italic"><xsl:apply-templates/></fo:inline>
>>>>>> </xsl:template>
>>>>>> <xsl:template match="i">
>>>>>> <fo:inline
>>>>>> text-decoration="underline"><xsl:apply-templates/></fo:inline>
>>>>>> </xsl:template>
>>>>>> <xsl:template match="pre">
>>>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>>>> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
>>>>>> space-after.optimum="5pt" white-space-collapse="false">
>>>>>> <xsl:apply-templates/>
>>>>>> </fo:block>
>>>>>> </xsl:template>
>>>>>>
>>>>>> I've tried changing the VAGRounded bit to Arial, Helvetica, Times
>>>>>> New
>>>>>> Roman but I still don't get the characters to be in the final
>>>>>> PDF!!!
>>>>>>
>>>>>> Thanks for any help,
>>>>>>
>>>>>> Paul.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> fop-users-unsubscribe@xmlgraphics.apache.org
>>>>>> For additional commands, e-mail:
>>>>>> fop-users-help@xmlgraphics.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>>> fop-users-unsubscribe@xmlgraphics.apache.org
>>>>> For additional commands, e-mail:
>>>>> fop-users-help@xmlgraphics.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail:
>>>> fop-users-help@xmlgraphics.apache.org
>>>>
>>>>
>>>>
>>> This email has been scanned by Postini.
>>> For more information please visit http://www.postini.com
>>>
>>>
>>>
>>
>>
>
>
This email has been scanned by Postini.
For more information please visit http://www.postini.com
Re: Unicode Fonts!!!!
Posted by Luis Ferro <lf...@teladigital.pt>.
On my "unicode" wars... i've found one site of huge value:
http://www.unicode.org/charts/charindex.html
This has ALL the unicode tables of ALL supported glyphs on ALL the standards
(specially important if you need just "that" glyph and you don't know it's
code).
I ended up consulting it regulary on my work.
Another page of some interest specially because of the use of Macs is:
http://www.alanwood.net/demos/charsetdiffs.html
Which can enlight why some characters appear and some don't.
Cheers,
LF
Paul Loy wrote:
>
> Oh, forgot to mention that I'm on a mac.
>
> Thanks for the suggestions so far!
>
> Paul.
>
>
> Kai Mütz wrote:
>> On windows systems you probably find Arial TTF files in windows fonts
>> directory ("C:\Windows\Fonts" on my machine). You can use the
>> TTFReader to create the metrics files as described at
>>
>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
>>
>> -----Original Message-----
>> *From:*
>> fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org
>>
>> [mailto:fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org]*On
>> Behalf Of *Paul Loy
>> *Sent:* Monday, September 18, 2006 6:29 PM
>> *To:* fop-users@xmlgraphics.apache.org
>> *Subject:* Re: Unicode Fonts!!!!
>>
>> yeah but that still doesn't give me the fonts I need. Where are
>> the unicode PS fonts that I can use?
>>
>> Kai Mütz wrote:
>>> Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
>>>
>>>
>>>> -----Original Message-----
>>>> From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
>>>>
>>>> [mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
>>>> Behalf Of Paul Loy
>>>> Sent: Monday, September 18, 2006 5:35 PM
>>>> To: fop-users@xmlgraphics.apache.org
>>>> Subject: Re: Unicode Fonts!!!!
>>>>
>>>>
>>>> Do I have to translate all the foreign characters into a character
>>>> reference?
>>>>
>>>> Paul Loy wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I've inherited a poorly written system. Part of it uses FOP to
>>>>> create
>>>>> PDFs from an xslt. Now, we have international people on our site
>>>>> which
>>>>> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get
>>>>> #
>>>>> instead of any polish characters. I think this is due to the font
>>>>> we
>>>>> were using didn't have the unicode glyphs.
>>>>>
>>>>> My question is, where are any unicode fonts for FOP. I just want
>>>>> an
>>>>> Arial or Helvetica type font, nothing fancy! Then, how do I use
>>>>> this
>>>>> font in my PDF? Here's a snippet of my xslt:
>>>>>
>>>>> <xsl:template match="para">
>>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>>> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
>>>>> space-after.optimum="10pt">
>>>>> <xsl:apply-templates/>
>>>>> </fo:block>
>>>>> </xsl:template>
>>>>> <xsl:template match="sup">
>>>>> <fo:inline vertical-align="super"
>>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="sub">
>>>>> <fo:inline vertical-align="sub"
>>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="i">
>>>>> <fo:inline
>>>>> font-style="italic"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="i">
>>>>> <fo:inline
>>>>> text-decoration="underline"><xsl:apply-templates/></fo:inline>
>>>>> </xsl:template>
>>>>> <xsl:template match="pre">
>>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>>> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
>>>>> space-after.optimum="5pt" white-space-collapse="false">
>>>>> <xsl:apply-templates/>
>>>>> </fo:block>
>>>>> </xsl:template>
>>>>>
>>>>> I've tried changing the VAGRounded bit to Arial, Helvetica, Times
>>>>> New
>>>>> Roman but I still don't get the characters to be in the final
>>>>> PDF!!!
>>>>>
>>>>> Thanks for any help,
>>>>>
>>>>> Paul.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>>> fop-users-unsubscribe@xmlgraphics.apache.org
>>>>> For additional commands, e-mail:
>>>>> fop-users-help@xmlgraphics.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail:
>>>> fop-users-help@xmlgraphics.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail:
>>> fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>> This email has been scanned by Postini.
>> For more information please visit http://www.postini.com
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6367811
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Unicode Fonts!!!!
Posted by Karl Roberts <Ka...@macquarie.com>.
Hi,
you can generate the metrics from the TTF file as per instructions at http://xmlgraphics.apache.org/fop/trunk/fonts.html <http://xmlgraphics.apache.org/fop/trunk/fonts.html> ,
a decent unicode font that covers loads of the glyphs is "Arial Unicode MS" font found at C:\WINDOWS\Fonts on my PC.
See:- http://www.alanwood.net/unicode/fonts.html#arialunicodems <http://www.alanwood.net/unicode/fonts.html> for details of the Unicode tables it covers.
Even though you are on a Mac, you can still download the font TTF file from Microsoft
cheers
Karl
________________________________
From: Paul Loy [mailto:paul.loy@peoplesarchive.com]
Sent: Tuesday, 19 September 2006 2:29 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts!!!!
yeah but that still doesn't give me the fonts I need. Where are the unicode PS fonts that I can use?
Kai Mütz wrote:
Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
-----Original Message-----
From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
[mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts!!!!
Do I have to translate all the foreign characters into a character
reference?
Paul Loy wrote:
Hi All,
I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.
My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:
<xsl:template match="para">
<fo:block font-family="VAGRounded" font-weight="normal"
font-size="10pt" line-height="13pt" space-before.optimum="10pt"
space-after.optimum="10pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="sup">
<fo:inline vertical-align="super"
font-size="8pt"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="sub">
<fo:inline vertical-align="sub"
font-size="8pt"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="i">
<fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="i">
<fo:inline
text-decoration="underline"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="pre">
<fo:block font-family="VAGRounded" font-weight="normal"
font-size="10pt" line-height="13pt" space-before.optimum="5pt"
space-after.optimum="5pt" white-space-collapse="false">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!
Thanks for any help,
Paul.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
This email has been scanned by Postini.
For more information please visit http://www.postini.com
NOTICE
This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.
Re: Unicode Fonts!!!!
Posted by Paul Loy <pa...@peoplesarchive.com>.
Oh, forgot to mention that I'm on a mac.
Thanks for the suggestions so far!
Paul.
Kai Mütz wrote:
> On windows systems you probably find Arial TTF files in windows fonts
> directory ("C:\Windows\Fonts" on my machine). You can use the
> TTFReader to create the metrics files as described at
>
> http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
>
> -----Original Message-----
> *From:*
> fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org
> [mailto:fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org]*On
> Behalf Of *Paul Loy
> *Sent:* Monday, September 18, 2006 6:29 PM
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Unicode Fonts!!!!
>
> yeah but that still doesn't give me the fonts I need. Where are
> the unicode PS fonts that I can use?
>
> Kai Mütz wrote:
>> Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
>>
>>
>>> -----Original Message-----
>>> From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
>>> [mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
>>> Behalf Of Paul Loy
>>> Sent: Monday, September 18, 2006 5:35 PM
>>> To: fop-users@xmlgraphics.apache.org
>>> Subject: Re: Unicode Fonts!!!!
>>>
>>>
>>> Do I have to translate all the foreign characters into a character
>>> reference?
>>>
>>> Paul Loy wrote:
>>>
>>>> Hi All,
>>>>
>>>> I've inherited a poorly written system. Part of it uses FOP to create
>>>> PDFs from an xslt. Now, we have international people on our site which
>>>> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
>>>> instead of any polish characters. I think this is due to the font we
>>>> were using didn't have the unicode glyphs.
>>>>
>>>> My question is, where are any unicode fonts for FOP. I just want an
>>>> Arial or Helvetica type font, nothing fancy! Then, how do I use this
>>>> font in my PDF? Here's a snippet of my xslt:
>>>>
>>>> <xsl:template match="para">
>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
>>>> space-after.optimum="10pt">
>>>> <xsl:apply-templates/>
>>>> </fo:block>
>>>> </xsl:template>
>>>> <xsl:template match="sup">
>>>> <fo:inline vertical-align="super"
>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>> </xsl:template>
>>>> <xsl:template match="sub">
>>>> <fo:inline vertical-align="sub"
>>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>>> </xsl:template>
>>>> <xsl:template match="i">
>>>> <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
>>>> </xsl:template>
>>>> <xsl:template match="i">
>>>> <fo:inline
>>>> text-decoration="underline"><xsl:apply-templates/></fo:inline>
>>>> </xsl:template>
>>>> <xsl:template match="pre">
>>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>>> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
>>>> space-after.optimum="5pt" white-space-collapse="false">
>>>> <xsl:apply-templates/>
>>>> </fo:block>
>>>> </xsl:template>
>>>>
>>>> I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
>>>> Roman but I still don't get the characters to be in the final PDF!!!
>>>>
>>>> Thanks for any help,
>>>>
>>>> Paul.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>
> This email has been scanned by Postini.
> For more information please visit http://www.postini.com
>
>
RE: Unicode Fonts!!!!
Posted by Kai Mütz <km...@web.de>.
On windows systems you probably find Arial TTF files in windows fonts
directory ("C:\Windows\Fonts" on my machine). You can use the TTFReader to
create the metrics files as described at
http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics
-----Original Message-----
From: fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org
[mailto:fop-users-return-21929-kmuetz=web.de@xmlgraphics.apache.org]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 6:29 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts!!!!
yeah but that still doesn't give me the fonts I need. Where are the
unicode PS fonts that I can use?
Kai Mütz wrote:
Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
-----Original Message-----
From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
[mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts!!!!
Do I have to translate all the foreign characters into a character
reference?
Paul Loy wrote:
Hi All,
I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.
My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:
<xsl:template match="para">
<fo:block font-family="VAGRounded" font-weight="normal"
font-size="10pt" line-height="13pt" space-before.optimum="10pt"
space-after.optimum="10pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="sup">
<fo:inline vertical-align="super"
font-size="8pt"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="sub">
<fo:inline vertical-align="sub"
font-size="8pt"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="i">
<fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="i">
<fo:inline
text-decoration="underline"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="pre">
<fo:block font-family="VAGRounded" font-weight="normal"
font-size="10pt" line-height="13pt" space-before.optimum="5pt"
space-after.optimum="5pt" white-space-collapse="false">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!
Thanks for any help,
Paul.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
This email has been scanned by Postini.
For more information please visit http://www.postini.com
Re: Unicode Fonts!!!!
Posted by Paul Loy <pa...@peoplesarchive.com>.
yeah but that still doesn't give me the fonts I need. Where are the
unicode PS fonts that I can use?
Kai Mütz wrote:
> Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
>
>
>> -----Original Message-----
>> From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
>> [mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
>> Behalf Of Paul Loy
>> Sent: Monday, September 18, 2006 5:35 PM
>> To: fop-users@xmlgraphics.apache.org
>> Subject: Re: Unicode Fonts!!!!
>>
>>
>> Do I have to translate all the foreign characters into a character
>> reference?
>>
>> Paul Loy wrote:
>>
>>> Hi All,
>>>
>>> I've inherited a poorly written system. Part of it uses FOP to create
>>> PDFs from an xslt. Now, we have international people on our site which
>>> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
>>> instead of any polish characters. I think this is due to the font we
>>> were using didn't have the unicode glyphs.
>>>
>>> My question is, where are any unicode fonts for FOP. I just want an
>>> Arial or Helvetica type font, nothing fancy! Then, how do I use this
>>> font in my PDF? Here's a snippet of my xslt:
>>>
>>> <xsl:template match="para">
>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
>>> space-after.optimum="10pt">
>>> <xsl:apply-templates/>
>>> </fo:block>
>>> </xsl:template>
>>> <xsl:template match="sup">
>>> <fo:inline vertical-align="super"
>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>> </xsl:template>
>>> <xsl:template match="sub">
>>> <fo:inline vertical-align="sub"
>>> font-size="8pt"><xsl:apply-templates/></fo:inline>
>>> </xsl:template>
>>> <xsl:template match="i">
>>> <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
>>> </xsl:template>
>>> <xsl:template match="i">
>>> <fo:inline
>>> text-decoration="underline"><xsl:apply-templates/></fo:inline>
>>> </xsl:template>
>>> <xsl:template match="pre">
>>> <fo:block font-family="VAGRounded" font-weight="normal"
>>> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
>>> space-after.optimum="5pt" white-space-collapse="false">
>>> <xsl:apply-templates/>
>>> </fo:block>
>>> </xsl:template>
>>>
>>> I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
>>> Roman but I still don't get the characters to be in the final PDF!!!
>>>
>>> Thanks for any help,
>>>
>>> Paul.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
This email has been scanned by Postini.
For more information please visit http://www.postini.com
RE: Unicode Fonts!!!!
Posted by Kai Mütz <km...@web.de>.
Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?
> -----Original Message-----
> From: fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org
> [mailto:fop-users-return-21924-kmuetz=web.de@xmlgraphics.apache.org]On
> Behalf Of Paul Loy
> Sent: Monday, September 18, 2006 5:35 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Unicode Fonts!!!!
>
>
> Do I have to translate all the foreign characters into a character
> reference?
>
> Paul Loy wrote:
> > Hi All,
> >
> > I've inherited a poorly written system. Part of it uses FOP to create
> > PDFs from an xslt. Now, we have international people on our site which
> > is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
> > instead of any polish characters. I think this is due to the font we
> > were using didn't have the unicode glyphs.
> >
> > My question is, where are any unicode fonts for FOP. I just want an
> > Arial or Helvetica type font, nothing fancy! Then, how do I use this
> > font in my PDF? Here's a snippet of my xslt:
> >
> > <xsl:template match="para">
> > <fo:block font-family="VAGRounded" font-weight="normal"
> > font-size="10pt" line-height="13pt" space-before.optimum="10pt"
> > space-after.optimum="10pt">
> > <xsl:apply-templates/>
> > </fo:block>
> > </xsl:template>
> > <xsl:template match="sup">
> > <fo:inline vertical-align="super"
> > font-size="8pt"><xsl:apply-templates/></fo:inline>
> > </xsl:template>
> > <xsl:template match="sub">
> > <fo:inline vertical-align="sub"
> > font-size="8pt"><xsl:apply-templates/></fo:inline>
> > </xsl:template>
> > <xsl:template match="i">
> > <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
> > </xsl:template>
> > <xsl:template match="i">
> > <fo:inline
> > text-decoration="underline"><xsl:apply-templates/></fo:inline>
> > </xsl:template>
> > <xsl:template match="pre">
> > <fo:block font-family="VAGRounded" font-weight="normal"
> > font-size="10pt" line-height="13pt" space-before.optimum="5pt"
> > space-after.optimum="5pt" white-space-collapse="false">
> > <xsl:apply-templates/>
> > </fo:block>
> > </xsl:template>
> >
> > I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
> > Roman but I still don't get the characters to be in the final PDF!!!
> >
> > Thanks for any help,
> >
> > Paul.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unicode Fonts!!!!
Posted by Paul Loy <pa...@peoplesarchive.com>.
Do I have to translate all the foreign characters into a character
reference?
Paul Loy wrote:
> Hi All,
>
> I've inherited a poorly written system. Part of it uses FOP to create
> PDFs from an xslt. Now, we have international people on our site which
> is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
> instead of any polish characters. I think this is due to the font we
> were using didn't have the unicode glyphs.
>
> My question is, where are any unicode fonts for FOP. I just want an
> Arial or Helvetica type font, nothing fancy! Then, how do I use this
> font in my PDF? Here's a snippet of my xslt:
>
> <xsl:template match="para">
> <fo:block font-family="VAGRounded" font-weight="normal"
> font-size="10pt" line-height="13pt" space-before.optimum="10pt"
> space-after.optimum="10pt">
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> <xsl:template match="sup">
> <fo:inline vertical-align="super"
> font-size="8pt"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="sub">
> <fo:inline vertical-align="sub"
> font-size="8pt"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="i">
> <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="i">
> <fo:inline
> text-decoration="underline"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> <xsl:template match="pre">
> <fo:block font-family="VAGRounded" font-weight="normal"
> font-size="10pt" line-height="13pt" space-before.optimum="5pt"
> space-after.optimum="5pt" white-space-collapse="false">
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
>
> I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
> Roman but I still don't get the characters to be in the final PDF!!!
>
> Thanks for any help,
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org