# Embedded Fonts

To match the content appearance in the browser, embed the same fonts in the exported PDF document.

> The PDF Export module does not support right-to-left (RTL) scripts such as Arabic or Hebrew.

## Basic Usage

To embed the fonts in the PDF document:

1. Declare a [font face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) using the `@font-face` rule.
2. Host the TrueType fonts (`.ttf`) in the domain of the application or use a CDN.
3. Apply the font family to the `kendo-pdf-export` element in your component styles.

> * Use the same font to style the content in the browser and in the PDF export.
> * The fonts that you use may require a separate license for their embedding in PDF documents.

The following example demonstrates how to embed the DejaVu Sans font, which supports a wide range of special characters including accented letters, mathematical symbols, currency symbols, and international characters.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/pdf-export/embedding-fonts/source.txt)

## Character-Specific Fonts

When your content includes special characters or multiple languages, use fonts that support the required character sets. The CSS [`unicode-range`](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range) descriptor allows you to specify which Unicode characters a font supports, enabling the browser to load only the necessary fonts.

You can declare multiple `@font-face` rules with different fonts for specific character ranges:

```css
@font-face {
  font-family: 'CustomFont';
  src: url('path/to/latin-font.ttf') format('truetype');
  unicode-range: U+0000-00FF; /* Latin characters */
}

@font-face {
  font-family: 'CustomFont';
  src: url('path/to/cyrillic-font.ttf') format('truetype');
  unicode-range: U+0400-04FF; /* Cyrillic characters */
}

@font-face {
  font-family: 'CustomFont';
  src: url('path/to/arabic-font.ttf') format('truetype');
  unicode-range: U+0600-06FF; /* Arabic characters */
}
```

Alternatively, use a comprehensive font like DejaVu Sans, Liberation Sans, or Noto Sans that supports multiple scripts and character sets in a single font file. This approach simplifies font management and ensures consistent rendering across different character types.

## Advanced Scenarios

For more advanced scenarios on font embedding, refer to the article on [embedding fonts](https://www.telerik.com/kendo-angular-ui/components/drawing/pdf-output/embedded-fonts) from the low-level Drawing library.

## Suggested Links

* [Embedded Fonts by the Drawing Library](https://www.telerik.com/kendo-angular-ui/components/drawing/pdf-output/embedded-fonts)
* [API Reference of the Drawing Library](https://www.telerik.com/kendo-angular-ui/components/drawing/api)
* [PDF Options by the Drawing Library](https://www.telerik.com/kendo-angular-ui/components/drawing/api/pdf/pdfoptions)
