GetPathsToOSFonts()
Gets the file paths of the fonts that are installed on the operating system.
阅读时间1 分钟最后更新于 1 个月前
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.