iText 9.8.0 API
iText.IO.Font.Otf.OpenTableLookup Class Referenceabstract

A Lookup table defines the specific conditions, type, and results of substitution or positioning actions that are used to implement a feature. More...

Inheritance diagram for iText.IO.Font.Otf.OpenTableLookup:
iText.IO.Font.Otf.GposLookupType1 iText.IO.Font.Otf.GposLookupType2 iText.IO.Font.Otf.GposLookupType4 iText.IO.Font.Otf.GposLookupType5 iText.IO.Font.Otf.GposLookupType6 iText.IO.Font.Otf.GposLookupType7 iText.IO.Font.Otf.GsubLookupType1 iText.IO.Font.Otf.GsubLookupType2 iText.IO.Font.Otf.GsubLookupType3 iText.IO.Font.Otf.GsubLookupType4 iText.IO.Font.Otf.GsubLookupType5

Classes

class   GlyphIndexer
  Utility class to iterate over GlyphLine. More...
 

Public Member Functions

virtual int  GetLookupFlag ()
  Gets the lookup flag. More...
 
abstract bool  TransformOne (GlyphLine line)
  Apply transformation to only one glyph from the glyph line. More...
 
virtual bool  TransformLine (GlyphLine line)
  Apply transformation to the glyph line. More...
 
virtual bool  HasSubstitution (int index)
  Checks whether there is a substitution (replacement) for the specified index in this lookup table. More...
 
virtual int  GetIndexInLookupList ()
  Gets this lookup table index in the LookupList. More...
 
virtual void  SetIndexInLookupList (int indexInLookupList)
  Sets lookup table index in the LookupList. More...
 

Package Functions

  OpenTableLookup (OpenTypeFontTableReader openReader, int lookupFlag, int[] subTableLocations)
  Instantiates a new instance of OpenTableLookup. More...
 
virtual void  ReadSubTables ()
  Reads subtables. More...
 
abstract void  ReadSubTable (int subTableLocation)
  Reads subtable from the specified location. More...
 

Package Attributes

int  lookupFlag
  Indicates to a text-processing client certain processing options to use when substituting or positioning glyphs. More...
 
int[]  subTableLocations
  Subtables locations. More...
 
OpenTypeFontTableReader  openReader
  OpenType font table reader. More...
 

Detailed Description

A Lookup table defines the specific conditions, type, and results of substitution or positioning actions that are used to implement a feature.

A Lookup table defines the specific conditions, type, and results of substitution or positioning actions that are used to implement a feature.

The data describing the actions of a lookup are contained in one or more lookup subtables. Different lookup types support different types of operation; for example, positioning adjustment on a single glyph versus positioning adjustments on pairs of glyphs.

For more information see Lookup table

Constructor & Destructor Documentation

◆ OpenTableLookup()

iText.IO.Font.Otf.OpenTableLookup.OpenTableLookup ( OpenTypeFontTableReader  openReader,
int  lookupFlag,
int[]  subTableLocations 
)
inlinepackage

Instantiates a new instance of OpenTableLookup.

Parameters
openReader the OpenType font table reader
lookupFlag specifies processing options, e.g. whether to skip base glyphs, marks or ligatures during glyph substitution or positioning. See Lookup table
subTableLocations the subtables locations

Member Function Documentation

◆ GetIndexInLookupList()

virtual int iText.IO.Font.Otf.OpenTableLookup.GetIndexInLookupList ( )
inlinevirtual

Gets this lookup table index in the LookupList.

Returns
the table index in the LookupList

◆ GetLookupFlag()

virtual int iText.IO.Font.Otf.OpenTableLookup.GetLookupFlag ( )
inlinevirtual

Gets the lookup flag.

Gets the lookup flag.

The flag indicates to a text-processing client certain processing options to use when substituting or positioning glyphs. e.g. whether to skip base glyphs, marks or ligatures during glyph substitution or positioning. See Lookup table

Returns
the lookup flag

◆ HasSubstitution()

virtual bool iText.IO.Font.Otf.OpenTableLookup.HasSubstitution ( int  index )
inlinevirtual

Checks whether there is a substitution (replacement) for the specified index in this lookup table.

Parameters
index the index to check for a substitution
Returns

true if there is substitution, false otherwise

Reimplemented in iText.IO.Font.Otf.GsubLookupType1, iText.IO.Font.Otf.GsubLookupType2, and iText.IO.Font.Otf.GsubLookupType3.

◆ ReadSubTable()

◆ ReadSubTables()

virtual void iText.IO.Font.Otf.OpenTableLookup.ReadSubTables ( )
inlinepackagevirtual

Reads subtables.

◆ SetIndexInLookupList()

virtual void iText.IO.Font.Otf.OpenTableLookup.SetIndexInLookupList ( int  indexInLookupList )
inlinevirtual

Sets lookup table index in the LookupList.

Parameters
indexInLookupList the table index in the LookupList

◆ TransformLine()

virtual bool iText.IO.Font.Otf.OpenTableLookup.TransformLine ( GlyphLine  line )
inlinevirtual

Apply transformation to the glyph line.

Parameters
line the glyph line to transform
Returns

true if transformation was applied, false otherwise

◆ TransformOne()

abstract bool iText.IO.Font.Otf.OpenTableLookup.TransformOne ( GlyphLine  line )
pure virtual

Member Data Documentation

◆ lookupFlag

int iText.IO.Font.Otf.OpenTableLookup.lookupFlag
package

Indicates to a text-processing client certain processing options to use when substituting or positioning glyphs.

◆ openReader

OpenTypeFontTableReader iText.IO.Font.Otf.OpenTableLookup.openReader
package

OpenType font table reader.

◆ subTableLocations

int [] iText.IO.Font.Otf.OpenTableLookup.subTableLocations
package

Subtables locations.