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

public final Enum Language

extends Enum<Language>
Class Inheritance
Imports
org.apache.fontbox.ttf.gsub.GsubWorker, .GsubWorkerFactory

Enumerates the languages supported for GSUB operation. In order to support a new language, you need to add it here and then implement the GsubWorker for the given language and return the same from the GsubWorkerFactory#getGsubWorker(org.apache.fontbox.ttf.CmapLookup, GsubData)
Author
Palash Ray

Field Summary

Modifier and TypeField and Description
public static final Language
public static final Language
public static final Language
public static final Language
private final String[]
public static final Language
UNSPECIFIED

An entry explicitly denoting the absence of any concrete language.

Constructor Summary

AccessConstructor and Description
private
Language(String[] scriptNames)

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

an array containing all supported languages
getScriptNames
()

ScriptNames form the basis of identification of the language.

public static Language
public static Language[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BENGALIback to summary
public static final Language BENGALI
DEVANAGARIback to summary
public static final Language DEVANAGARI
GUJARATIback to summary
public static final Language GUJARATI
LATINback to summary
public static final Language LATIN
scriptNamesback to summary
private final String[] scriptNames
UNSPECIFIEDback to summary
public static final Language UNSPECIFIED

An entry explicitly denoting the absence of any concrete language. May be useful when no actual glyph substitution is required but only the content of GSUB table is of interest. Must be the last one as it is not a language per se.

Constructor Detail

Languageback to summary
private Language(String[] scriptNames)

Method Detail

getScriptNamesback to summary
public String[] getScriptNames()

ScriptNames form the basis of identification of the language. This method gets the ScriptNames that the given Language supports, in the order of preference, Index 0 being the most preferred. These names should match the script record in the GSUB system.

Returns:String[]

an array containing all supported languages

valueOfback to summary
public static Language valueOf(String name)
valuesback to summary
public static Language[] values()