You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Tomas Kudlac <to...@edivan-as.sk> on 2001/02/06 12:24:39 UTC
east european characters
Hello,
is there any way for FOP to support some east european characters that
are not in standard WinANSI character set? For example ccaron, dcaron, ncaron,
tcaron... If FOP does not support it yet, can I somehow add this
functionality? I don't understand how to specify in PDF that it
contains these characters. I viewed some pdf files that include these
characters and I found there only WinANSI encoding.
Tanks,
--
Tomas Kudlac
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: east european characters
Posted by Carlos Villegas <ca...@uniscope.co.jp>.
FAGOT Alain wrote:
> I will let you know later on, when we (Tore and me) are getting something
> working about an extended font support. Peter gave some hints about
> making the encoding table no more global but on a per font basis.
There is a table in the unicode site that maps all Adobe character names
to Unicode. In the case of glyphs with no Unicode asigned number, it
uses the Unicode user area. This will allow you to take any type 1 font
and get a Unicode mapping, basically without knowing its default
encoding. I was thinking this could be used to keep all glyphs
internally indexed by Unicode character numbers. So to get the width,
you just do charWidth = currentFontState.width(c) no matter what the
font is. I know this is only half the way, then you still need to define
a mapping from Unicode to be able to use the font in pdf. But at least
the layout package doesn't care about codepoint mappings. Also, if the
character or rather the corresponding glyph doesn't exist in the font,
the standard behaviour is to use the font specific 'undefined' glyph,
.notdef in postscript fonts. If you ask for the width of a character not
present in the font it should then return the width of this .notdef
glyph, rather than choosing an arbitrary character. As I understand all
font types include such a character.
This is the way the FreeType library works, no matter what the font
format and native encoding are, the library usually is able to provide
an Unicode mapping. And mappings from type 1 character names to Unicode
is done using the Adobe table mentioned above. For TTF and CID fonts is
easier to get a Unicode mapping.
Carlos Villegas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: east european characters
Posted by Peter Levart <Pe...@select-tech.si>.
Tomas Kudlac wrote:
> Hello,
>
> may you please share with me the way how you got FOP to produce
> documents in ISO-8859-2? If it is possible may you send me the patch?
>
> Thanks,
You can download my patched FOP 0.16 from: http://www.select-tech.si/fop/
But wait for 0.17. It seems that it will include some new things about TTF embeded
fonts...
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: east european characters
Posted by FAGOT Alain <Al...@framfab.nl>.
Tomas Kudlac wrote:
> is there any way for FOP to support some east european characters
> that are not in standard WinANSI character set? For example
> ccaron, dcaron, ncaron, tcaron... If FOP does not support it yet,
> can I somehow add this functionality?
Begin January, Peter Levart <Pe...@select-tech.si> reported that
his company is using a patched version of FOP to use ISO-8859-2
encoding. In his message he mentionned the need to patch the
"CodePointMapping" class (automatically generated from the charlist.xml
in src/codegen) and to replace the standard fonts (Times, Helvetica and
Courier) with the central european versions (both versions cannot
coexist). However I don't have more info on the theme.
I will let you know later on, when we (Tore and me) are getting something
working about an extended font support. Peter gave some hints about
making the encoding table no more global but on a per font basis.
Hope to give you a solution soon,
Alain.
--
FAGOT Alain
Alain.FAGOT@framfab.nl Senior Java Developer
Tel: +31 20 586 99 36 NetlinQ Framfab
Fax: +31 20 682 75 56 Arlandaweg 92
http://www.framfab.nl/ NL-1043 EX Amsterdam
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org