1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00

Deals with unicode/nounicode.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@728 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmosfear 2001-05-08 19:50:22 +00:00
parent b1d77e6840
commit dba198bb1d

View File

@ -44,6 +44,7 @@ int i,j;
int chardb=0;
int fontdb=-1;
int version=0;
int sub_unicode=0;
desc=malloc(sizeof(font_desc_t));if(!desc) return NULL;
memset(desc,0,sizeof(font_desc_t));
@ -174,7 +175,7 @@ while(fgets(sor,1020,f)){
int chr=p[0][0];
int start=atoi(p[1]);
int end=atoi(p[2]);
if(chr>=0x80) chr=(chr<<8)+p[0][1];
if(sub_unicode && (chr>=0x80)) chr=(chr<<8)+p[0][1];
else if(strlen(p[0])!=1) chr=strtol(p[0],NULL,0);
if(end<start) {
printf("error in font desc: end<start for char '%c'\n",chr);