Top Description Interfaces Classes
module org.apache.fontbox

Package org.apache.fontbox.ttf.gsub


This package contains utility classes which extract meanigful data from the highly obfuscated GSUB table structures.

Interface Summary

Modifier and TypeInterface and Description
public interface
GlyphArraySplitter

This class splits an array of GlyphIds with a prospective match.

public interface
GsubWorker

This class is responsible for replacing GlyphIDs with new ones according to the GSUB tables.

Class Summary

Modifier and TypeClass and Description
public class
CompoundCharacterTokenizer

Takes in the given text having compound-glyphs to substitute, and splits it into chunks consisting of parts that should be substituted and the ones that can be processed normally.

pack-priv class
DefaultGsubWorker

A default implementation of GsubWorker that actually does not transform the glyphs yet allows to correctly load GSUB table data even from fonts for which a complete glyph substitution is not implemented.

public class
GlyphArraySplitterRegexImpl

This is an in-efficient implementation based on regex, which helps split the array.

public class
GlyphSubstitutionDataExtractor

This class has utility methods to extract meaningful GsubData from the highly obfuscated GSUB Tables.

public class
GsubWorkerFactory

Gets a Language specific instance of a GsubWorker

public class
GsubWorkerForBengali

Bengali-specific implementation of GSUB system

public class
GsubWorkerForDevanagari

Devanagari-specific implementation of GSUB system

public class
GsubWorkerForGujarati

Gujarati-specific implementation of GSUB system.

public class
GsubWorkerForLatin

Latin-specific implementation of GSUB system