org.foray.font.format.ttf
Class OTFScript

java.lang.Object
  extended by org.foray.font.format.ttf.OTFScript

public class OTFScript
extends Object

An OpenType Script.


Field Summary
static byte TAG_SIZE
          The size, in bytes, of an OpenType Script tag.
 
Constructor Summary
OTFScript()
          Constructor.
 
Method Summary
 OTFLanguageSystem getDefaultLanguageSystem()
          Returns the default language system for this script.
 OTFLanguageSystem getNamedLanguageSystem(String languageSystemTag)
          Returns the language system for a given tag.
static OTFScript parse(RandomAccessInput raInput, int offset)
          Parses a script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_SIZE

public static final byte TAG_SIZE
The size, in bytes, of an OpenType Script tag.

See Also:
Constant Field Values
Constructor Detail

OTFScript

public OTFScript()
Constructor.

Method Detail

parse

public static OTFScript parse(RandomAccessInput raInput,
                              int offset)
                       throws IOException
Parses a script.

Parameters:
raInput - The input from which the script is being parsed.
offset - The offset in raInput for the start of the script.
Returns:
The parsed script instance.
Throws:
IOException - For I/O errors during parsing.

getDefaultLanguageSystem

public OTFLanguageSystem getDefaultLanguageSystem()
Returns the default language system for this script.

Returns:
The default language system.

getNamedLanguageSystem

public OTFLanguageSystem getNamedLanguageSystem(String languageSystemTag)
Returns the language system for a given tag.

Parameters:
languageSystemTag - The language system tag to be retrieved.
Returns:
The language system for languageSystemTag, or null if that tag is not in this script.


Copyright © 2017. All rights reserved.