fubark / cosmic

A platform for computing and creating applications.
https://cosmic.ooo
MIT License
343 stars 16 forks source link

Scalable Text Rendering #14

Open fubark opened 2 years ago

fubark commented 2 years ago

Currently Cosmic renders glyphs into bitmaps and does some scaling so it doesn't upload too much data for dynamic text sizes. A better approach is to render using MSDF for larger font sizes. Slug is better but its algorithm is patented. Is there something similar?

Also planned is using native platform libs for rendering fonts at smaller sizes. CoreText on macOS and Direct2D on Windows.

Text shaping is mostly non existent for non latin text. It's not a huge priority as of now.