기술 자료

Unity Engine

Unity Engine

GetPathsToOSFonts()

Gets the file paths of the fonts that are installed on the operating system.
읽는 시간 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.