File: Positioning.py

package info (click to toggle)
python-fontfeatures 1.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,096 kB
  • sloc: python: 9,112; makefile: 22
file content (11 lines) | stat: -rw-r--r-- 330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
def shaper_inputs(self):
    return self.glyphs


def _do_apply(self, buf, ix, namedclasses={}):
    coverage = buf[ix : ix + len(self.glyphs)]
    for glyph, vr in zip(coverage, self.valuerecords):
        glyph.add_position(vr)
    if not self.valuerecords[-1]:  # A special case!
        return
    return len(self.glyphs) - 1