Bug 140681

Summary: [Win] [SVG-> OTF Converter] Flip the switch on
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Layout and RenderingAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Bug Depends on: 140592    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch mmaxfield: review+

Brent Fulgham
Reported Tuesday, January 20, 2015 5:46:33 PM UTC
[SVG -> OTF Converter] Flip the switch on (Windows)
Attachments
Patch (15.30 KB, patch)
2015-01-20 11:06 PST, Brent Fulgham
no flags
Patch (14.68 KB, patch)
2015-01-20 11:10 PST, Brent Fulgham
mmaxfield: review+
Radar WebKit Bug Importer
Comment 1 Tuesday, January 20, 2015 7:01:02 PM UTC
Brent Fulgham
Comment 2 Tuesday, January 20, 2015 7:06:22 PM UTC
Brent Fulgham
Comment 3 Tuesday, January 20, 2015 7:10:15 PM UTC
Brent Fulgham
Comment 4 Tuesday, January 20, 2015 7:11:10 PM UTC
Comment on attachment 245000 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=245000&action=review > Source/WebCore/svg/SVGToOTFFontConversion.cpp:791 > + const unsigned featureCount = 5; MSVC doesn't allow you to use a variable as the argument to an array declaration.
Brent Fulgham
Comment 5 Tuesday, January 20, 2015 7:19:18 PM UTC
It looks like: (1) We still have differences in SVG after turning this on. (2) FontCustomPlatformData::fontPlatformData is asserting because m_fontReference is null when running e.g., 'svg/W3C-SVG-1.1/animate-elem-03-t.svg' Will investigate further.
Brent Fulgham
Comment 6 Tuesday, January 20, 2015 10:58:57 PM UTC
Debugging further, it looks like the buffer generated by convertSVGToOTFFont may be different in some way. If I pass this buffer through the Windows AddFontMemResourceEx method, it fails. However, the original code path works.
Brent Fulgham
Comment 7 Tuesday, January 20, 2015 11:32:41 PM UTC
It appears that only font data produced by the ENABLE(SVG_OTF_CONVERTER) code path in CSSFontFaceSource.cpp suffer from this issue (convertSVGToOTFFont).
Myles C. Maxfield
Comment 8 Wednesday, January 21, 2015 1:51:52 AM UTC
(In reply to comment #6) > Debugging further, it looks like the buffer generated by convertSVGToOTFFont > may be different in some way. > > If I pass this buffer through the Windows AddFontMemResourceEx method, it > fails. > > However, the original code path works. Different than what? By "original code path," do you mean "with the converter off?"
Brent Fulgham
Comment 9 Tuesday, March 22, 2016 6:25:50 PM UTC
This patch is no longer needed. The feature was turned on in r197145 <http://trac.webkit.org/changeset/197145>.
Note You need to log in before you can comment on or make changes to this bug.