-
Notifications
You must be signed in to change notification settings - Fork 27
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
[skrifa] CBDT/CBLC and SBIX bitmap color font access interfaces #593
Comments
Starting work on bitmap support and figured I'd tackle the low hanging fruit first. This includes basic codegen for parsing sbix along with a tiny helper method to load `GlyphData` for a given glyph id. Working towards #593
Starting work on bitmap support and figured I'd tackle the low hanging fruit first. This includes basic codegen for parsing sbix along with a tiny helper method to load `GlyphData` for a given glyph id. Working towards #593
As a basis for discussion and invitation for feedback, here's my current thinking on how to hook up bitmap glyphs. Alternative 1: New type of
|
My assumption at the moment is that we won't need to support all the monochromatic encodings in Chromium and mostly go with CBDT/CBLX PNG image data and sbix PNG image data. I might restrict the implementation to that and thus not feel like I want to invest in designing a full general purpose (monochromatic and color) bitmap API in Skrifa. So currently I am working based on the Alternative 2. |
For bitmap color font support in the Fontations
SkTypeface
backend, interfaces in Skrifa or read-fonts are needed to access the bitmap strikes of CBDT/CBLC and SBIX fonts. (In principle EBDT/EBLC might be needed but in practice I don't think we encounter such fonts so much, except for some Windows Chinese system fonts which are not high priority).I have not analyzed FreeType's support or interfaces or what
SkTypeface
does with them yet, but I suspect we might want some control over retrieving what strike sizes are available and selecting them. And/or and automatic mode might be useful where the next higher strike size or the highest available strike size is selected according to configured scaled font size..2 cents considerations regarding priority, I wonder if this make sense to do even before hinting and autohinting support. It depends on how much work this is. If it's a smaller amount of work, this might unblock me from starting the work on the Skia side so that work could start in parallel while hinting and autohinting is being worked on.
The text was updated successfully, but these errors were encountered: