-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add coloured glyphs #3
Comments
Will eventually handle the proposal in #3
What is the advantage of using a coloured font instead of colouring it using the typesetting system? Would it be higher quality? If you don’t like the default colours, you’re going to have to modify the source code and recompile the font yourself. I’m not trying to discourage supporting more features, but it seems like this is only useful for things like emojis. |
Using two fonts for one letter is a bit awkward, especially on the web. COLRv1 fonts allow the user to modify the colours of the palettes so no changes to the source code are necessary. |
I did not know that you can modify the colours. Does anyone know how to do this in LaTeX? |
I, at least, don’t know. The script I committed produces COLRv0 tables, as far as I understand, and I need to investigate more before continuing there. That script was the outcome of trying to do something useful with ChatGPT, which however only phantasized inexistant classes and methods. After reading the documentation to the AI various times, I felt that I understood it enough to produce this 😁 |
I see LibreOffice decleared supporting And I see Amiri font is already have colored variant. |
I see Microsoft Office now support colored glyphs as well. |
The support for changing color palettes or defining custom ones in independent of the COLR table version (colors are defined in CPAL table, which in theory can even be used with SVG table). https://developer.mozilla.org/en-US/docs/Web/CSS/font-palette |
Since you already have SVGs, you can add the colors directly to them and use https://github.com/googlefonts/nanoemoji (despite its name, it can produce color fonts in general not just for emojis). |
This is suitable for EBGaramond-Initials and similar fonts. The implementation can be based on CPAL/COLR table.
The text was updated successfully, but these errors were encountered: