ドキュメント

Unity Engine

Unity Engine

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.