-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m122: SkFontMgr::RefDefault() has been deleted #231
Comments
@kyamagu I have a m122 that compiles, and I think I can emulate the deleted |
Hmm, so you mean there won't be logic equivalent to |
It doesn't look like it. They have simply moved the centralized functionality of "give me a font matching a description in the current OS platform" from skia to chromium; on skia you are left with a few per-platform optionally compiled in font managers, Linux build of skia has fontconfig, Windows build of skia has directwrite, mac build of skia has coretext. It is basically skia's Chromium is much larger than skia even without submodules... besides, the file expects the rest of skia to be under |
Sure, it is okay if the copying won't cause a big maintenance effort in the future. |
This is the only change between 121 and 122, plus the removal/emulation of |
Skia m122 has a rather troubling change:
This functionality is being moved into Chromium itself:
chromium/chromium@a6166e8
I see no good alternative except essentially copying most of chromium:skia/ext/font_utils.cc and stick it near the top of our src/skia/Font.cpp, emulating the removed
SkFontMgr::RefDefault()
. Without a workingSkFontMgr::RefDefault()
or equivalent (SkFontMgr::RefEmpty()
is interface-identical and available, but it does nothing ; if you want something, you need to callSkFontMgr_New_FCI
[linux fontconfig] etc directly, for each platform ), we are getting an extra of 44 failed and 62 errors compared to two days ago.This is essentially all the difference between upstream skia m121 and m122, as far as skia-python is concerned, moving the "central font mgr api" into chromium. @kyamagu
The text was updated successfully, but these errors were encountered: