font_info->subfont = (PangoXSubfont)i;
font_info->subfont = (PangoliteXSubfont)i;
get_font_info (const char *fontCharset){  static const char *charsets[] = {    "tis620-2",    "tis620-1",    "tis620-0",    "xtis620.2529-1",    "xtis-0",    "tis620.2533-1",    "tis620.2529-1",    "iso8859-11",    "iso10646-1",  };  static const int charset_types[] = {    THAI_FONT_TIS_WIN,    THAI_FONT_TIS_MAC,    THAI_FONT_TIS,    THAI_FONT_XTIS,    THAI_FONT_XTIS,    THAI_FONT_TIS,    THAI_FONT_TIS,    THAI_FONT_TIS,    THAI_FONT_ISO10646  };    ThaiFontInfo *font_info = g_new(ThaiFontInfo, 1);  gint         subfontId, i;  font_info->type = THAI_FONT_NONE;  for (i = 0; i < G_N_ELEMENTS(charsets); i++) {    if (strcmp(fontCharset, charsets[i]) == 0) {	        font_info->type = (ThaiFontType)charset_types[i];      font_info->subfont = (PangoXSubfont)i;      break;    }  }  return font_info;}