changeset 727:cc208ebcb9f6

Deals with unicode/nounicode.
author atmosfear
date Tue, 08 May 2001 19:50:22 +0000
parents 2cbe922e2f3c
children 138d38a5915a
files libvo/font_load.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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<start) {
               printf("error in font desc: end<start for char '%c'\n",chr);