> * `CTFontCollectionCreateMatchingFontDescriptors` - constructs the query > used to ask the OS which fonts are available. This is ultimately called from > Servo `FontContext::get_resolved_font_for_style()`, called during frame > construction for text boxes. > > * `CTFontManagerCopyAvailableFamilyNames` - gets the list of available > families from the OS. Called when we create the thread-local font context. > (There is one font context per frame construction thread.)
I think these we can stuff into an Arc and share. At some point the system may get new fonts added, at which point we'll need to create and pass new ones. It seems a little silly that we recalculate the font list and all the font groups every time, but it's mostly that way because we never had a reason to mess with it until now. jack. _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo