Skip to content

Font weight not supported #666

@davebranton

Description

@davebranton

If I set the font on a 2D canvas using something like:

ctx.font = "100 10pt "Helvetica Neue""

Then the weight part of the string is mis-interpreted as 100pt, and the facename is ignored. See the code on line 179 of EJBindingCanvasContext2D.m

Adding support for this will also require that the weight is incorporated into the font's hash (calculated on line 19 of EJFont.mm) too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions