フィルターのクリア

How to set a particular font in a Edit Text Area

3 ビュー (過去 30 日間)
Jethro
Jethro 2011 年 12 月 6 日
Hi everybody!
I bypassed my problem with passwords creating a new font, made by '•': now I have to set it in an area where to insert password... I tried insert it using set
set(handles.TAG, 'FontName', 'MyFont');
without results. I also tried setting it in the Ispector, but it doesn't work and I always see the standard font...
Someone told me there's a specific directory in Matlab in which I have to put my font... It's true?? And what's the name of the directory?
Thank you all for answering!
  2 件のコメント
Walter Roberson
Walter Roberson 2011 年 12 月 6 日
Warning: if you do this then someone can highlight the password in the edit box, copy it and paste it to a different text area, where it will show up clearly.
Jethro
Jethro 2011 年 12 月 6 日
Yes, I know it, but it has to work for a University Project... ;)

サインインしてコメントする。

採用された回答

Jethro
Jethro 2011 年 12 月 6 日
PF=uisetfont(handles.ET_PWD_IT, 'Bacchus');
This set runs but at the moment to set my font, it appears a window with a font list, but mine is not in this list! I installed it like every downloaded font, and in the Font Directory I can see it... What's the problem according to you??
  1 件のコメント
Jethro
Jethro 2011 年 12 月 7 日
I solved my problem copying my font in every "font" directory in Matlab! ;)

サインインしてコメントする。

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2011 年 12 月 6 日
Perhaps uisetfont?
doc uisetfont
Though if the user has enough calming vodka, do you even need '*'s?
  1 件のコメント
Jethro
Jethro 2011 年 12 月 6 日
'•'s are more fashion xD

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by