Skip to main content
June 9, 2009
Question

How to not show any ligatures in fonts

  • June 9, 2009
  • 1 reply
  • 2063 views

I had it posted in some other thread, reposting here since it is more relevant in this forum.

I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.How do I turn of ligatures in the font rendering?

My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?

I am converting my ttf into a swf using a css like this:

/* normal */
@11220649-face {
    src:url("Gara.TTF");
    fontFamily: "Garamond";
    fontWeight: "normal";
    fontStyle:    "normal";
    cff: true;
}

Thanks,

Om

This topic has been closed for replies.

1 reply

Peter_deHaan
Participating Frequently
June 9, 2009

Om,

What about if you try setting the ligature level to "minimum"?

/flash/text/engine/LigatureLevel.html#MINIMUM

Peter

June 9, 2009

Peter,

I did try to set LigatureLevel.MINIMUM, but it looks like there is some ligatures that are working.  But I dont know how to make sure that ligatures are off.  'MINIMUM' indicates that there will be some ligatures shown.  What exactly does 'MINIMUM' mean?

I opened up the font file(in HighLogic FontCreator software), there are a set of glyphs that indicate two or more characters together.  So, I removed those glyphs and re-exported the font to a css-swf.  Interestingly, wherever ligatures are required (ex. it, ti, ve, etc.) blank spaces are seen in the Flex's RichText control.  This is with LigatureLevel set to MINIMUM.  Not sure what to make of that...

Adobe Employee
June 10, 2009

None was intentially removed.  Here's the comment:

This was an API/markup change. LigatureLevel.NONE is no longer an option. The problem was it allowed you to set it for languages where it is not a legal option (e.g., Arabic & Hebrew among others) but does nothing for you in English. What "none" was doing was turning off the "rlig" OpenType feature, which is not recommended.

When set to none it was causing hard to diagnose rendering problems in those languages.  Interesting to hear that you have a use case for it though.

Thanks,

Richard