<p>sorry, no elongated post over the turmoils of work, just a pretty picture and a repo link:</p>
<p>sample: <a href="http://i.imgur.com/Q6bZPPM.png">http://i.imgur.com/Q6bZPPM.png</a></p>
<p>material: <a href="https://github.com/dskinner/material">https://github.com/dskinner/material</a></p>
<p>The height of the glyphs in the sample are 50px (72px total accounting for space before fuzzing the image). So, the 112px text in the sample is over the twice the size of the source (haven't experimented with smaller source sizes yet).</p>
<p>This file contains the necessary functions (outside of main) to do signed distance field: <a href="https://github.com/dskinner/material/blob/master/text/gen.go">https://github.com/dskinner/material/blob/master/text/gen.go</a></p>
<p>It could probably be improved no doubt. In general, I've read this method isn't useful for small text (see 12px text in sample) but it is useful for arbitrary monochrome images.</p>
<p>If you want to run a demo yourself, see <a href="https://github.com/dskinner/material/tree/master/example/text">https://github.com/dskinner/material/tree/master/example/text</a></p>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传