# FromSDFFont(FontAsset)

> Create a FontDefinition from FontAsset.

## Definition

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

```csharp
public static FontDefinition FromSDFFont(FontAsset f)
```

### Parameters

**** (FontAsset): The SDF font to use to display text.

### Returns

| Type                                                                                       | Description                  |
| ------------------------------------------------------------------------------------------ | ---------------------------- |
| [FontDefinition](/engine/6000.0/script-reference/unityengine/uielements/fontdefinition.md) | A new FontDefinition object. |
