/*
* call-seq:
* size_unicode(text) -> [ width, height ]
*
* The width and height the UNICODE encoded text would be if
* it were rendered, without the overhead of
* actually rendering it.
*/
VALUE rbgm_ttf_size_unicode(VALUE self, VALUE string)
{
TTF_Font *font;
int w;
int h;
VALUE result;
Data_Get_Struct(self, TTF_Font,font);
result = rb_ary_new();
TTF_SizeUNICODE(font,(Uint16*)StringValuePtr(string),&w,&h);
rb_ary_push(result, INT2NUM(w));
rb_ary_push(result, INT2NUM(h));
return result;
}