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

Myles C. Maxfield mmaxfield at apple.com
Fri Aug 4 04:15:52 PDT 2017

You can use CTFontDescriptorCopyAttributes() <https://developer.apple.com/documentation/coretext/1509327-ctfontdescriptorcopyattributes> and CTFontDescriptorCreateWithAttributes() <https://developer.apple.com/documentation/coretext/1510642-ctfontdescriptorcreatewithattrib> and serialize the intermediate dictionary.


> On Jul 19, 2017, at 7:48 PM, Joshua Watt <jpewhacker at gmail.com> wrote:
> 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 some structure or string that "describes" a
> font that could then pass through and use it to (re)construct the Font
> in the UIProcess.
> Thanks,
> Joshua Watt
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20170804/09a495b2/attachment.html>

More information about the webkit-dev mailing list