# HG changeset patch # User arpi_esp # Date 985547452 0 # Node ID 09d0f437b817a4d5cc80c9e150fa1723b16d0389 # Parent 6ec8f6ab6cb18c795d313c0c5bfee4c98e2cdd98 desc fileformat changes diff -r 6ec8f6ab6cb1 -r 09d0f437b817 libvo/font_load.c --- a/libvo/font_load.c Sun Mar 25 04:28:40 2001 +0000 +++ b/libvo/font_load.c Sun Mar 25 19:10:52 2001 +0000 @@ -41,6 +41,7 @@ int i,j; int chardb=0; int fontdb=-1; +int version=0; desc=malloc(sizeof(font_desc_t));if(!desc) return NULL; memset(desc,0,sizeof(font_desc_t)); @@ -122,6 +123,14 @@ } else if(strcmp(section,"[info]")==0){ + if(pdb==2 && strcmp(p[0],"name")==0){ + desc->name=strdup(p[1]); + continue; + } + if(pdb==2 && strcmp(p[0],"descversion")==0){ + version=atoi(p[1]); + continue; + } if(pdb==2 && strcmp(p[0],"spacewidth")==0){ desc->spacewidth=atoi(p[1]); continue; @@ -135,6 +144,7 @@ continue; } } else + if(strcmp(section,"[characters]")==0){ if(pdb==3 && strlen(p[0])==1){ int chr=p[0][0]; diff -r 6ec8f6ab6cb1 -r 09d0f437b817 libvo/font_load.h --- a/libvo/font_load.h Sun Mar 25 04:28:40 2001 +0000 +++ b/libvo/font_load.h Sun Mar 25 19:10:52 2001 +0000 @@ -6,6 +6,7 @@ } raw_file; typedef struct { + char *name; int spacewidth; int charspace; int height;