changeset 214:09d0f437b817

desc fileformat changes
author arpi_esp
date Sun, 25 Mar 2001 19:10:52 +0000
parents 6ec8f6ab6cb1
children 09d565842a33
files libvo/font_load.c libvo/font_load.h
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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];
--- 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;