How can i display Amharic fonts on MATLAB GUI whose unicode ranges from &#4608 t0 &#4988 ?

12 vues (au cours des 30 derniers jours)
original string='ሀለመሰረቀበተቸነአከወዘ';
on MATLAB editor and push buttons the string becomes a square box.
on Matlab Edit texts it shows nothing except the HTML tag.
pushbutton = uicontrol('style', 'push', 'edit', '<html>ab&#4608;&#4609;&#4610;&#4611;c');

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Oct 2015
Modifié(e) : Walter Roberson le 20 Oct 2015
Unicode is not supported in plots or uicontrols before R2014b. Which MATLAB version are you using, and which font are you configuring?
Actually in OS-X in R2014a (before the full Unicode support), the following works for me:
pushbutton = uicontrol('style', 'push', 'string', '<html>ab&#4608;&#4609;&#4610;&#4611;c');
However, setting an edit control to this or to contain the unicode characters does not work in R2014a
  5 commentaires
hassen Seid
hassen Seid le 20 Oct 2015
I tried this option: I changed MATLAB encoding to UTF-8. then Go to File->Preferences->Fonts->Custom. I change desktop text font to visual geez. It shows the correct font on the editor and the command window. But still it doesn't work on push buttons and edit texts of the GUI.
Walter Roberson
Walter Roberson le 20 Oct 2015
pushbutton = uicontrol('style', 'push', 'string', '<html>ab&#4608;&#4609;&#4610;&#4611;c');

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by