[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:
> 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.
> Joshua Watt
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev