Home | History | Annotate | Download | only in src

Lines Matching refs:hb

6 from gi.repository import HarfBuzz as hb
25 blob = hb.glib_blob_create (GLib.Bytes.new (fontdata))
26 face = hb.face_create (blob, 0)
28 font = hb.font_create (face)
29 upem = hb.face_get_upem (face)
31 hb.font_set_scale (font, upem, upem)
32 #hb.ft_font_set_funcs (font)
33 hb.ot_font_set_funcs (font)
35 buf = hb.buffer_create ()
36 hb.buffer_add_utf8 (buf, text.encode('utf-8'), 0, -1)
37 hb.buffer_guess_segment_properties (buf)
39 hb.shape (font, buf, [])
42 infos = hb.buffer_get_glyph_infos (buf)
43 positions = hb.buffer_get_glyph_positions (buf)