分割草书字符 [英] Segmenting Cursive Characters

查看:132
本文介绍了分割草书字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功使用水平和垂直投影分割普通字符。现在我正在尝试细分草书字符。因为它们是倾斜的,我不知道分割草书字符。请帮我解决这个问题。谢谢。

I have segmented normal characters using horizontal and vertical projection successfully. Now I''m trying to segment cursive characters. I have no idea of segmenting cursive characters since they are slanted. Please help me with this problem. Thank You.

推荐答案

假设通过分段,你的意思是你已经将个别字符分离成位图或纹理贴图...



编写脚本或比例字体的方法是将整个文本打印到缓冲区,然后应用它。一次为它们应用一个字符是行不通的,因为比例字体包含您无法在图像级别访问的放置规则。



因此,您需要能够将格式化文本动态应用到纹理缓冲区中以实现所需效果。
Assuming that by segmented, you mean that you''ve isolated individual characters into bitmaps or texture maps...

The way to do scripted or proportional fonts is to print out the entire text to a buffer, then apply that. Applying them a character at a time is not going to work, because proportional fonts contain placement rules that you won''t be able to access at an image level.

So you need to be able to apply formatted text on the fly into a texture buffer to achieve the desired effect.


这篇关于分割草书字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆