▲ | jsheard 4 days ago | |
Font drawing is very much out of scope for a 3D API, that's something you (or a library) would implement on top of WebGPU. Likewise for line drawing, the API may expose some simple line primitives that the hardware supports natively, but if you want anything fancier then you're expected to do it yourself with shaders which is already possible in WebGPU. The 3D API is just meant to be a minimal portable abstraction over common low-level hardware features, composing those features into higher level constructs is intentionally left as an exercise for the user. | ||
▲ | vFunct 3 days ago | parent | next [-] | |
The problem is now you have to have all sorts of additional libraries you need to load across a network. Web APIs need more standardized functionality built in, including high-level ones, and not rely on additional libraries, because they have to download across a network. It's like having to install an app every time you visit a site. | ||
▲ | lmariscal 4 days ago | parent | prev [-] | |
I mean, they are extending support for Canvas2D, which from what I believe would allow for easier text rendering. |