-
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 public #232
M122 public #232
Conversation
…nvaskit/0.38.2-3316-g982874994d)
SkTypeface::MakeFromName is gone SkTypeface::MakeFromFile also gone SkTypeface::MakeFromData is gone New lastResortMgr argument to SkTypeface::MakeDeserialize Milestone 122 ------------- * `SkFontMgr::RefDefault()` has been deleted. Clients should instantiate and manage their own `SkFontMgr`s and use them to explicitly create `SkTypeface`s Fixes kyamagu#231 Adapted from chromium/chromium@a6166e8
The FontConfigInterface version somehow segfaults.
… failure Upstream problem reported at pypa/cibuildwheel#1740 .
@HinTak As far as I look, the
|
I believe we were using this particular @kyamagu yes, chrome seems to be also use fontconfig directly in multiple places too, independently of skia... |
The singleton object is static and instantiated here. The |
Anyway, it is probably fine as long as |
The call chain is doing multiple std::move in the middle, so I am wondering if some of some of fontconfig internals gets out of scope at some point. There is a curious breakage between 121 and 122 where for Mac os x, font(typeface("")) stops returning a "practically usable" font, and the glyph outlines come to none. Not surprising given the other recent changes, but that's a other reason not to merge this until 123 etc. |
…994d to canvaskit/0.38.2-3317-gc6835e2d5f
…3318-g8464f41cf0 on m122
I'll put "don't use empty font(typeface("")) on mac os x" in the readme.m122 - it isn't something upstream wants you to do (an "any font") so it is not surprising it stops working at some point. Possibly upstream removed a "LEGACY..." define somewhere. |
I have added an explict test for |
The macOS detector macro is called `__APPLE__`, not `__apple__`
Last: |
I am finding myself revisiting this issue with #214 - google actually had a skia+sdl2 example before m93, and trying to get it to work with m126, I have to do something similar - and found that it |
This should passed CI. But there is no reason of merging/upgrading at the moment, since all it differs is in default fontmgr being emulated.
@kyamagu I am not sure what is the problem, but the "FontConfigInterface" is the one being used up to 121 and being moved to chrome, but it segfaults , and somehow the "fontconfig" one, which was not and is not used anywhere, works. If you have time I'd appreciate your thought, but probably don't spend too much time on it, since we have something that "works", and this shouldn't be merged yet.