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

Inquiry: Utilizing Hank Font with Gradient Without GlyphsApp #16

Open
MaximeKoitsalu opened this issue Mar 21, 2024 · 2 comments
Open

Comments

@MaximeKoitsalu
Copy link

Hey there,

Loved the Hank font and its gradient feature, but it looks like I need GlyphsApp ($299) to use it that way. Any workaround or method to get the gradient without GlyphsApp?

Thanks!

@applecuckoo
Copy link

@MaximeKoitsalu Hello! Honk was made with the COLRv1 font format, so it should work on most web browsers except for Safari. If you drag-and-drop the file into the Wakamai Fondue tool, you'll find that the font palette is #ffffb2, #ffff78, #ffc753, #ff755f, #ff3caf, and #ff46af. Hope this helps!

@kenmcd
Copy link

kenmcd commented Apr 18, 2024

Any workaround or method to get the gradient without GlyphsApp?

I assume you mean you want to modify the gradient colors.
Is that correct?

The colors are in the font CPAL (Color Palette) table.
There are 8 different color palettes pre-defined in the font.
What you see now is the default palette (0).

If you are going to use the font on a web page you can access those pre-defined palettes with CSS.
You can also set the palette colors directly using CSS.

If you want to change the palette colors permanently for the desktop, you have a some options.

Use fonttools ttx feature to dump the font to XML, then edit the XML to make direct changes to the CPAL table palette colors, and then use ttx to turn the XML back into a font.
All free.

Or you could use this web page - which edits the CPAL table for you and gives you back a modified font to download.
https://tools.djr.com/color-font-customizer/
Also free.

I have tested both ways and they do work.

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

3 participants