+static VALUE font_kerning(VALUE cls)
+{
+ Get_Font(font,cls);
+ gfxkerning_t*kerning = font->font->kerning;
+ int kerning_size = font->font->kerning_size;
+ volatile VALUE a = rb_ary_new2(kerning_size);
+ int t;
+ for(t=0;t<kerning_size;t++) {
+ volatile VALUE tuple = rb_ary_new2(3);
+ rb_ary_store(tuple, 0, INT2FIX(kerning[t].c1));
+ rb_ary_store(tuple, 1, INT2FIX(kerning[t].c2));
+ rb_ary_store(tuple, 2, INT2FIX(kerning[t].advance));
+ rb_ary_store(a, t, tuple);
+ }
+ return a;
+}
+