Clear Filters
Clear Filters

True type font in a GUI figure and a PDF print

4 views (last 30 days)
Sukhoon
Sukhoon on 2 Mar 2011
Answered: BhaTTa on 19 Oct 2023
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. ^^

Answers (1)

BhaTTa
BhaTTa on 19 Oct 2023
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. 😊

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!