Bug 90962

Summary: Nice to have an API to retrieve ligature related information.
Product: HarfBuzz Reporter: Hak Matsuda <hakuro>
Component: srcAssignee: Behdad Esfahbod <freedesktop>
Status: NEEDINFO --- QA Contact:
Severity: normal    
Priority: medium CC: freedesktop
Version: unspecified   
Hardware: Other   
OS: All   
i915 platform: i915 features:

Description Hak Matsuda 2015-06-13 01:38:16 UTC
AFAIK, there is no API to retrieve a ligature information (if a glyph is a ligature).
hb_ot_layout_get_ligature_carets() only works when a OT font supports the information.
If there is an API that can retrieve,
- If the glyph is a ligature,
- How many caret positions it may have,
that would be handy.
For now, those need to be retrieved with a conjunction of other line breaking components.
Comment 1 Behdad Esfahbod 2015-06-16 06:45:19 UTC
Hi Hak,

What do you exactly need to do?  Some of that information is returned as part of shaping result in the cluster field.

hb_ot_layout_get_glyph_class() is also close.  But as you noted, again, this depends on what the font developer decided to set for glyph class and has no meaning outside the font.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.