Main Content

listTrueTypeFonts

List available TrueType fonts

Description

fontNames = listTrueTypeFonts returns a cell array of sorted TrueType font names installed on the system.

Use listTrueTypeFonts function with the insertText function.

Note

To display fonts that are available with MATLAB® graphics, use the listfonts function.

example

Examples

collapse all

listTrueTypeFonts
ans = 2509x1 cell
    {'Caladea-Bold'                   }
    {'Caladea-BoldItalic'             }
    {'Caladea-Italic'                 }
    {'Caladea-Regular'                }
    {'Carlito-Bold'                   }
    {'Carlito-BoldItalic'             }
    {'Carlito-Italic'                 }
    {'Carlito-Regular'                }
    {'DejaVuMathTeXGyre'              }
    {'DejaVuSans'                     }
    {'DejaVuSans-Bold'                }
    {'DejaVuSans-BoldOblique'         }
    {'DejaVuSans-ExtraLight'          }
    {'DejaVuSans-Oblique'             }
    {'DejaVuSansCondensed'            }
    {'DejaVuSansCondensed-Bold'       }
    {'DejaVuSansCondensed-BoldOblique'}
    {'DejaVuSansCondensed-Oblique'    }
    {'DejaVuSansMono'                 }
    {'DejaVuSansMono-Bold'            }
    {'DejaVuSansMono-BoldOblique'     }
    {'DejaVuSansMono-Oblique'         }
    {'DejaVuSerif'                    }
    {'DejaVuSerif-Bold'               }
    {'DejaVuSerif-BoldItalic'         }
    {'DejaVuSerif-Italic'             }
    {'DejaVuSerifCondensed'           }
    {'DejaVuSerifCondensed-Bold'      }
    {'DejaVuSerifCondensed-BoldItalic'}
    {'DejaVuSerifCondensed-Italic'    }
      ⋮

fontNames = listTrueTypeFonts;
LucidaFonts = fontNames(~cellfun(@isempty,regexp(fontNames,'^Lucida')))
LucidaFonts = 1x1 cell array
    {'LucidaSansRegular'}

Output Arguments

collapse all

Available TrueType fonts on system, returned as a cell array of sorted TrueType font names.

Version History

Introduced in R2015b