Superb, I was just about to delve into this but I'm glad you got to
the bottom of it.

Mehdi

On 2 March 2011 03:19, Graeme Kidd <[email protected]> wrote:
>
>
> I had some spare time today so I thought I would offer a helping hand and 
> look into it as well. It looks like you weren't far off as the AMFParser 
> class was throwing away the character based on the fact it could not find the 
> Unicode sequence.
>
> When reading a line from the AFM file it creates an instance of the 
> NamedCharacter class by using the Simple constructor. This constructor only 
> takes the character name and uses it to also create the Unicode Sequence (See 
> line 48 in NamedCharacter class). Since the character name for the character 
> was a custom one i.e "Zbb" it failed to create the Unicode sequence.
>
> To get round this issue I ensured the "Force glyphs names to" was set to 
> "Adobe Glyph List" when I exported the font. This meant "Zbb" was converted 
> to "uni2124" which allowed it to be correctly picked up - problem solved. I 
> have attached the newly exported fonts file in case you want to test it at 
> your end.
>
> Thanks again for your help, I don't think I would have gotten this far 
> without you.
>
> Graeme
>
>
> ----------------------------------------
>> Date: Tue, 1 Mar 2011 10:19:59 +0000
>> Subject: Re: FreeSerif Font not working
>> From: [email protected]
>> To: [email protected]
>>
>> Hi, Ok the issue isn't with xmlgraphics commons, that was a red
>> herring. I chased this down the rabbit hole to find the issue is in
>> AFMParser.java. The characters that are missing aren't being mapped to
>> the correct unicode index i.e. "ℤ" --> 0x2124. Which is wierd, because
>> everything else about the glyph is being parsed correctly. That's as
>> far as I've gotten today, at this stage, I'll have to look at the spec
>> to see how glyphs map to unicode indices, then find out if FOP is
>> behaving properly for this glyph. At this point we don't know whether
>> it's a FOP bug or a font bug. I'll take another look at it tomorrow.
>>
>> Mehdi
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to