[cairo] Getting The Space Glyph

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Fri Mar 20 11:50:08 PDT 2015


Qahirah one-liner (assuming ā€œgā€ is a Context object):

        space_glyph = g.scaled_font.text_to_glyphs((0, 0), " ", cluster_mapping = False)[0][0].index


More information about the cairo mailing list