通过IDWriteTextAnalysisSink::SetLineBreakpoints().,DirectWrite提供了换行信息但是,我也需要根据Unicode Annex #29: Unicode Text Segmentation来确定单词边界。
有没有办法用DirectWrite做到这一点呢?如果没有,还有什么替代方案可以在Windows桌面和WinRT中与DirectWrite的文本布局系统一起使用呢?
发布于 2014-09-20 18:10:56
我可以确认Windows8.1版本之前的DirectWrite不支持UAX29(只支持LBUAX14)。至于直接由操作系统提供的替代方案,Windows.Data.Text (http://code.msdn.microsoft.com/windowsapps/Text-Segmentation-API-be73de71)或从Windows7开始就存在的扩展语言服务(http://code.msdn.microsoft.com/windowsapps/Extended-Linguistic-ELS-d04c606a)可能会有所帮助,但我不认为这两种方案都支持UAX29的直接实现。
https://stackoverflow.com/questions/23270733
复制相似问题