# FontFamilyDefinition Class

> FontFamilyDefinition class in the TX Sheet Control .NET API: A selectable family named by its OpenType metadata, independent of filenames.

- **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 > FontFamilyDefinition Class
- **1008 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/llms-full.txt

---

A selectable family named by its OpenType metadata, independent of filenames.

### Syntax

```csharp
public class FontFamilyDefinition
```

### Members

#### Constructors

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

#### Properties

| Property | Description |
|---|---|
| [DisplayName](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/displayname-property/llms-full.txt) | Family label shown in the browser font picker. |
| [Faces](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/faces-property/llms-full.txt) | Available file-backed weight and italic variants. |
| [Fallback](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/fallback-property/llms-full.txt) | Generic CSS family used while the font is loading. |
| [Family](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/family-property/llms-full.txt) | Canonical OpenType family name stored in workbook formatting. |

### Examples

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

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<FontFamilyDefinition> ReadReportFontFamilyDefinitionAsync(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();
    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

- [FontFamilyDefinition Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/constructor/llms-full.txt): FontFamilyDefinition constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [FontFamilyDefinition.DisplayName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/displayname-property/llms-full.txt): FontFamilyDefinition.DisplayName property in the TX Sheet Control .NET API: Family label shown in the browser font picker.
- [FontFamilyDefinition.Faces Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/faces-property/llms-full.txt): FontFamilyDefinition.Faces property in the TX Sheet Control .NET API: Available file-backed weight and italic variants. Includes the syntax and a C# example.
- [FontFamilyDefinition.Fallback Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/fallback-property/llms-full.txt): FontFamilyDefinition.Fallback property in the TX Sheet Control .NET API: Generic CSS family used while the font is loading.
- [FontFamilyDefinition.Family Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfamilydefinition/family-property/llms-full.txt): FontFamilyDefinition.Family property in the TX Sheet Control .NET API: Canonical OpenType family name stored in workbook formatting.

---

## Nearby

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