Class GsubWorkerForGujarati

  • All Implemented Interfaces:
    GsubWorker

    public class GsubWorkerForGujarati
    extends java.lang.Object
    implements GsubWorker
    Gujarati-specific implementation of GSUB system.
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • REPH_CHARS

        private static final char[] REPH_CHARS
      • BEFORE_REPH_CHARS

        private static final char[] BEFORE_REPH_CHARS
      • gsubData

        private final GsubData gsubData
      • rephGlyphIds

        private final java.util.List<java.lang.Integer> rephGlyphIds
      • beforeRephGlyphIds

        private final java.util.List<java.lang.Integer> beforeRephGlyphIds
      • beforeHalfGlyphIds

        private final java.util.List<java.lang.Integer> beforeHalfGlyphIds
    • Constructor Detail

      • GsubWorkerForGujarati

        GsubWorkerForGujarati​(CmapLookup cmapLookup,
                              GsubData gsubData)
    • Method Detail

      • applyTransforms

        public java.util.List<java.lang.Integer> applyTransforms​(java.util.List<java.lang.Integer> originalGlyphIds)
        Description copied from interface: GsubWorker
        Applies language-specific transforms including GSUB and any other pre or post-processing necessary for displaying Glyphs correctly.
        Specified by:
        applyTransforms in interface GsubWorker
        Parameters:
        originalGlyphIds - list of original glyph IDs
        Returns:
        list of transformed glyph IDs
      • applyRKRFFeature

        private java.util.List<java.lang.Integer> applyRKRFFeature​(ScriptFeature rkrfGlyphsForSubstitution,
                                                                   java.util.List<java.lang.Integer> originalGlyphIds)
      • repositionGlyphs

        private java.util.List<java.lang.Integer> repositionGlyphs​(java.util.List<java.lang.Integer> originalGlyphIds)
      • adjustRephPosition

        private java.util.List<java.lang.Integer> adjustRephPosition​(java.util.List<java.lang.Integer> originalGlyphIds)
      • applyGsubFeature

        private java.util.List<java.lang.Integer> applyGsubFeature​(ScriptFeature scriptFeature,
                                                                   java.util.List<java.lang.Integer> originalGlyphs)
      • getBeforeHalfGlyphIds

        private java.util.List<java.lang.Integer> getBeforeHalfGlyphIds()
      • getRephGlyphIds

        private java.util.List<java.lang.Integer> getRephGlyphIds()
      • getbeforeRephGlyphIds

        private java.util.List<java.lang.Integer> getbeforeRephGlyphIds()
      • getGlyphId

        private java.lang.Integer getGlyphId​(char character)