How to add a particular font to path with toolbox?

7 vues (au cours des 30 derniers jours)
atharva aalok
atharva aalok le 2 Oct 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?

Réponses (1)

Walter Roberson
Walter Roberson le 2 Oct 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.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by