Skip to main content
Inspiring
February 8, 2011
Question

LigatureLevels

  • February 8, 2011
  • 1 reply
  • 586 views

Hello,

I have a question concerning LigatureLevels.

Legal values for ligatureLevel in the TextLayoutFormat are flash.text.engine.LigatureLevel.MINIMUM, flash.text.engine.LigatureLevel.COMMON, flash.text.engine.LigatureLevel.UNCOMMON, flash.text.engine.LigatureLevel.EXOTIC, flashx.textLayout.formats.FormatValue.INHERIT.

If I use flash.text.engine.LigatureLevel.NONE i get this error:

RangeError: Property ligatureLevel value none is out of range
at flashx.textLayout.property::Property$/defaultErrorHandler()
at flashx.textLayout.property::Property/setHelper()
at flashx.textLayout.formats::TextLayoutFormat/setStyleByProperty()
at flashx.textLayout.formats::TextLayoutFormat/set ligatureLevel()

What should I use if I don't want any ligatures? COMMON? But what does common mean? Which letter-combinations do get 'ligatured'?

greetings, Stefan

This topic has been closed for replies.

1 reply

February 8, 2011

What the levels mean ultimately depends on the font.

In general, in Roman text, COMMON will get you ligatures like fi and fl, and MINIMUM will not. MINIMUM is for required ligatures in scripts like Arabic, where if you turn off ligatures entirely you get an unreadable mess. For most fonts in Roman text, there are no ligatures at the MINIMUM level, so that's what you should use if you want to turn ligatures off.

Inspiring
February 8, 2011

Hello Alan,

Thanks for your ultra-quick reply! Great!

Stefan