How to add a particular font to path with toolbox?

4 Ansichten (letzte 30 Tage)
atharva aalok
atharva aalok am 2 Okt. 2022
Beantwortet: Walter Roberson am 2 Okt. 2022
I have created a toolbox called Professional Plots.
I wish to implement 'Nunito' Font with this toolbox, that is when the user downloads my toolbox, 'Nunito.ttf' will automatically get added to the MATLAB fonts folder. Also the font has to be then installed as well on their system.
How can I implement this?
EDIT1: Is it possible that I include the 'Nunito.ttf' file in my toolbox. Then make matlab search for fonts in this folder as well for fonts? Also how would the font installation happen automatically?

Antworten (1)

Walter Roberson
Walter Roberson am 2 Okt. 2022
Note that the locations searched for fonts are typically write-protected and might need administrative access to install.
Unfortunately, MATLAB does not offer any kind of "font path" that might permit you tell include a font in your package and tell the code to look at it without installing it as part of the system or into JRE.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by