[Webkit-unassigned] [Bug 35486] canvas fillText with @font-face crashes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 24 13:40:02 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=35486
--- Comment #2 from Jakob Petsovits <jpetsovits at rim.com> 2010-06-24 13:40:02 PST ---
Alright, so just to conclude my previous comment, or rephrase it in a better way...
When the font is first accessed, it hasn't been loaded yet; it does not yet exist in the font cache or anywhere. Instead, CSSFontFaceSource::getFontData() kicks off loading and, as an interim solution, creates a copy of a system font (likely the last-resort fallback font, but there might be a more suitable one). When the font is fully loaded, these interim objects will be deleted so that on next access, the actually desired font will be generated from the downloaded data when it's accessed by CSSFontFaceSource::getFontData() the next time.
By deleting the interim SimpleFontData objects though, CSSFontFaceSource::pruneTable() pulls the foundations from existing Font objects like the one in CanvasRenderingContext2D. Apparently the SimpleFontData objects are not expected to last that long in the RenderTree, which might well be the case, only the CanvasRenderingContext2D is not part of the RenderTree so I guess that doesn't apply here. Anyways, I can't see a straightforward fix right now.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list