如何在iOS和Android上以自顶向下的语言(日语,中文等)显示文本? [英] How to display text in top-down languages (Japanese, Chinese, etc.) on iOS and Android?
本文介绍了如何在iOS和Android上以自顶向下的语言(日语,中文等)显示文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于iOS,我发现这个:
https://github.com/novi/LTCoreText
...任何其他替代iOS?
对于Android,我无法找到任何库/框架。有人知道吗?
解决方案
您可以使用自定义视图来垂直绘制文本,就像下面的截图一样,蒙古语脚本。
$ b $ pre $ public class DrawTextView extends View {
$ b $ @Override
protected void onDraw (Canvas canvas){
.....
}
}
How to display text in top-down languages (Japanese, Chinese, etc.) on iOS and Android?
For iOS, I've found this: https://github.com/novi/LTCoreText ... Any other alternative for iOS?
For Android, I cannot find any library/framework. Does anyone know?
解决方案
You may use a custom view to draw text on it vertically, just like below screenshot, these are traditional Mongolian script.
public class DrawTextView extends View {
@Override
protected void onDraw(Canvas canvas) {
.....
}
}
这篇关于如何在iOS和Android上以自顶向下的语言(日语,中文等)显示文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文