-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use 'ccmp' feature for required ligature substitution
instead of 'rlig', for wider compatibility. NotoColorEmoji.ttf does the same Fixes #279
- Loading branch information
1 parent
67081b8
commit f1d3f98
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from textwrap import dedent | ||
from nanoemoji.features import generate_fea, DEFAULT_GSUB_FEATURE_TAG | ||
import pytest | ||
|
||
|
||
@pytest.mark.parametrize("feature_tag", (DEFAULT_GSUB_FEATURE_TAG, "rlig")) | ||
def test_generate_fea(feature_tag): | ||
rgi_sequences = [(0x1F64C,), (0x1F64C, 0x1F3FB), (0x1F64C, 0x1F3FC)] | ||
assert generate_fea(rgi_sequences, feature_tag=feature_tag) == dedent( | ||
f"""\ | ||
languagesystem DFLT dflt; | ||
languagesystem latn dflt; | ||
feature {feature_tag} {{ | ||
sub g_1f64c g_1f3fb by g_1f64c_1f3fb; | ||
sub g_1f64c g_1f3fc by g_1f64c_1f3fc; | ||
}} {feature_tag}; | ||
""" | ||
) |