Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Michael Catanzaro
Hi, You can use FcNameParse and FcNameUnparse. Once you have an FcPattern, that should be relatively straightforward. Of course an FcPattern is different from a font, but that's probably the closest you can get and it should be good enough. Michael _

Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Myles C. Maxfield
I don’t think there is a platform independent method. —Myles > On Aug 4, 2017, at 3:48 PM, Joshua Watt wrote: > > On Fri, 2017-08-04 at 13:15 +0200, Myles C. Maxfield wrote: >> You can >> use CTFontDescriptorCopyAttributes() and CTFontDescriptorCreateWithAt >> tributes() and serialize the inter

Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Joshua Watt
On Fri, 2017-08-04 at 13:15 +0200, Myles C. Maxfield wrote: > You can > use CTFontDescriptorCopyAttributes() and CTFontDescriptorCreateWithAt > tributes() and serialize the intermediate dictionary. Ah, I should have clarified: This is on a Linux port :). I was hoping for some platform independent

Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Myles C. Maxfield
You can use CTFontDescriptorCopyAttributes() and CTFontDescriptorCreateWithAttributes() and serialize the int

[webkit-dev] Passing a font from WebProcess to UIProcess

2017-07-19 Thread Joshua Watt
All, I have a need to "pass" a font from the WebProcess to the UIProcess (really, I just need to be able to recreate the same font in the UIProcess that was used in the WebProcess). Does anyone know of a mechanism to do this (preferably in a platform independent manner)? Ideally, there would be so