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

Add coloured glyphs #3

Open
KrasnayaPloshchad opened this issue Jan 16, 2017 · 8 comments
Open

Add coloured glyphs #3

KrasnayaPloshchad opened this issue Jan 16, 2017 · 8 comments

Comments

@KrasnayaPloshchad
Copy link

This is suitable for EBGaramond-Initials and similar fonts. The implementation can be based on CPAL/COLR table.

@georgd georgd transferred this issue from georgd/EB-Garamond Apr 10, 2023
georgd added a commit that referenced this issue Apr 10, 2023
Will eventually handle the proposal in
#3
@amarakon
Copy link

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.

@georgd
Copy link
Owner

georgd commented Apr 14, 2023

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.

@amarakon
Copy link

I did not know that you can modify the colours. Does anyone know how to do this in LaTeX?

@georgd
Copy link
Owner

georgd commented Apr 14, 2023

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 😁

@KrasnayaPloshchad
Copy link
Author

KrasnayaPloshchad commented Apr 15, 2023

I see LibreOffice decleared supporting COLR/CPAL, CBLC/CBDT or sbix OpenType tables for colored fonts from 7.5 release.
https://wiki.documentfoundation.org/ReleaseNotes/7.5

And I see Amiri font is already have colored variant.

@KrasnayaPloshchad
Copy link
Author

I see Microsoft Office now support colored glyphs as well.
https://babelstone.co.uk/Fonts/Flags.html

@khaledhosny
Copy link

COLRv1 fonts allow the user to modify the colours of the palettes so no changes to the source code are necessary.

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
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-palette-values

@khaledhosny
Copy link

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).

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

4 participants