Open fr-an-k opened 3 weeks ago
If you wish to use Xilem on the web, I would recommend using xilem_web
, which is included in this repository, and does properly support the web by controlling DOM nodes. Please note however that xilem_web development is entirely community driven, you'd be welcome to contribute.
As an addendum:
Accessibility would be nice but is non-essential at this stage.
I would encourage you to rethink this position; the use of canvas/wgpu based drawing does not just make accessibility impossible "at this stage", it makes it implausible in the future. In my opinion, it is not possible to develop a "production" application with no possible path to accessibility, so the path you are intending to take might not be viable.
Ok. A WASM target just needs to be compilable, not support everything. For that users can install the native app.
It doesn't appear to be currently possible due to https://github.com/linebender/parley/issues/70 (fontique's dependency on SystemFonts).
I'm guessing there is currently no easy way to work around this or use an alternative fontstack.
I also had to add this to Cargo.toml:
I intend to use this for (new) production software, so I already assumed I need my own heavily modified fork and then reconcile later. I'll probably use mcsdf for 2D + 3D font rendering.
But WASM support (without or without javascript host) will be very important so there should be a case (and example) for it:
Accessibility would be nice but is non-essential at this stage.