Package org.apache.fontbox.ttf.gsub
This package contains utility classes which extract meanigful data from the highly obfuscated GSUB table structures.
-
Interface Summary Interface Description GlyphArraySplitter This class splits an array of GlyphIds with a prospective match.GsubWorker This class is responsible for replacing GlyphIDs with new ones according to the GSUB tables. -
Class Summary Class Description 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.DefaultGsubWorker A default implementation ofGsubWorkerthat 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.GlyphArraySplitterRegexImpl This is an in-efficient implementation based on regex, which helps split the array.GlyphSubstitutionDataExtractor This class has utility methods to extract meaningful GsubData from the highly obfuscated GSUB Tables.GlyphSubstitutionDataExtractor.ScriptTableDetails GsubWorkerFactory Gets aLanguagespecific instance of aGsubWorkerGsubWorkerForBengali Bengali-specific implementation of GSUB systemGsubWorkerForBengali.BeforeAndAfterSpanComponent Models characters like O-kar (ো) and OU-kar (ৌ).GsubWorkerForDevanagari Devanagari-specific implementation of GSUB systemGsubWorkerForGujarati Gujarati-specific implementation of GSUB system.GsubWorkerForLatin Latin-specific implementation of GSUB system