On 26.07.2010 13:26:29 Spyros Papantoniou wrote: > Jeremy, > Thank you for the prompt reply! > Alas, I still do not get a usable output although I tried with fonts that > work with MS-Word, and other text processing applications. > My userconfig below includes my attempts. > The font DINRg [DIN Regular] that includes Greek glyphs, still refuses to > print and displays ###. > Removed the metric file, but still no progress. > > Have tried FreeSans, although it has some minor errors with the accented > Greek characters. It also displays ###. > I suspect FOP refuses to look after the first code page. German umlaute, > accent grave etc. are in the 128-255 part of the first page, > Greek chars are located in the second half [128-255] of one of the next pages.
By default, FOP uses Unicode CID coding, not 8-bit code pages. http://xmlgraphics.apache.org/fop/latest/fonts.html#register You'd have had to specify encoding-mode="single-byte" to get that behaviour. Maybe you should also check out the newly release FOP 1.0 which contains some improvements in the font area. But I'm not sure if it'll make any difference. At any rate, that version should also provide all characters of a font with encoding-mode="single-byte". > How do I confirm that the font has the right CMap table? Either by setting the log level for "org.apache.fop.fonts" to its finest setting or by using a tool like FontCreator. But if it doesn't work with FreeSans, then something else is wrong. > With Mac OSX I can write in any font in Greek on all text processing > applications, > I tried to embed the OS font Arial , but still with no success. Send me your DINRg font off-list and I'll see if there's anything weird about the font. Please also send (attach) a small FO example (to this list) that shows how you're writing your Greek text. Maybe something's wrong there. > Spyros Papantoniou, > > > > On 26 Ιουλ 2010, at 12:21 μ.μ., Jeremias Maerki wrote: > > > Normally, http://xmlgraphics.apache.org/fop/faq.html#pdf-characters > > applies. > > > > Removing the metrics-url is one step in the right direction. Then you > > need a font that contains the required glyphs, hoping it is not a > > symbolic font which can cause problems. Fonts like Arial or FreeSans are > > known to have Greek characters. If the font has the right Unicode > > characters and a Unicode CMap table, FOP can display the characters. > > > > On 23.07.2010 12:30:10 Spyros Papantoniou wrote: > >> Hello, > >> > >> I try to print Greek characters with FOP 0.95, but apparently only the > >> first page (ANSI) seems to be accessible. The Greek characters are located > >> in the second page (after 255) of the character set. > >> They are displayed as ####. > >> > >> Use userconfig.xml, and was advised to remove the metrics files. > >> Still the fonts are not printed. > >> > >> <fop version="1.0"> > >> <renderers> > >> <renderer mime="application/pdf"> > >> <fonts> > >> <font > >> metrics-url="file:///Users/sp/Triboni8080/ginkgo/fopFonts/Greek.xml" > >> kerning="yes" > >> > >> embed-url="file:///Users/sp/Triboni8080/ginkgo/fopFonts/Greek.ttf"> > >> <font-triplet name="FreeSans" style="normal" weight="normal"/> > >> </font> > >> <font > >> metrics-url="file:///Users/spyrospapantoniou/Triboni8080/ginkgo/fopFonts/GREEKPAR.xml" > >> > >> kerning="yes" > >> > >> embed-url="file:///Users/spyrospapantoniou/Triboni8080/ginkgo/fopFonts/GREEKPAR.ttf"> > >> <font-triplet name="FreeSans" style="normal" weight="bold"/> > >> </font> > >> > >> <font <!-- > >> metrics-url="file:///Users/sp/Triboni8080/ginkgo/fopFonts/DINRg.xml" > >> kerning="yes" --> > >> > >> embed-url="file:///Users/sp/Triboni8080/ginkgo/fopFonts/DINRg.ttf"> > >> <font-triplet name="DINRg" style="normal" weight="normal"/> > >> </font> > >> > >> > >> </fonts> > >> <renderer> > >> </renderers> > >> </fop> > >> > >> Sample output with DINRg: > >> > >> ####: Anafora ########### DINRg, ##μ### 24.05.2010 ### 23.07.2010 > >> > >> latin chars ok, Greek = ### > >> > >> > >> Any ideas how to configure fop to print Greek? > >> many thanks > >> Spyros > >> Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
