follow community "best practices"
人 民 网 版 权 所 有 ,未 经 书 面 授 权 禁 止 使 用
,详情可参考爱思助手下载最新版本
Back in 2024 I learned about SDF (signed distance field) rendering of fonts. I was trying to implement outlines and shadows in a single pass instead of drawing over the text multiple times in different styles. I intended to use these fonts for two different projects, a game and a map generator. I got things working but didn’t fully understand why certain things worked or didn’t work. I wrote some notes on my site about what I tried. In the end, I stopped working on both the game’s fonts and the map generator, so I put all of this on hold.
* 获取数字的第digit位(从右往左,0表示个位)