# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

Deprecated Classes
Class and Description
org.apache.fontbox.cff.Type1FontUtil This class isn't used and will be removed in 4.0.0.

Deprecated Fields
Field and Description
org.apache.fontbox.ttf.NameRecord.LANGUGAE_MACINTOSH_ENGLISH use `NameRecord.LANGUAGE_MACINTOSH_ENGLISH` instead.
org.apache.fontbox.ttf.NameRecord.LANGUGAE_UNICODE use `NameRecord.LANGUAGE_UNICODE` instead.
org.apache.fontbox.ttf.NameRecord.LANGUGAE_WINDOWS_EN_US use `NameRecord.LANGUAGE_WINDOWS_EN_US` instead.

Deprecated Methods
Method and Description
org.apache.fontbox.ttf.CmapSubtable.getCharacterCode(int) the mapping may be ambiguous, see `CmapSubtable.getCharCodes(int)`. The first mapped value is returned by default.
org.apache.fontbox.cmap.CodespaceRange.getEnd() to be removed in the next major release
org.apache.fontbox.ttf.GlyphTable.getGlyphs() use `GlyphTable.getGlyph(int)` instead. This will be removed in 3.0. If you need this method, please create an issue in JIRA.
org.apache.fontbox.cmap.CodespaceRange.getStart() to be removed in the next major release
org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmap() Use `TrueTypeFont.getUnicodeCmapLookup()` instead
org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmap(boolean) Use `TrueTypeFont.getUnicodeCmapLookup(boolean)` instead

Deprecated Constructors
Constructor and Description
org.apache.fontbox.cmap.CodespaceRange() to be removed in the next major release.