# CreatorAPI.getAvailableFonts
Returns the font catalog available to this project, including Creator's curated preset fonts, Google Fonts, and uploaded font assets.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## CreatorAPI.getAvailableFonts() method

Returns the font catalog available to this project, including Creator's curated preset fonts, Google Fonts, and uploaded font assets.

**Signature:**

```typescript
getAvailableFonts(): Promise<readonly FontFamily[]>;
```

**Returns:**

Promise\<readonly [FontFamily](/en/creator-api/values/font-family)\[]>

A promise that resolves to the list of available font families.

## Remarks

Local OS-installed fonts are included only when the user has already granted the browser's `local-fonts` permission. Calling this method does not trigger the local-font permission prompt.

## Example

```ts
const families = await creator.getAvailableFonts();
const roboto = families.find((f) => f.family === "Roboto");
if (roboto) {
  textLayer.fontFamily = roboto.family;
  textLayer.fontStyle = roboto.defaultStyle;
  // Or pick a specific style
  const bold = roboto.styles.find((style) => style === "Bold");
  if (bold) textLayer.fontStyle = bold;
}
```
