GetPathsToOSFonts()
Gets the file paths of the fonts that are installed on the operating system.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.TextRenderingModule
public static string[] GetPathsToOSFonts()
Returns
Type | Description |
|---|---|
| string[] | An array of the file paths of all fonts installed on the machine. |
Remarks
This function lets you get the file paths and names of all the fonts installed on the machine. You can use these paths in conjunction with the Font-ctor constructor to create new Font objects.