Displaying hebrew text on screen

旧巷老猫 提交于 2019-11-28 07:13:41

问题


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.

Does anybody know why? What should I do in order to display the text correctly?


回答1:


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')

בהצלחה!



来源:https://stackoverflow.com/questions/4639975/displaying-hebrew-text-on-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!