foliojs / fontkit

An advanced font engine for Node and the browser
1.45k stars 213 forks source link

How to change color of text of fontkit? #252

Open doolewind opened 3 years ago

doolewind commented 3 years ago

Expected Behavior

I want to change color of text. For example may be yellow or something else.

Current Behavior

For Now color of text is coming black by default.

Browser: Chrome Version: 66.0

cfour-hi commented 2 years ago

@doolewind Just curious. What is the demand of the scene.

Pomax commented 2 years ago

Also, that's the job of your own application, fontkit just uses fonts to shape text and gives you the shaped pathing data as result to work with. (unless you're pulling from SVG instead of TT/CFF or something, in which case the color information is baked into the font because the designers put it there, and they never meant for you to change them)