Borrar filtros
Borrar filtros

True type font in a GUI figure and a PDF print

4 visualizaciones (últimos 30 días)
Sukhoon
Sukhoon el 2 de Mzo. de 2011
Respondida: BhaTTa el 19 de Oct. de 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. ^^

Respuestas (1)

BhaTTa
BhaTTa el 19 de Oct. de 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. 😊

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by