I'm not sure I understand everything that you're saying. I'll try to
explain this from my point of view.
Let's first look at the glyphs:
The tilde: in Unicode 0x007E, TILDE
This character is part of the US-ASCII 7-bit encoding, so most fonts
have that. However, the Symbol font doesn't have the 0x007E glyph.
Instead, it has the glyph for Unicode 0x223C, TILDE OPERATOR. So these
are really two different glyph although looking similar, but with a
different function. Arial Unicode MS has actually both variants, but
they look different.
The arrow: in Unicode 0x2192, RIGHTWARDS ARROW
The latin base 14 fonts (Helvetica, Times and Courier) don't have that
glyph. Symbol does have it. Arial, too.
The alpha: in Unicode 0x03B1, GREEK SMALL LETTER ALPHA
You'll notice that this glyph is available in Symbol and most TrueType
fonts, but not the base 14 Helvetica, for example.
Please see the attached FO file which plays through all discussed glyphs.
Each once using the direct character and once using a character
reference (in the form �). Both forms are equivalent. What's
easier to choose depends on the way your content is created.
So, how to get these character into the FO? That depends largely on your
application. You have to control either what characters you generate or
which fonts you choose. Unfortunately, FOP doesn't support
glyph-by-glyph selection of fonts, so just specifying a font list on the
font-family property doesn't always help because FOP currently only
splits at word boundaries (I think).
What you can try is to envelope certain characters in fo:inline or
fo:character tags using XSLT. But that's obviously just a work-around
for the FOP limitation if you have such a wide range of characters
coming in. Instead you can try to use a different font that has a wider
range of glyphs like Arial Unicode MS or DejaVu Sans. That would make
such stunts unnecessary.
I hope that helps.
On 03.11.2009 19:09:11 Arjun Priyananth wrote:
> Hi Jeremias,
> In my xml arrow and tilde is there as text not as code.
> in fop file it shows as xml and i am not using any specific fonts.
> those symbols are there in "Symbol" fonts. Then why its not shown in PDF?
> Since you have suggested inline tags. How do i get that in fo file.
> It doesn't put inline tag for arrow, tilde and for some charcters like "ö"
> (instead of two dots put a hypen on the top).
> This is the steps I followed
> - I took one xml which has alpha char, tilde char & arrow char.
> - transfored to FO. in the fo there is no inline tag for tilde and
> arrow. alpha has that.
> how can i get that inline for those two
> Thanks & regards,
> On Tue, Nov 3, 2009 at 1:15 PM, <email@example.com> wrote:
> > https://issues.apache.org/bugzilla/show_bug.cgi?id=48108
> > Jeremias Maerki <firstname.lastname@example.org> changed:
> > What |Removed |Added
> > ----------------------------------------------------------------------------
> > Status|NEW |RESOLVED
> > Resolution| |INVALID
> > --- Comment #1 from Jeremias Maerki <email@example.com> 2009-11-02
> > 23:45:46 UTC ---
> > Please see the following FAQ entry:
> > http://xmlgraphics.apache.org/fop/faq.html#pdf-characters
> > If the font you're using doesn't have the necessary glyphs, FOP can't make
> > them
> > appear. You will need to select a font that has the glyphs you need. That
> > '~'
> > is not available is a little peculiar. That glyph is available in almost
> > all
> > latin fonts. However the arrow glyph is not. Maybe if you mentioned what
> > fonts
> > you're trying to use, it would be easier to tell exactly what's going on.
> > Please follow up on firstname.lastname@example.org. I'm fairly sure that
> > this
> > is no bug.
> > --
> > Configure bugmail:
> > https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> > ------- You are receiving this mail because: -------
> > You reported the bug.
> - Arjun Priyananth