# HG changeset patch # User atmosfear # Date 989351422 0 # Node ID cc208ebcb9f68931578adc650f5c4bbc34717f41 # Parent 2cbe922e2f3cd69dacadaee2e3bb930306fbca38 Deals with unicode/nounicode. diff -r 2cbe922e2f3c -r cc208ebcb9f6 libvo/font_load.c --- a/libvo/font_load.c Tue May 08 19:40:10 2001 +0000 +++ b/libvo/font_load.c Tue May 08 19:50:22 2001 +0000 @@ -44,6 +44,7 @@ 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 @@ 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