Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get glyph names for feature file tweaking? #497

Open
sh1boot opened this issue Dec 20, 2024 · 1 comment
Open

How to get glyph names for feature file tweaking? #497

sh1boot opened this issue Dec 20, 2024 · 1 comment

Comments

@sh1boot
Copy link

sh1boot commented Dec 20, 2024

Using fonttools feaLib lookups.fea NotoColorEmoji-Regular.ttf I haven't been able to guess the names of the combined glyphs like "man zombie". I've tried u1F9DF_uni200D_male.ccmp, u1F9DF_200D_2642 and variations on that but no luck.

Is there a way to extract the names for use in GSUB hacking?

@sh1boot
Copy link
Author

sh1boot commented Dec 21, 2024

I meant to say what I'd been trying to do. A feature file like this:

languagesystem DFLT dflt;

@abc=[a b c];

lookup STUPIDIDEA {
    sub a @abc @abc @abc @abc a @abc' by a;
    sub a @abc @abc @abc @abc b @abc' by c;
    sub a @abc @abc @abc @abc c @abc' by b;
    sub b @abc @abc @abc @abc a @abc' by b;
    sub b @abc @abc @abc @abc b @abc' by a;
    sub b @abc @abc @abc @abc c @abc' by c;
    sub c @abc @abc @abc @abc a @abc' by c;
    sub c @abc @abc @abc @abc b @abc' by b;
    sub c @abc @abc @abc @abc c @abc' by a;

    sub                    a  a   a'  by b;
} STUPIDIDEA;

feature calt {
    lookup STUPIDIDEA;
} calt;

But with a replaced with u1F9DF (this part works), b replaced with something for the man zombie, and c replaced with something for the woman zombie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant