Package org.apache.fontbox.ttf.gsub
Class GsubWorkerForBengali
java.lang.Object
org.apache.fontbox.ttf.gsub.GsubWorkerForBengali
- All Implemented Interfaces:
GsubWorker
Bengali-specific implementation of GSUB system
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classModels characters like O-kar (ো) and OU-kar (ৌ). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final GsubWorkerForBengali.BeforeAndAfterSpanComponent[]private static final char[]private final Map<Integer, GsubWorkerForBengali.BeforeAndAfterSpanComponent> private final CmapLookupThis sequence is very important.private final GsubDataprivate static final Stringprivate static final org.apache.commons.logging.Log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyGsubFeature(ScriptFeature scriptFeature, List<Integer> originalGlyphs) applyTransforms(List<Integer> originalGlyphIds) Applies language-specific transforms including GSUB and any other pre or post-processing necessary for displaying Glyphs correctly.private IntegergetGlyphId(char character) repositionBeforeAndAfterSpanGlyphIds(List<Integer> originalGlyphIds) repositionBeforeHalfGlyphIds(List<Integer> originalGlyphIds) repositionGlyphs(List<Integer> originalGlyphIds)
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
INIT_FEATURE
- See Also:
-
FEATURES_IN_ORDER
This sequence is very important. This has been taken from https://docs.microsoft.com/en-us/typography/script-development/bengali -
BEFORE_HALF_CHARS
private static final char[] BEFORE_HALF_CHARS -
BEFORE_AND_AFTER_SPAN_CHARS
-
cmapLookup
-
gsubData
-
beforeHalfGlyphIds
-
beforeAndAfterSpanGlyphIds
private final Map<Integer,GsubWorkerForBengali.BeforeAndAfterSpanComponent> beforeAndAfterSpanGlyphIds
-
-
Constructor Details
-
GsubWorkerForBengali
GsubWorkerForBengali(CmapLookup cmapLookup, GsubData gsubData)
-
-
Method Details
-
applyTransforms
Description copied from interface:GsubWorkerApplies language-specific transforms including GSUB and any other pre or post-processing necessary for displaying Glyphs correctly.- Specified by:
applyTransformsin interfaceGsubWorker- Parameters:
originalGlyphIds- list of original glyph IDs- Returns:
- list of transformed glyph IDs
-
repositionGlyphs
-
repositionBeforeHalfGlyphIds
-
repositionBeforeAndAfterSpanGlyphIds
-
applyGsubFeature
-
getBeforeHalfGlyphIds
-
getGlyphId
-
getBeforeAndAfterSpanGlyphIds
private Map<Integer,GsubWorkerForBengali.BeforeAndAfterSpanComponent> getBeforeAndAfterSpanGlyphIds()
-