add: else if (stricmp(pos,"koi8r")==0) charset = QFont::KOI8R;
context: const QFont kstrToFont(const char* aStr){  char* pos;  QFont font;  QFont::CharSet charset;  int i;  strncpy(fontStr, aStr, 255);  fontStr[255] = '\0';  if (!(pos=strtok(fontStr,"-"))) return font;  font.setFamily(pos);  if (!(pos=strtok(NULL,"-"))) return font;  if (stricmp(pos,"light")==0) font.setWeight(QFont::Light);  else if (stricmp(pos,"demibold")==0) font.setWeight(QFont::DemiBold);  else if (stricmp(pos,"bold")==0) font.setWeight(QFont::Bold);  else if (stricmp(pos,"black")==0) font.setWeight(QFont::Black);  else font.setWeight(QFont::Normal);  if (!(pos=strtok(NULL,"-"))) return font;  if (pos[0]=='i' || pos[0]=='o') font.setItalic(TRUE);  if (!(pos=strtok(NULL,"-"))) return font;  font.setPointSize(atoi(pos));  if (!(pos=strtok(NULL,"-"))) return font;  if (stricmp(pos,"iso8859")==0)  {    pos=strtok(NULL,"-");    i = pos ? atoi(pos) : 0;    if (i < 0 || i > 9) i = 0;    charset = encIso8859[i];  }  else charset = QFont::AnyCharSet;  font.setCharSet(charset);  return font;}