I noticed that google chrome does show only certain characters as ligatures. The following font contains the codepoints 👾,𝓐, and 📄. it also contains ligatures for the following codepoint sequences 📄👾, 📄𝓐, 𝓐📄.
Sequences containing the 𝓐 codepoint are not displayed as a ligature in Google Chrome:
@font-face {
font-family: 'aliens';
src: url('data:application/font-woff;base64,d09GRgABAAAAAAacAAsAAAAACZQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAEsAAABqILclk09TLzIAAAFUAAAAQQAAAFZWH2BrY21hcAAAAZgAAABXAAABfnxxBHdnbHlmAAAB8AAAApIAAANoA1dLDmhlYWQAAASEAAAAMQAAADYOUN7DaGhlYQAABLgAAAAbAAAAJAcKAydobXR4AAAE1AAAAA8AAAAYE4gAAGxvY2EAAATkAAAADgAAAA4C8AIQbWF4cAAABPQAAAAfAAAAIAEZAGBuYW1lAAAFFAAAAR0AAAHyFNvC+HBvc3QAAAY0AAAAZgAAAJG4ZoJgeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiCWAtNMDGwMPEBRJiCPFUiCaEYGZgCf2gWNAHicY2BkdmScwMDKwMBUxbSHgYGhB0IzPmAwZGQCijKwMjNgBQFprikMDv+BgFnhvwVDFLMCwwmgMCNIDgD5Mw02AAAAeJztkLENgDAQA+9JoEAMwBCUjEDFUEyXASgYJX1wLMbAr3vJlisDI5DEJjLESdB1KA3nidl5ZpUfdFJrxt2Y+LX475/Tds9tNA9RL9PXi1qMOi/Ojw9gAHicVVE7b9NQFL6Pxo7dxLETP5I0Nklcx3kU5+E4rkqavlQBrUAQHq1ahgraDm3hB9AFAQNIbAjUgYXSn4AyMTCgTh0YGVjY2GBkaF2ukxLSc33e9+j6fB9AgAjeR1tgBlwFAHJYEmW71pjCCk3RHNSzFnLqDVfnsB/WG3ZNlkRKFzVk11p4CrawC1vQNTlI4/cTWzcq4ZB8JZdM5qm8YuSum7EER2nSdvra8n1HKWbEeCIixcWIonLZuemm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ZSK1M7XZZGNdYcdOqinXPNcjrNxY9SU2GPFIZ/brGBRoEjSiSwV/4fxUxY73RaYY4Is6v+mv3aZxI4nhkzW5xZW5w4e0HXIafOmTGoSCt/t0uX3IZO43sHOin9CDt/q8ESU+78Xz7yr1e/MPVTYgAAAHicbcpBDkAwEIXhmaJCws5+4iajikmqbaj7XwURC4l/8RZfHih4quE/jQozzLFAjSX0K6fFXiOGHQ3BjbSbTWIiw1HSZdywE+tpDX5Pdmsjz5YmNuJnOmLFFDzd1n1urwKc/vsY7wAA');
}
td {
font-family: 'aliens';
letter-spacing: .000001em;
font-variant-ligatures: contextual;
text-rendering: optimizeLegibility;
}
<table>
<tr>
<th>Symbol</th>
<th>Description</th>
<th>Does it work in Chrome?</th>
</tr>
<tr>
<td>👾</td><td>ALIEN MONSTER</td><td>✔️</td>
</tr>
<tr>
<td>📄</td><td>PAGE FACEING UP</td><td>✔️</td>
</tr>
<tr>
<td>📄👾</td><td>ALIEN MONSTER ON PAGE</td><td>✔️</td>
</tr>
<tr>
<td>𝓐</td><td>MATHEMATICAL BOLD SCRIPT CAPITAL A</td><td>✔️</td>
</tr>
<tr>
<td>📄𝓐</td><td>A ON PAGE</td><td>❌</td>
</tr>
<tr>
<td>𝓐📄</td><td>PAGE WITH A</td><td>❌</td>
</tr>
</table>
Safari & Firefox do not display the sequence 𝓐📄.
Are ligatures containing a 𝓐 codepoint invalid? Can ligatureS contain any sequences of codepoints? Is this a bug in chrome?
It appears the reason why Chrome doesn't apply the "A ON PAGE" ligature is that it split up the "A" and the "Page" into separate runs due to "A" being 'text' and "Page" being 'emoji'. In addition, even with that out of the way it seems that the "A" and "Page" will be considered different 'words', further breaking them into separate runs because blink believes that it can shape by word. Unfortunately, even adding a zwj doesn't seem to get around this.
Note that I see the "A ON PAGE" and associated ligature but do not see the "PAGE WITH A" glyph or ligature in the font, which may explain why neither Chrome nor Safari show this ligature.
I have opened a issue against Chromium with this information.