Skip to content

Opentype.js can only draw black text. #623

@ILOVEPIE

Description

@ILOVEPIE

Expected Behavior

There should be a way to specify the color of the text being drawn.

Current Behavior

opentype.js is the Henry Ford of font rendering "Any [user] can have [their text] any color that [they want] so long as it is black."

Possible Solution

Allow a color to be selected in the draw call for Font and Glyph objects.

Context

My library has to manually draw the path to work around this, granted I have to do this anyways as I need to stroke the text too, but my point stands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions