all files / fontkit/src/opentype/shapers/ UniversalShaper.coffee

0% Statements 0/14
100% Branches 0/0
0% Functions 0/4
0% Lines 0/14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                                       
DefaultShaper = require './DefaultShaper'
GlyphInfo = require '../GlyphInfo'
 
PREPROCESSING_FEATURES = ['locl', 'ccmp', 'nukt', 'akhn']
BASIC_FEATURES = ['rkrf', 'abvf', 'blwf', 'half', 'pstf', 'vatu', 'cjct']
# ARABIC_FEATURES = ['isol', 'medi', 'fina', 'med2', 'fin2', 'fin3']
OTHER_FEATURES = ['abvs', 'blws', 'haln', 'pres', 'psts', 'dist', 'abvm', 'blwm']
 
class UniversalShaper extends DefaultShaper
  @assignFeatures: (glyphs, script, plan) ->
    plan.add @setupSyllables
    plan.add PREPROCESSING_FEATURES
    
    plan.add 'rphf', false
    plan.add 'pref', false
    
    plan.add BASIC_FEATURES
    plan.add @reorder
    
    plan.add OTHER_FEATURES
    
  @setupSyllables: (glyphs) =>
    
  @reorder: (glyphs) =>
    
  
module.exports = UniversalShaper