ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ
ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ

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 Exchange์—์„œ Migrate GUIDE Apps์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by