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.
—Myles > On Jul 19, 2017, at 7:48 PM, Joshua Watt <jpewhac...@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@lists.webkit.org > https://lists.webkit.org/mailman/listinfo/webkit-dev
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev