Home | History | Annotate | Download | only in fontTools

Lines Matching refs:lines

14 # regular expression to parse char lines
32 # regular expression to parse kerning lines
42 # regular expressions to parse composite info lines of the form:
110 lines = readlines(path)
111 for line in lines:
193 lines = [ "StartFontMetrics 2.0",
201 lines.append("Comment " + comment)
211 lines.append(attr + " " + str(value))
218 lines.append(attr + " " + str(value))
221 lines.append("StartCharMetrics " + repr(len(self._chars)))
233 lines.append("C %d ; WX %d ; N %s ; B %d %d %d %d ;" %
235 lines.append("EndCharMetrics")
238 lines.append("StartKernData")
239 lines.append("StartKernPairs " + repr(len(self._kerning)))
242 lines.append("KPX %s %s %d" % (leftchar, rightchar, value))
243 lines.append("EndKernPairs")
244 lines.append("EndKernData")
248 lines.append("StartComposites %s" % len(self._composites))
253 lines.append(line)
254 lines.append("EndComposites")
256 lines.append("EndFontMetrics")
258 writelines(path, lines, sep)
350 def writelines(path, lines, sep='\r'):
352 for line in lines:
371 # afm.comments() returns a list of all Comment lines found in the AFM