declantsien

Results 75 comments of 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). ![swappy-20230402_212837](https://user-images.githubusercontent.com/51986034/229356310-84b08093-f839-4842-b2d2-5c4b2e1ee984.png) ![swappy-20230402_212305](https://user-images.githubusercontent.com/51986034/229356322-d2b27064-714e-48cb-ac00-c933b04a566b.png)

> 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...

![swappy-20240305_104850](https://github.com/emacs-ng/emacs-ng/assets/51986034/1c75b0bf-94eb-48ba-bc26-f66437d9734f)

> 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...