# FontCreateFlags Enum

> Flags for creating fonts.

- Product: Adobe PDF Library 21
- Language: Java
- Version: APDFL21.0.0PlusP1f
- HTML page: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/enum/FontCreateFlags
- Version index: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/llms.txt

**Namespace:** `com::datalogics::PDFL`

## Description

Flags for creating fonts. If you want to subset a font, set both the Embedded and Subset flags

## Values

- `ALL_WIDTHS`: Supply the entire widths table (this affects Type0 fonts only).
- `DEFER_WIDTHS`: Wait to get the widths until later (this affects Type0 fonts only).
- `DO_NOT_EMBED`: Do not embed the font. You cannot set both this and the Subset flags. Nor can you set Embedded.
- `EMBED_OPEN_TYPE`: Embed an OpenType style font subset, if appropriate.
- `EMBEDDED`: Embed the font. Create an embedded font. By itself, this will not subset the font.
- `ENCODE_BY_GID`: Create a CIDFont with identity (GID) encoding.
- `GIDOVERRIDE`: Convert cp to gid with identity embedded.
- `SUBSET`: Subset the font. If you want to subset a font, set both the Embedded and Subset flags. You must call Document.EmbedFonts() to actually subset the font. Both embedding and subsetting a font creates a CFF font.
- `TO_UNICODE`: Create a ToUnicode CMap.
