# Fonts and Layout

> Fix fonts that don't load in the browser or differ in PDF output: font catalog requests, TrueType faces, FontDirectory, refreshing fonts and AutoFit layout.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Sheet Control > Troubleshooting > Fonts and Layout
- **786 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/troubleshooting/fonts/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/troubleshooting/fonts/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/troubleshooting/fonts/llms-full.txt

---

A font name in a workbook does not prove that the matching face, the font file for one weight and style, is deployed or loaded. When the faces or their metrics differ, the browser display, AutoFit, chart labels and PDF output can differ too. Start from where you see the difference: in the browser, in the PDF or in the geometry of the worksheet.

### The Browser Doesn't Load the Fonts

The editor loads its fonts through a font catalog, which lists the font families and their faces with URLs. [ready](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/ready-property/llms-full.txt) resolves after the initial document fonts are loaded and rejects on failure. Check the browser side in this order:

1. Await `ready` and handle its rejection.
2. Inspect the catalog URL, its HTTP status, the final redirect location and the relative face URLs. Relative face URLs resolve against the final location of the catalog response.
3. Confirm that the static files are deployed and that the MIME and CORS rules permit font requests.
4. Check that the actual family, weight and style names match the document.

### Instructions Ask for a Backend Font Service

The ASP.NET Core editor defaults to its own static catalog. A backend font service, which older instructions require, is not a prerequisite for the current editor package.

For a custom catalog, set the public option for it deliberately: [FontCatalogURL](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/fontcatalogurl-property/llms-full.txt) of `TXSheetControlOptions` in Razor, [fontCatalogURL](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/spreadsheetoptions/fontcatalogurl-property/llms-full.txt) in JavaScript and Angular. [Custom Fonts](https://docs.textcontrol.com/tx-sheet-control/deployment/custom-fonts/llms-full.txt) shows how to host such a catalog.

### Fonts Differ in the PDF

Check the fonts for document output:

1. Keep the supported TrueType document faces available, including the regular, bold and italic variants the report uses.
2. Use TrueType faces in the catalog. The default HTTP catalog accepts TrueType faces, and it rejects an entry that has WOFF2 faces only.
3. For advanced explicit font descriptors, such as [FontFaceDefinition](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/fontfacedefinition/llms-full.txt), provide supported document font data separately where required.
4. Check the discovery warnings and the glyph coverage.

### The Server Doesn't Use the Browser's Fonts

The server's trusted font directory is not the browser's font URL. The two can contain matching bytes, but you configure them separately: the directory with [FontDirectory](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/fontdirectory-property/llms-full.txt) of `ServerSheetControlOptions` in .NET or [fontDirectory](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontroloptions/fontdirectory-property/llms-full.txt) in Node.js, the URL with the catalog option of the editor.

After you change the fonts, refresh the server catalog where supported, with [RefreshFontsAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrol/refreshfontsasync-method/llms-full.txt) in .NET or [refreshFonts](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/serversheetcontrol/refreshfonts-method/llms-full.txt) in Node.js.

### Wrapping, Row Heights or Page Counts Differ

Font substitution affects wrapping, widths, row heights and page counts, but it is not the only cause. Before you blame fonts alone, compare the explicit cell sizes, number formats, locale, print area, paper and scale.

Await font-sensitive AutoFit, and validate the final PDF, including non-English characters.

### Related Pages

- [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/llms-full.txt): the included catalogs, font initialization and the faces for the browser and for output.
- [Custom Fonts](https://docs.textcontrol.com/tx-sheet-control/deployment/custom-fonts/llms-full.txt): extra fonts in a browser catalog and in the backend font directory.
- [Page Layout and Print Settings](https://docs.textcontrol.com/tx-sheet-control/pdf/page-layout/llms-full.txt): paper, margins, print area and scaling.
- [Common Issues](https://docs.textcontrol.com/tx-sheet-control/troubleshooting/common-issues/llms-full.txt): problems at other stages, from package restore to export.

---

## Nearby

- **Previous:** [Common Issues](https://docs.textcontrol.com/tx-sheet-control/troubleshooting/common-issues/llms-full.txt)
- **Next:** [Dashboards](https://docs.textcontrol.com/tx-sheet-control/troubleshooting/dashboards/llms-full.txt)
