Page 1 of 1

[SOLVED] HtmlCanvas: bold text?

Posted: Thu Sep 12, 2019 8:42 pm
by Rourke
It seems like the suggested JavaScript Font string format for HtmlCanvas TextElements such as "bold 14px Arial" only actually sets the Font Family. I can set the height using FontHeight, but nothing seems to work for bold or "700". Please let me know

Re: HtmlCanvas: bold text?

Posted: Wed Sep 25, 2019 4:09 am
by Rourke
I've written a solution to this issue by adding FontWeight to TextElement. I've used git with small teams before, but not github on an open-source project like this. What is your procedure for me to upload the fix?

Re: HtmlCanvas: bold text?

Posted: Wed Sep 25, 2019 4:13 am
by JS-Support @Userware
Thanks. Please create a GutHub account, then create a fork of the CSHTML5 repository by clicking the "fork" button on GitHub, then clone the fork on your local computer, make the change, commit and push, and the create a Pull Request by following the tutorial at:
https://help.github.com/en/articles/creating-a-pull-request-from-a-fork
Thanks!

Re: HtmlCanvas: bold text?

Posted: Wed Sep 25, 2019 9:10 pm
by Rourke
Thank you!

Re: [SOLVED] HtmlCanvas: bold text?

Posted: Wed Oct 02, 2019 9:30 am
by JS-Support @Userware
The pull request has just been merged. The fix is now available on NuGet.org (version "2.0.0-alpha48-067").

Thank you for your contribution!