Skip to main content
ozDiGennaro
Participating Frequently
Jun 18, 2010 11:42 PM UTC
Question

What is TLF support for diacritical marks in Hebrew?

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

ozDiGennaro
Participating Frequently
Jun 27, 2010 10:51 PM UTC

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

Translate
Participating Frequently
Jun 22, 2010 5:33 PM UTC

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.

Translate
Jun 19, 2010 12:08 AM UTC

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.

Translate
ozDiGennaro
Participating Frequently
Aug 22, 2010 10:39 PM UTC

(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

Translate