Top Description Fields Constructors Methods
org.apache.fontbox.ttf

public final Class WGL4Names

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map

Windows Glyph List 4 (WGL4) names for Mac glyphs.

Field Summary

Modifier and TypeField and Description
private static final String[]
MAC_GLYPH_NAMES

The 258 standard mac glyph names a used in 'post' format 1 and 2.

private static final Map<String, Integer>
MAC_GLYPH_NAMES_INDICES

The indices of the standard mac glyph names.

public static final int
NUMBER_OF_MAC_GLYPHS

The number of standard mac glyph names.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String[]

Returns:

the array with all glyph names
getAllNames
()

Returns a new array with all glyph names.

public static Integer

Returns:

the index of the given glyph name or null for an invalid glyph name
getGlyphIndex
(String
the name of the glyph
name
)

Returns the index of the glyph with the given name.

public static String

Returns:

the name of the glyph at the given index or null fo an invalid glyph index
getGlyphName
(int
the index of the glyph
index
)

Returns the name of the glyph at the given index.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAC_GLYPH_NAMESback to summary
private static final String[] MAC_GLYPH_NAMES

The 258 standard mac glyph names a used in 'post' format 1 and 2.

MAC_GLYPH_NAMES_INDICESback to summary
private static final Map<String, Integer> MAC_GLYPH_NAMES_INDICES

The indices of the standard mac glyph names.

NUMBER_OF_MAC_GLYPHSback to summary
public static final int NUMBER_OF_MAC_GLYPHS

The number of standard mac glyph names.

Constructor Detail

WGL4Namesback to summary
private WGL4Names()

Method Detail

getAllNamesback to summary
public static String[] getAllNames()

Returns a new array with all glyph names.

Returns:String[]

the array with all glyph names

getGlyphIndexback to summary
public static Integer getGlyphIndex(String name)

Returns the index of the glyph with the given name.

Parameters
name:String

the name of the glyph

Returns:Integer

the index of the given glyph name or null for an invalid glyph name

getGlyphNameback to summary
public static String getGlyphName(int index)

Returns the name of the glyph at the given index.

Parameters
index:int

the index of the glyph

Returns:String

the name of the glyph at the given index or null fo an invalid glyph index