Package org.apache.fontbox.ttf.gsub
Class GsubWorkerForGujarati
java.lang.Object
org.apache.fontbox.ttf.gsub.GsubWorkerForGujarati
- All Implemented Interfaces:
GsubWorker
Gujarati-specific implementation of GSUB system.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final charprivate static final char[]private final CmapLookupThis sequence is very important.private final GsubDataprivate static final org.apache.commons.logging.Logprivate static final char[]private static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustRephPosition(List<Integer> originalGlyphIds) applyGsubFeature(ScriptFeature scriptFeature, List<Integer> originalGlyphs) applyRKRFFeature(ScriptFeature rkrfGlyphsForSubstitution, List<Integer> originalGlyphIds) 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) repositionGlyphs(List<Integer> originalGlyphIds)
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
RKRF_FEATURE
- See Also:
-
VATU_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/gujarati -
REPH_CHARS
private static final char[] REPH_CHARS -
BEFORE_REPH_CHARS
private static final char[] BEFORE_REPH_CHARS -
BEFORE_HALF_CHAR
private static final char BEFORE_HALF_CHAR- See Also:
-
cmapLookup
-
gsubData
-
rephGlyphIds
-
beforeRephGlyphIds
-
beforeHalfGlyphIds
-
-
Constructor Details
-
GsubWorkerForGujarati
GsubWorkerForGujarati(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
-
applyRKRFFeature
private List<Integer> applyRKRFFeature(ScriptFeature rkrfGlyphsForSubstitution, List<Integer> originalGlyphIds) -
repositionGlyphs
-
adjustRephPosition
-
applyGsubFeature
-
getBeforeHalfGlyphIds
-
getRephGlyphIds
-
getbeforeRephGlyphIds
-
getGlyphId
-