The fonts must be added to the Java Runtime Environment (JRE) that ships with MATLAB (if that is the Java version being used by the program). Below are steps to install the fonts:
- Copy the TTF fonts to "\sys\java\jre\win64\jre\lib\fonts", e.g. "C:\Program Files\MATLAB\R2019a\sys\java\jre\win64\jre\lib\fonts" Note: You might need to be an administrator to copy files to this folder.
- Restart MATLAB.