# StyleFont

> Creates from a Font or StyleKeyword.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## StyleFont(Font)

Creates from a [Font](/engine/6000.6/script-reference/unityengine/font.md) or [StyleKeyword](/engine/6000.6/script-reference/unityengine/uielements/stylekeyword.md).

```csharp
public StyleFont(Font v)
```

### Parameters

**** (\[Font]\(/engine/6000.6/script-reference/unityengine/font)):&#x20;

## StyleFont(StyleKeyword)

Creates from a [Font](/engine/6000.6/script-reference/unityengine/font.md) or [StyleKeyword](/engine/6000.6/script-reference/unityengine/uielements/stylekeyword.md).

```csharp
public StyleFont(StyleKeyword keyword)
```

### Parameters

**** (\[StyleKeyword]\(/engine/6000.6/script-reference/unityengine/uielements/stylekeyword)):&#x20;
