在屏幕上显示希伯来语文本 [英] Displaying hebrew text on screen
本文介绍了在屏幕上显示希伯来语文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要使用 text
在MATLAB中:
I want to display hebrew text on the screen using the text
command in MATLAB:
text(0.6, 0.5, 'ירוק', 'rotation', 180, 'fontsize', 50, 'color', 'r')
<问题是它显示乱码。
The problem is that it displays gibberish.
有人知道为什么吗?
推荐答案
您需要使用支持希伯来字符的字体 - 默认字体(Helvetica)不。例如:
You need to use a font that supports Hebrew characters - the default font (Helvetica) does not. You can use 'Courier', David' etc. For example:
text(0.6,0.5,'ירוק','fontname','david','rotation',180,'fontsize',50,'color','r')
בהצלחה!
这篇关于在屏幕上显示希伯来语文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文