# TXSheetControlFontEndpoints.MapTXSheetControlFonts Method

> TXSheetControlFontEndpoints.MapTXSheetControlFonts method in the .NET API, with 2 overloads, the parameters endpoints and prefix and a C# example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Namespace:** `TXTextControl.TXSheetControl.AspNetCore`
- **Package:** `TXTextControl.TXSheetControl.AspNetCore` (assembly `TXTextControl.TXSheetControl.AspNetCore.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.AspNetCore > TXSheetControlFontEndpoints > TXSheetControlFontEndpoints.MapTXSheetControlFonts Method
- **761 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolfontendpoints/maptxsheetcontrolfonts-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolfontendpoints/maptxsheetcontrolfonts-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolfontendpoints/maptxsheetcontrolfonts-method/llms-full.txt

---

Maps the traditional /sheet-fonts URLs to the bundled static catalog and font files. No backend engine or DI registration is needed.

### Syntax

#### Overload 1

```csharp
public static RouteGroupBuilder MapTXSheetControlFonts(IEndpointRouteBuilder endpoints)
```

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `endpoints` | `IEndpointRouteBuilder` | No | Application endpoint builder. |

Return value: `RouteGroupBuilder`. Routes on which the host may apply authorization policies.

#### Overload 2

```csharp
public static RouteGroupBuilder MapTXSheetControlFonts(IEndpointRouteBuilder endpoints, string prefix)
```

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `endpoints` | `IEndpointRouteBuilder` | No | Application endpoint builder. |
| `prefix` | `string` | No | Absolute URL prefix, without a trailing slash or route parameters. |

Return value: `RouteGroupBuilder`. The compatibility route group.

### Examples

Configure a complete Razor Pages application. The editor tag helper includes its browser assets automatically; the optional font routes provide compatibility URLs for the bundled static catalog.

```csharp
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using TXTextControl.TXSheetControl.AspNetCore;

var builder = WebApplication.CreateBuilder(Array.Empty<string>());
builder.Services.AddRazorPages();

var app = builder.Build();
app.UseTXSheetControlAssets();
app.MapTXSheetControlFonts();
app.MapRazorPages();
app.Run();
```

### Remarks

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

### See Also

- [TXSheetControlFontEndpoints Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolfontendpoints/llms-full.txt)
- [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/llms-full.txt)

---

## Nearby

- **Previous:** [TXSheetControlFontEndpoints Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolfontendpoints/llms-full.txt)
- **Next:** [TXSheetControlOptions Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/llms-full.txt)
