Spyros,
you should NOT sent fonts to this list (could get you into trouble)! I
asked to send it off-list, but anyway, DINRg does NOT contain Greek
glyphs. So no wonder, it doesn't work.

Since the XSLT file doesn't really help much (I asked for an FO file),
I've copied some characters from that file out into an FO file and used
FreeSans which rendered the Greek characters just fine. I think it
simply boils down to using the right font.

And to answer your other slightly off-topic question: I'm living and
working in Lucerne, the most beautiful town in the world. ;-)

On 26.07.2010 14:19:31 Spyros Papantoniou wrote:
> Jeremias,
> Thank you again, here are the snippets requested:
> 
> 
> 
> 
> 
> Well if fop really uses the proper CID? encoding for unicode, and the Greek 
> glyphs are present, I dont see the reason for ####.
> 
> in the xsl you may look for "DINRg"
> 
>  <fo:static-content flow-name="header-restEven">
>           <fo:block font-size="12pt" font-family="DINRg"   text-align="left" 
> space-after.optimum="10pt" border-after-color="black" 
> border-after-style="solid" border-after-width="0.1pt">
>             ΕΚΠΑ: ÄΝΑΦÖΡΑ ΠΡΩΤΟΚΟΛΛΟΥ μεταξυ 
> <xsl:value-of select="$frmDay"/>.<xsl:value-of 
> select="$frmMonth"/>.<xsl:value-of select="$frmYear"/> και <xsl:value-of 
> select="$toDay"/>.<xsl:value-of select="$toMonth"/>.<xsl:value-of 
> select="$frmYear"/>
>            </fo:block>
> 
> The Symbol font shows correctly, but is unusable for practical purposes as it 
> has no accented chars, and  does not display Greek and latin in the same 
> sentence.
> 
> merci viel mol
> 
> On 26 Ιουλ 2010, at 3:01 μ.μ., Jeremias Maerki wrote:
> 
> > 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.
> > 
> 
> > 
> > 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]

Reply via email to