added explicit line patterns as an expensive replacement for postscript patterns
[PyX.git] / pyx / font / metric.py
blob76988c47facaf5e6053bcef824276213b06f0bce
1 class metric:
3 def width_ds(self, glyphname):
4 raise NotImplementedError()
6 def width_pt(self, glyphnames, size):
7 raise NotImplementedError()
9 def height_pt(self, glyphnames, size):
10 raise NotImplementedError()
12 def depth_pt(self, glyphnames, size):
13 raise NotImplementedError()
15 def resolveligatures(self, glyphnames):
16 return glyphnames
18 def resolvekernings(self, glyphnames, size=None):
19 result = [None]*(2*len(glyphnames)-1)
20 for i, glyphname in enumerate(glyphnames):
21 result[2*i] = glyphname
22 return result