Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying hebrew text on screen

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?

like image 874
user552231 Avatar asked Jan 09 '11 15:01

user552231


1 Answers

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

בהצלחה!

like image 58
Yair Altman Avatar answered Nov 10 '22 11:11

Yair Altman