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 Luis Ferro <lf...@teladigital.pt> on 2006/09/17 22:51:41 UTC

Font names...

The test is simple...

Prepare a font (tested with TTF fonts) for importing, one that has some
"attributes" like "light".

Make a document which uses that font and produce a PDF.

Edit the PDF with acrobat pro.

What will happen is that the name the font has isn't the same name as the
embed font.

The render will work ok, but the edit will mean a "warning" of font to
become "unembed". That isn't a problem, except that as the font name is
wrong (the font name listed in the pdf doesn't match the font name in the
TTF file, what will happen is that acrobat can't find it and allow the
"reembed" of it).

If needed will post files that exemplify this effect (i'm not sure if this
is a FOP problem yet - will do more tests next week).

Cheers,
LF
-- 
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6354261
Sent from the FOP - Users forum 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: Font names...

Posted by Luis Ferro <lf...@teladigital.pt>.


Luis Ferro wrote:
> 
> The test is simple...
> 

Not that simple i'm afraid... i think i'm in a goose chase here regarding
font names... The font that is in use by FOP (thru the config options)
either gets a diferent name in windows or isn't recognized by it (even thru
it's a ttf font, albeit can be in a format that windows can't use).

So, naturally all tries to edit the document in Acrobat are doomed to fail.

Cheers,
LF

-- 
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6360276
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: Font names...

Posted by Luis Ferro <lf...@teladigital.pt>.

Vincent Hennebert-3 wrote:
> 
> Luis, would you mind summarizing your problems in a Bugzilla entry? So
> that we can more easily track them, and ensure they will actually be
> corrected in the new font library. Thanks!
> 

Will do...

I think it's about time i create a bugzilla login in FOP as it seams that i
will be working more and more with it ;)

And gratz on all the feedback from you all...

Cheers,
LF

-- 
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6404011
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: Font names...

Posted by Karl Roberts <Ka...@macquarie.com>.
Thanks Vincent,

As always it's a pleasure to use FOP, knowing that the developers are so active at squashing bugs and implementing new features. One of the benefits of OpenSource I suppose.

Keep up the good work!

Cheers

Karl

PS, I've just seen Bertrand Delacrétaz' commits in the source. I'll give it a few days then try it out ! :-)

-----Original Message-----
From: Vincent Hennebert [mailto:vincent.hennebert@anyware-tech.com] 
Sent: Thursday, 21 September 2006 5:22 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Font names...

Hi Karl,


Karl Roberts a écrit :
> Hi Vincent,
> 
>>> This issue will soon disappear. The current font library will be
> replaced with another one (FOrayFont), which
>>> handles that completely differently.
> 
> Do you know how soon the FOrayFont stuff will be in the trunk? I'm

Well, if everything goes right it should be there by the end of this year.


> waiting on it to fix the Bug where you can't copy and paste characters 
> from the PDF document.

Actually this does not depend on the integration of FOrayFont. There is another developer (Bertrand Delacrétaz) who will work on this in the next days so the fix should be available soon.


> I presume there'll be a big splash when it happens so we'll all know 
> how to configure it?

Copy&paste support won't be configurable. It will simply be available
;-) As for the configuration of fonts, sure, we will try to provide the necessary documentation.

Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font names...

Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi Karl,


Karl Roberts a écrit :
> Hi Vincent,
> 
>>> This issue will soon disappear. The current font library will be
> replaced with another one (FOrayFont), which
>>> handles that completely differently.
> 
> Do you know how soon the FOrayFont stuff will be in the trunk? I'm

Well, if everything goes right it should be there by the end of this
year.


> waiting on it to fix the Bug where you can't copy and paste characters
> from the PDF document.

Actually this does not depend on the integration of FOrayFont. There is
another developer (Bertrand Delacrétaz) who will work on this in the
next days so the fix should be available soon.


> I presume there'll be a big splash when it happens so we'll all know how
> to configure it?

Copy&paste support won't be configurable. It will simply be available
;-) As for the configuration of fonts, sure, we will try to provide the
necessary documentation.

Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Font names...

Posted by Karl Roberts <Ka...@macquarie.com>.
Hi Vincent,

>> This issue will soon disappear. The current font library will be
replaced with another one (FOrayFont), which
>> handles that completely differently.

Do you know how soon the FOrayFont stuff will be in the trunk? I'm
waiting on it to fix the Bug where you can't copy and paste characters
from the PDF document.

I presume there'll be a big splash when it happens so we'll all know how
to configure it?

Cheers

Karl Roberts

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font names...

Posted by Vincent Hennebert <vi...@anyware-tech.com>.
<snip/>
>> Mayhappen the reasons for changing the font names when working with
>> full/partial embed fonts aren't relevant anymore...
>>
>> Would like to take the oportunity to suggest that a switch like "-fullembed"
>> (or something like that) be used instead of the "-ansi", as a
>> "clarification" of what the switch do.
> 
> Suggestion noted but someone actually has to implement it. Not sure who
> that will be.

This issue will soon disappear. The current font library will be
replaced with another one (FOrayFont), which handles that completely
differently.


>> P.S.- get rid of the font metrics would just be perfect. Also perfect would

There will also be no intermediate XML file anymore, the font file will
be directly used.


>> be to note in the config file how one wants the font to be placed on the pdf
>> (partial embed, full embed or reference only).

This possibility will be available.


> That's in the works. Date? Unknown. Chances rising in the near future. I
> have some insider info about someone who'll have more time to work on
> FOP (not me). ;-)

Mmmh, I wonder who you're talking about??
Ok, this won't appear in the next release (Fop 0.93) because this is to
big of a change. Probably the release after.

Luis, would you mind summarizing your problems in a Bugzilla entry? So
that we can more easily track them, and ensure they will actually be
corrected in the new font library. Thanks!

Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font names...

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 18.09.2006 17:05:09 Luis Ferro wrote:
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > In that case we cannot use the original font
> > name because we don't embed the full font.
> 
> 2 questions then...
> 
> a) What happens if with a partial embed font it's used the same name as the
> original font name?

I don't know. We're just following the PDF specification:
"For a font subset, the PostScript name of the font—the value of the
font’s BaseFont entry and the font descriptor’s FontName entry—begins
with a tag followed by a plus sign (+). The tag consists of exactly six
uppercase letters; the choice of letters is arbitrary, but different
subsets in the same PDF file must have different tags. For example,
EOODIA+Poetica is the name of a subset of Poetica®, a Type 1 font."

> b) What happens if with a full embed font (with use of -ansi when building
> the metrics) it's used the same name as the original font name?
> 
> The questions have some significance, because the PDF file that resulted
> from fop was edited with Acrobat pro 6 (which "unembeds" the font and allows
> the edit to continue, showing a warning regarding this) and when it was
> tryed to export to ps, acrobat just refused to work because the font's didnt
> match (there was a diference between the names like "Arial,light" in the
> PDF, when the true font name is "Arial-light").
> 
> This little diference had no side-effects on the PDF, but forfeited the use
> of the PDF for anything. The PDF restarted to work well after we grabed a
> font editor and changed in the internal properties of the font the "-" for a
> ",".

Well, it could be that FOP does something wrong here. We'd have to
investigate that closely. Not sure when I'd have time for this. Do you
have time?

> Mayhappen the reasons for changing the font names when working with
> full/partial embed fonts aren't relevant anymore...
> 
> Would like to take the oportunity to suggest that a switch like "-fullembed"
> (or something like that) be used instead of the "-ansi", as a
> "clarification" of what the switch do.

Suggestion noted but someone actually has to implement it. Not sure who
that will be.

> Cheers,
> LF
> 
> P.S.- get rid of the font metrics would just be perfect. Also perfect would
> be to note in the config file how one wants the font to be placed on the pdf
> (partial embed, full embed or reference only).

That's in the works. Date? Unknown. Chances rising in the near future. I
have some insider info about someone who'll have more time to work on
FOP (not me). ;-)


Jeremias Maerki


---------------------------------------------------------------------
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


Unicode Fonts!!!!

Posted by Paul Loy <pa...@peoplesarchive.com>.
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: Font names...

Posted by Luis Ferro <lf...@teladigital.pt>.

Jeremias Maerki-2 wrote:
> 
> In that case we cannot use the original font
> name because we don't embed the full font.

2 questions then...

a) What happens if with a partial embed font it's used the same name as the
original font name?

b) What happens if with a full embed font (with use of -ansi when building
the metrics) it's used the same name as the original font name?

The questions have some significance, because the PDF file that resulted
from fop was edited with Acrobat pro 6 (which "unembeds" the font and allows
the edit to continue, showing a warning regarding this) and when it was
tryed to export to ps, acrobat just refused to work because the font's didnt
match (there was a diference between the names like "Arial,light" in the
PDF, when the true font name is "Arial-light").

This little diference had no side-effects on the PDF, but forfeited the use
of the PDF for anything. The PDF restarted to work well after we grabed a
font editor and changed in the internal properties of the font the "-" for a
",".

Mayhappen the reasons for changing the font names when working with
full/partial embed fonts aren't relevant anymore...

Would like to take the oportunity to suggest that a switch like "-fullembed"
(or something like that) be used instead of the "-ansi", as a
"clarification" of what the switch do.

Cheers,
LF

P.S.- get rid of the font metrics would just be perfect. Also perfect would
be to note in the config file how one wants the font to be placed on the pdf
(partial embed, full embed or reference only).

-- 
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6365457
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: Font names...

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Yes, this way the whole font is embedded but you only have access to the
WinAnsi subset of characters.

On 18.09.2006 12:28:40 Luis Ferro wrote:
> 
> One of the things that appeared from the properties of the document is the
> "actual" font values.
> 
> The config i used is:
>         <font metrics-url="D:\sites\mapaterapeutico\fonts\SWZ721l.xml"
> kerning="yes" 
> 	    embed-url="D:\sites\mapaterapeutico\fonts\SWZ721l.TTF">
>           <font-triplet name="Texto" style="normal" weight="normal"/>
>         </font>
> 
> And i created the font metrics with the following class call (a short fused
> version based on the fop.bat):
> 
> org.apache.fop.fonts.apps.TTFReader -enc ansi %FOP_CMD_LINE_ARGS%
> 
> With those parameters, i assume that the "full" font is embedded... as it is
> looselly refered in the import font documentation of fop...
> 
> The actual font parameters aren't setup in the PDF. Mayhappen with the
> addition of those "actual" font file, pointing the url file, the PDF could
> be editable...
> 
> Just a tought...
> 
> Cheers,
> LF
> 
> 
> 
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > I assume the problem comes from FOP's embedding only a subset of the
> > TrueType font in the PDF. In that case we cannot use the original font
> > name because we don't embed the full font. If you have to be able to
> > edit the PDF you'd need to embed the full font in which case we could
> > use the original name. FOP currently doesn't support that, though.
> > 
> > On 17.09.2006 22:51:41 Luis Ferro wrote:
> >> 
> >> The test is simple...
> >> 
> >> Prepare a font (tested with TTF fonts) for importing, one that has some
> >> "attributes" like "light".
> >> 
> >> Make a document which uses that font and produce a PDF.
> >> 
> >> Edit the PDF with acrobat pro.
> >> 
> >> What will happen is that the name the font has isn't the same name as the
> >> embed font.
> >> 
> >> The render will work ok, but the edit will mean a "warning" of font to
> >> become "unembed". That isn't a problem, except that as the font name is
> >> wrong (the font name listed in the pdf doesn't match the font name in the
> >> TTF file, what will happen is that acrobat can't find it and allow the
> >> "reembed" of it).
> >> 
> >> If needed will post files that exemplify this effect (i'm not sure if
> >> this
> >> is a FOP problem yet - will do more tests next week).


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font names...

Posted by Luis Ferro <lf...@teladigital.pt>.
One of the things that appeared from the properties of the document is the
"actual" font values.

The config i used is:
        <font metrics-url="D:\sites\mapaterapeutico\fonts\SWZ721l.xml"
kerning="yes" 
	    embed-url="D:\sites\mapaterapeutico\fonts\SWZ721l.TTF">
          <font-triplet name="Texto" style="normal" weight="normal"/>
        </font>

And i created the font metrics with the following class call (a short fused
version based on the fop.bat):

org.apache.fop.fonts.apps.TTFReader -enc ansi %FOP_CMD_LINE_ARGS%

With those parameters, i assume that the "full" font is embedded... as it is
looselly refered in the import font documentation of fop...

The actual font parameters aren't setup in the PDF. Mayhappen with the
addition of those "actual" font file, pointing the url file, the PDF could
be editable...

Just a tought...

Cheers,
LF





Jeremias Maerki-2 wrote:
> 
> I assume the problem comes from FOP's embedding only a subset of the
> TrueType font in the PDF. In that case we cannot use the original font
> name because we don't embed the full font. If you have to be able to
> edit the PDF you'd need to embed the full font in which case we could
> use the original name. FOP currently doesn't support that, though.
> 
> On 17.09.2006 22:51:41 Luis Ferro wrote:
>> 
>> The test is simple...
>> 
>> Prepare a font (tested with TTF fonts) for importing, one that has some
>> "attributes" like "light".
>> 
>> Make a document which uses that font and produce a PDF.
>> 
>> Edit the PDF with acrobat pro.
>> 
>> What will happen is that the name the font has isn't the same name as the
>> embed font.
>> 
>> The render will work ok, but the edit will mean a "warning" of font to
>> become "unembed". That isn't a problem, except that as the font name is
>> wrong (the font name listed in the pdf doesn't match the font name in the
>> TTF file, what will happen is that acrobat can't find it and allow the
>> "reembed" of it).
>> 
>> If needed will post files that exemplify this effect (i'm not sure if
>> this
>> is a FOP problem yet - will do more tests next week).
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Font-names...-tf2287650.html#a6361198
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: Font names...

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I assume the problem comes from FOP's embedding only a subset of the
TrueType font in the PDF. In that case we cannot use the original font
name because we don't embed the full font. If you have to be able to
edit the PDF you'd need to embed the full font in which case we could
use the original name. FOP currently doesn't support that, though.

On 17.09.2006 22:51:41 Luis Ferro wrote:
> 
> The test is simple...
> 
> Prepare a font (tested with TTF fonts) for importing, one that has some
> "attributes" like "light".
> 
> Make a document which uses that font and produce a PDF.
> 
> Edit the PDF with acrobat pro.
> 
> What will happen is that the name the font has isn't the same name as the
> embed font.
> 
> The render will work ok, but the edit will mean a "warning" of font to
> become "unembed". That isn't a problem, except that as the font name is
> wrong (the font name listed in the pdf doesn't match the font name in the
> TTF file, what will happen is that acrobat can't find it and allow the
> "reembed" of it).
> 
> If needed will post files that exemplify this effect (i'm not sure if this
> is a FOP problem yet - will do more tests next week).



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org