---
title: fantasyFontFamily
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpreferences/fantasyfontfamily
---

# fantasyFontFamily

The fantasy font family of the web view.

## Declaration

```swift
var fantasyFontFamily: String! { get set }
```

## Discussion

Discussion This preference affects text whose properties indicate that it should be displayed in a fantasy font but do not specify a particular font.

## See Also

### Getting and Setting Fonts

- [cursiveFontFamily](webkit/webpreferences/cursivefontfamily.md)
- [fixedFontFamily](webkit/webpreferences/fixedfontfamily.md)
- [sansSerifFontFamily](webkit/webpreferences/sansseriffontfamily.md)
- [serifFontFamily](webkit/webpreferences/seriffontfamily.md)
- [standardFontFamily](webkit/webpreferences/standardfontfamily.md)
