[HarfBuzz] emoji shaping

Kelvin Ma kelvinsthirteen at gmail.com
Tue Jun 28 23:34:28 UTC 2016


atm I use groupby() to get all the contiguous runs of emoji codepoints +
country code codepoints and then collapse the ZWJ’s. Still causes issues
though, because multi-codepoint emojis come out like ligatures when they
really should be treated like 1 atomic unit

[image: Inline image 1]

On Tue, Jun 28, 2016 at 7:01 PM, Ebrahim Byagowi <ebraminio at gmail.com>
wrote:

> I think this file
> <https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/fonts/SymbolsIterator.cpp>,
> specially the SymbolsIterator::consume, contains the logic you are looking
> for.
> (reposting directly sent mail)
>
> On Tue, Jun 28, 2016 at 9:17 AM, Kelvin Ma <kelvinsthirteen at gmail.com>
> wrote:
>
>> Since emojis have to be shaped separately from all the other text, how do
>> I separate out the emojis from the text? Previously I just had an enormous
>> list of unicode emoji codepoints and I would filter them out beforehand,
>> but this doesn’t work with ligature-emojis like family, flag, or skin color
>> emojis, which don’t have singular unicode codepoints. What’s the preferred
>> way for handling emojis in text shaping then?
>>
>> _______________________________________________
>> HarfBuzz mailing list
>> HarfBuzz at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20160628/1fe284ac/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Selection_054.png
Type: image/png
Size: 26310 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20160628/1fe284ac/attachment-0001.png>


More information about the HarfBuzz mailing list