Lines Matching refs:rest
167 rest = line[pos:].strip()
171 self.parsechar(rest)
173 self.parsekernpair(rest)
175 self.parsecomposite(rest)
177 self.parseattr(word, rest)
179 def parsechar(self, rest): argument
180 m = charRE.match(rest)
182 raise error("syntax error in AFM file: " + repr(rest))
185 things.append(rest[fr:to])
191 def parsekernpair(self, rest): argument
192 m = kernRE.match(rest)
194 raise error("syntax error in AFM file: " + repr(rest))
197 things.append(rest[fr:to])
202 def parseattr(self, word, rest): argument
204 l, b, r, t = [int(thing) for thing in rest.split()]
207 self._comments.append(rest)
210 value = int(rest)
212 self._attrs[word] = rest
216 def parsecomposite(self, rest): argument
217 m = compositeRE.match(rest)
219 raise error("syntax error in AFM file: " + repr(rest))
222 rest = rest[m.regs[0][1]:]
225 m = componentRE.match(rest)
227 raise error("syntax error in AFM file: " + repr(rest))
232 rest = rest[m.regs[0][1]:]
233 if not rest: