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

Font weight not supported #666

Open
davebranton opened this issue Aug 9, 2018 · 1 comment
Open

Font weight not supported #666

davebranton opened this issue Aug 9, 2018 · 1 comment

Comments

@davebranton
Copy link

davebranton commented Aug 9, 2018

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.

@tanphamanhh
Copy link

same issue here.
@davebranton Do you have any solution?

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

2 participants