quaazar should offer some ways to render text. We should have a way to turn a String into something that we could pass to quaazar so that it renders it.
The solution I’ve found is called signed distance fields (SDF). The idea is pretty simple:
Each pixel stores the distance the closest glyph edge. We can then use that information to render arbitrarily sized texts! How cool is that!
quaazar should offer some ways to render text. We should have a way to turn a
String
into something that we could pass to quaazar so that it renders it.The solution I’ve found is called signed distance fields (SDF). The idea is pretty simple:
Each pixel stores the distance the closest glyph edge. We can then use that information to render arbitrarily sized texts! How cool is that!