フィルターのクリア

True type font in a GUI figure and a PDF print

4 ビュー (過去 30 日間)
Sukhoon
Sukhoon 2011 年 3 月 2 日
回答済み: BhaTTa 2023 年 10 月 19 日
All,
I wonder how I use a true type font instead bitmap one in a GUI and a PDF print.
I set the 'FontName' in a Inspector (property editor) in a GUI as Arial. But it does not look as true type.
So...please. ^^

回答 (1 件)

BhaTTa
BhaTTa 2023 年 10 月 19 日
I understand that you want to use a true type font instead of a bitmap one in your GUI and PDF print. There are a few steps you can take to achieve this:
h = uicontrol('Style','text','String','Hello World','FontName','Arial');
  • Third, you need to print your GUI figure to a PDF file using the print function. You can specify the output format, resolution, and paper size using the appropriate options. For example, if you want to print your figure to a file called myfigure.pdf with a resolution of 300 dpi and a paper size of A4, you can write something like this:
print('myfigure.pdf','-dpdf','-r300','-bestfit')
I hope this helps you with your project. If you have any questions, please let me know. 😊

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by