-
Notifications
You must be signed in to change notification settings - Fork 70
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
Pure Rust font stack for wr_glyph_rasterizer #498
Comments
Isn't this down to automatic composition not being implemented ? |
2e0byo ***@***.***> writes:
Isn't this down to automatic composition [not being implemented](https://github.com/emacs-ng/emacs-ng/blob/master/rust_src/crates/webrender/src/draw_canvas.rs#L434) ?
--
Reply to this email directly or view it on GitHub:
#498 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
Seems like that is the case.
|
Hit this WR bug. WebRender currently does not work with
|
Code path for color font is not limited to glyph automatic composite. Better if WebRender GlyphInstance adds supports for this, otherwise we have to manually draw font png/svg images. While waiting for WebRender adding support for Color Font. I am happy with just disable Noto Color Emoji for now. |
I recently realized that WebRender has a hard C dependencies (freetype2/harfbuzz), while we'd prefer font stack using Rust(fontdb/ttf_parser/rustybuzz/fontdue/swash etc). I've experimenting with replacing WebRender wr_glyph_rasterizer with fontdue. It turns out doable. My WebRender branch using fontdue is here and ng branch here. Tasks:
There are some font concepts I am not sure whether there are involved here.
|
png/svg fonts is working using patched |
perhaps Cosmic text? |
Cosmic text doesn't really fit into Emacs IMO. Emacs layout text itself. Choosing swash over fontdue which I mentioned in other comments, is that fontdue doesn't support emoji rendering, also we have to find another rust shaping library. Interestingly, we have this elisp OTF/TTF font loader and renderer which is inspired by fontdue. |
Allsortrs by yeslogic seems to be a powerful shaping library |
I think we wouldn't mind having a new Emacs font driver implemented in Allsort! |
Oh well I don't have that much experience with font shaping libraries 😅 but if I find enough time maybe this summer I can give it a look |
#498 (comment)
The text was updated successfully, but these errors were encountered: