# GetPathsToOSFonts()

> Gets the file paths of the fonts that are installed on the operating system.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TextRenderingModule

```csharp
public static string[] GetPathsToOSFonts()
```

### Returns

| Type                                                               | Description                                                       |
| ------------------------------------------------------------------ | ----------------------------------------------------------------- |
| [string\[\]](https://learn.microsoft.com/dotnet/api/system.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](/engine/6000.5/script-reference/unityengine/font.md)-ctor constructor to create new Font objects.
