Lines Matching refs:ttFont
42 def otf_to_ttf(ttFont, post_format=POST_FORMAT, **kwargs): argument
43 assert ttFont.sfntVersion == "OTTO"
44 assert "CFF " in ttFont
46 glyphOrder = ttFont.getGlyphOrder()
48 ttFont["loca"] = newTable("loca")
49 ttFont["glyf"] = glyf = newTable("glyf")
51 glyf.glyphs = glyphs_to_quadratic(ttFont.getGlyphSet(), **kwargs)
52 del ttFont["CFF "]
53 glyf.compile(ttFont)
55 ttFont["maxp"] = maxp = newTable("maxp")
67 maxp.compile(ttFont)
69 post = ttFont["post"]
75 post.compile(ttFont)
80 ttFont.sfntVersion = "\000\001\000\000"