Top Description Fields Constructors Methods
org.apache.fontbox.ttf.gsub

public Class GsubWorkerForLatin

extends Object
implements GsubWorker
Class Inheritance
All Implemented Interfaces
org.apache.fontbox.ttf.gsub.GsubWorker
Imports
java.util.ArrayList, .Arrays, .Collections, .List, org.apache.commons.logging.Log, .LogFactory, org.apache.fontbox.ttf.CmapLookup, org.apache.fontbox.ttf.model.GsubData, .ScriptFeature

Latin-specific implementation of GSUB system
Authors
Palash Ray, Tilman Hausherr

Field Summary

Modifier and TypeField and Description
private final CmapLookup
private static final List<String>
FEATURES_IN_ORDER

This sequence is very important.

private final GsubData
private static final Log

Constructor Summary

AccessConstructor and Description
pack-priv
GsubWorkerForLatin(CmapLookup cmapLookup, GsubData gsubData)

Method Summary

Modifier and TypeMethod and Description
private List<Integer>
applyGsubFeature(ScriptFeature scriptFeature, List<Integer> originalGlyphs)

public List<Integer>
applyTransforms(List<Integer>
list of original glyph IDs
originalGlyphIds
)

Implements org.apache.fontbox.ttf.gsub.GsubWorker.applyTransforms.

Applies language-specific transforms including GSUB and any other pre or post-processing necessary for displaying Glyphs correctly.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cmapLookupback to summary
private final CmapLookup cmapLookup
FEATURES_IN_ORDERback to summary
private static final List<String> FEATURES_IN_ORDER

This sequence is very important. This has been taken from https://docs.microsoft.com/en-us/typography/script-development/standard

gsubDataback to summary
private final GsubData gsubData
LOGback to summary
private static final Log LOG

Constructor Detail

GsubWorkerForLatinback to summary
pack-priv GsubWorkerForLatin(CmapLookup cmapLookup, GsubData gsubData)

Method Detail

applyGsubFeatureback to summary
private List<Integer> applyGsubFeature(ScriptFeature scriptFeature, List<Integer> originalGlyphs)
applyTransformsback to summary
public List<Integer> applyTransforms(List<Integer> originalGlyphIds)

Implements org.apache.fontbox.ttf.gsub.GsubWorker.applyTransforms.

Doc from org.apache.fontbox.ttf.gsub.GsubWorker.applyTransforms.

Applies language-specific transforms including GSUB and any other pre or post-processing necessary for displaying Glyphs correctly.

Parameters
originalGlyphIds:List<Integer>

list of original glyph IDs

Returns:List<Integer>

list of transformed glyph IDs

Annotations
@Override