Lines Matching +full:- +full:cairo
7 import cairo
20 with cairo.SVGSurface(
21 "example.svg", hhea.advanceWidthMax, hhea.ascent - hhea.descent
23 context = cairo.Context(surface)
25 context.scale(1, -1)
32 context.translate((hhea.advanceWidthMax - glyph.width) * 0.5, 0)
45 delta = (((a - c) * 0.5) ** 2 + b * b) ** 0.5
47 lambda2 = (a + c) * 0.5 - delta # Minor eigenvalue
48 theta = math.atan2(lambda1 - a, b) if b != 0 else (math.pi * 0.5 if a < c else 0)
50 transform = cairo.Matrix()
60 context.set_line_cap(cairo.LINE_CAP_ROUND)
70 context.set_line_cap(cairo.LINE_CAP_ROUND)
79 context.transform(cairo.Matrix(1, 0, stats.slant, 1, 0, 0))
80 context.move_to(0, -stats.meanY + font["hhea"].ascent)
81 context.line_to(0, -stats.meanY + font["hhea"].descent)