# FontFaceDefinition Class

> FontFaceDefinition class in the TX Sheet Control .NET API: A supported TrueType face with the same content-versioned URL and bytes as server rendering.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > FontFaceDefinition Class
- **1023 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/llms-full.txt

---

A supported TrueType face with the same content-versioned URL and bytes as server rendering.

### Syntax

```csharp
public class FontFaceDefinition
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [Format](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/format-property/llms-full.txt) | TrueType format identifier used by the browser FontFace loader. |
| [Style](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/style-property/llms-full.txt) | Either normal or italic. |
| [Url](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/url-property/llms-full.txt) | Relative URL resolved against the public catalog endpoint. Does not disclose server paths. |
| [Weight](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/weight-property/llms-full.txt) | OpenType default weight, from 1 to 1000. |

### Examples

Obtain FontFaceDefinition from a real document operation. Return the detached result to the calling report, API response or application.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<FontFaceDefinition> ReadReportFontFaceDefinitionAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });

    var result = (await control.GetFontCatalogAsync()).Families.First().Faces.First();
    return result;
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/llms-full.txt)

---

## In This Section

- [FontFaceDefinition Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/constructor/llms-full.txt): FontFaceDefinition constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [FontFaceDefinition.Format Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/format-property/llms-full.txt): FontFaceDefinition.Format property in the TX Sheet Control .NET API: TrueType format identifier used by the browser FontFace loader.
- [FontFaceDefinition.Style Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/style-property/llms-full.txt): FontFaceDefinition.Style property in the TX Sheet Control .NET API: Either normal or italic. Covers its type string and a C# example.
- [FontFaceDefinition.Url Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/url-property/llms-full.txt): FontFaceDefinition.Url property in the TX Sheet Control .NET API: Relative URL resolved against the public catalog endpoint. Does not disclose server paths.
- [FontFaceDefinition.Weight Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/weight-property/llms-full.txt): FontFaceDefinition.Weight property in the TX Sheet Control .NET API: OpenType default weight, from 1 to 1000. Covers its type int and a C# example.

---

## Nearby

- **Previous:** [FontCatalog.Warnings Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontcatalog/warnings-property/llms-full.txt)
- **Next:** [FontFaceDefinition Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/constructor/llms-full.txt)
