Bug 90962 - Nice to have an API to retrieve ligature related information.
Summary: Nice to have an API to retrieve ligature related information.
Status: NEEDINFO
Alias: None
Product: HarfBuzz
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Behdad Esfahbod
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-13 01:38 UTC by Hak Matsuda
Modified: 2016-02-09 08:07 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.