Implementation of IDwriteFactory::CreateCustomFontCollection

Guillaume Charifi guillaume.charifi at sfr.fr
Fri Aug 29 06:47:04 CDT 2014


Hello, I heard you are working on IDwriteFactory::CreateCustomFontCollection implementation, so I attached my current work, if it can help.
It's almost done, just this part, retrieving the font family name to effectively save it, is to be implemented (even if Adobe Creative Cloud works with this changes):

+        if(!This->families) {
+            This->count = 1;
+            This->alloc = 1;
+            This->families = heap_alloc(This->alloc * sizeof(WCHAR *));
+            This->families[0] = heap_strdupW((const WCHAR[]){'d','u','m','m','y',0});
+        } else {
+            add_family_syscollection(This, (const WCHAR[]){'d','u','m','m','y',0});
+        }

In the hope it could be useful,
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwrite.CreateCustomFontCollection.patch
Type: text/x-patch
Size: 6611 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140829/ad13ecd3/attachment.bin>


More information about the wine-devel mailing list