True type font in a GUI figure and a PDF print

3 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by