|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.gps.XtfScriptList
public class XtfScriptList
ScriptList.
ScriptList table
| Type | Name | Description |
| uint16 | ScriptCount | Number of ScriptRecords |
| struct | ScriptRecord [ScriptCount] |
Array of ScriptRecords -listed alphabetically by ScriptTag |
ScriptRecord
| Type | Name | Description |
| Tag | ScriptTag | 4-byte ScriptTag identifier |
| Offset | Script | Offset to Script table-from beginning of ScriptList |
Script Table and Language System Record
A Script table identifies each language system that defines how to use the
glyphs in a script for a particular language. It also references a default
language system that defines how to use the script's glyphs in the absence of
language-specific knowledge.
A Script table begins with an offset to
the Default Language System table (DefaultLangSys), which defines the set of
features that regulate the default behavior of the script. Next, Language
System Count (LangSysCount) defines the number of language systems (excluding
the DefaultLangSys) that use the script. In addition, an array of Language
System Records (LangSysRecord) defines each language system (excluding the
default) with an identification tag (LangSysTag) and an offset to a Language
System table (LangSys). The LangSysRecord array stores the records
alphabetically by LangSysTag.
If no language-specific script behavior
is defined, the LangSysCount is set to zero (0), and no LangSysRecords are
allocated.
ScriptList table
| Type | Name | Description |
| uint16 | ScriptCount | Number of ScriptRecords |
| struct | ScriptRecord [ScriptCount] |
Array of ScriptRecords -listed alphabetically by ScriptTag |
| Nested Class Summary | |
|---|---|
class |
XtfScriptList.LangSys
The class for a langsys. |
class |
XtfScriptList.LangSysRecord
The class for a langsysrecord. |
class |
XtfScriptList.Record
The class for a Record. |
class |
XtfScriptList.Script
Script |
| Constructor Summary | |
|---|---|
XtfScriptList(RandomAccessR rar,
int offset,
AbstractXtfSFLTable gsub)
Create a new object |
|
| Method Summary | |
|---|---|
XtfScriptList.LangSys |
findLangSys(ScriptTag tag,
LanguageSystemTag language)
Find the LangSys in a script or null, if not found. |
XtfScriptList.Script |
findScript(ScriptTag tag)
Find a script. |
int |
getCount()
Returns the scriptcount |
XtfScriptList.Record |
getRecord(int i)
Returns the script record. |
java.lang.String |
getRecordTag(int idx)
Returns the record tag name. |
static java.lang.String |
tag2String(int tag)
Convert the tag value to a string. |
java.lang.String |
toString()
Returns the info for this class |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XtfScriptList(RandomAccessR rar,
int offset,
AbstractXtfSFLTable gsub)
throws java.io.IOException
rar - inputoffset - offsetgsub - The gsub table.
java.io.IOException - if an IO-error occurs| Method Detail |
|---|
public static java.lang.String tag2String(int tag)
tag - The tag as int value.
public XtfScriptList.LangSys findLangSys(ScriptTag tag,
LanguageSystemTag language)
null, if not found.
tag - The Tag for the script.language - The language.
null, if not
found.public XtfScriptList.Script findScript(ScriptTag tag)
If no one is found, the 'DFLT' script is returned or null,
if the default script not exists.
tag - The tag for the script
public int getCount()
public XtfScriptList.Record getRecord(int i)
i - the number
public java.lang.String getRecordTag(int idx)
idx - The index.
public java.lang.String toString()
toString in class java.lang.Object
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writeXML in interface XMLWriterConvertiblewriter - the XML-Writer
java.io.IOException - if an IO-error occurs.XMLWriterConvertible.writeXML(org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||