declantsien
declantsien
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](https://github.com/mooman219/fontdue). It turns out...
png/svg fonts is working using patched [`wr_glyph_rasterizer`](https://github.com/declantsien/webrender/tree/fontdue).  
> perhaps Cosmic text? Cosmic text doesn't really fit into Emacs IMO. Emacs layout text itself. However the glyph rendering library [`swash`](https://docs.rs/swash/latest/swash/index.html) they use is what we need which also...

> 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! If someone is willing to...
https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS#L2870-L2886 Seems plugins should work. But browser extensions like `uBlock Origin` won't work
Also resizing the emoji pngs is not necessary in my case. wr_glyph_rasterizer just need to know the scale of the [Image](https://docs.rs/swash/latest/swash/scale/image/struct.Image.html)
I assume we can build the tokens from str. let `char_indices` compute the offset here. ``` let source = "AB🙃"; source.char_indices().map(|(i, ch)| Token { ch, offset: i as u32, len:...
@kchibisov Can you help with the CI error. Wired cfg errors.
> @kchibisov Can you help with the CI error. Wired cfg errors. The error is from the rust nightly. Tried with an old build `nightly-2024-04-05` the errors are gone. Since...