Skip to main content
ozDiGennaro
Participating Frequently
June 18, 2010
Question

What is TLF support for diacritical marks in Hebrew?

  • June 18, 2010
  • 3 replies
  • 1521 views

I have started a right-to-left  language using TextFlow and RichEditableText.

I have trouble with  kerning.

When  using Hebrew with diacritical marks (and these are common), the kerning  is not correct.  Each diacritical glyph is made in a space after the  character.  (This did work with TextField).  I tried setting Kerning ON,  but that did not help.

I am ready to select a font family that works, but I'd like it to be fairly "formal" (like DavidD).

typical code:

           
             var format:TextLayoutFormat;
            textFlow =  TextFlowUtil.importFromXML(textFlowXML, WhiteSpaceCollapse.PRESERVE);
            
            format = new TextLayoutFormat();
             format.color = 0x442222;
            format.kerning =  flash.text.engine.Kerning.ON;
           
             textFlow.format = format;

            richText.textFlow = textFlow;

The XML  (just the start - close the span and other elements):

   <TextFlow direction="rtl">
    <div color="#442222"  fontSize="20" paragraphSpaceAfter="0" textAlign="right"  fontFamily="DavidD" >
      <p name="p0"><span>פרק  א</span></p>
      <p>     
      <span>
א   בְּרֵאשִׁית בָּרָא אֱלֹהִים אֵת הַשָּׁמַיִם וְאֵת הָאָרֶץ

This topic has been closed for replies.

3 replies

ozDiGennaro
Participating Frequently
June 27, 2010

Thanks thanks.

Yes, the output that you produced is correct.  I have lots of font choices, so I'll work on it.

Oz - 4d Text

Participating Frequently
June 22, 2010

Running http://labs.adobe.com/technologies/textlayout/demos/ with Flash Player 10.1.53.64, using Adobe Hebrew looks good to me:

Is this output correct?

Thanks,

Eric.

June 19, 2010

It looks like DavidD is a truetype font from 1997, so I expect it does not have the OpenType tables we're looking for. I don't have it installed, so when I import your markup the diacritical marks line up correctly (since we're using font fallback at that point).

You should try a "formal" Hebrew OpenType font. Unfortunately I'm not that familiar with Hebrew fonts or what would make one formal. I do know that our fallback font and Adobe Hebrew are positioning the marks correctly.

ozDiGennaro
Participating Frequently
August 22, 2010

(Lots later...)

When I said, "formal", I meant a face that looks like a traditional bible or prayerbook face.  Not creative and not a script face.

Oz