[Webkit-unassigned] [Bug 172165] Canvas measureText brings wrong results in the first time for custom font face

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 22 17:08:21 PDT 2017


--- Comment #8 from Myles C. Maxfield <mmaxfield at apple.com> ---
(In reply to erezg from comment #7)
> Is there an event I can subscribe to in order to make sure the font is
> rendered and the calculation will be done right after it?

Yes, you can use the CSS Font Loading API. https://www.w3.org/TR/css-font-loading/

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170523/cae9bd3f/attachment.html>

More information about the webkit-unassigned mailing list