---
Product: Aspose.PDF
Platform: java
Page Type: docs
Canonical URL: https://docs.aspose.org/pdf/java/developer-guide/ttf
---

# TrueType Fonts

TrueType font handling in Aspose.PDF FOSS for Java.

## TrueType Fonts in PDF

TrueType (TTF) fonts are embedded in PDF documents to ensure consistent rendering
across viewers. When a font is not embedded, PDF viewers substitute a system font
which may cause text reflow or incorrect character shapes.

## Font Embedding

Aspose.PDF FOSS for Java embeds font data when creating documents that reference
non-standard fonts. For PDF/A compliance, font embedding is mandatory for all fonts
used in the document content.

## Font Subsetting

Font subsetting embeds only the character outlines actually used in the document,
reducing file size while maintaining correct rendering. Subsetting is applied
automatically when the font contains more glyphs than are referenced.

## Standard 14 Fonts

The 14 standard PDF fonts (Helvetica, Times-Roman, Courier, Symbol, ZapfDingbats,
and their variants) do not require embedding because they are guaranteed to be
available in all PDF viewers. They can be referenced by name in `DefaultAppearance`.

## See Also

- [Aspose.PDF for Java — Enterprise Documentation](https://docs.aspose.com/pdf/java/)