How to add a particular font to path with toolbox?

조회 수: 8 (최근 30일)
atharva aalok
atharva aalok 2022년 10월 2일
답변: Walter Roberson 2022년 10월 2일
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?

답변 (1개)

Walter Roberson
Walter Roberson 2022년 10월 2일
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.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by