summaryrefslogtreecommitdiffstats
path: root/libvo/font_load.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-25 19:10:52 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-25 19:10:52 +0000
commit89b069cae33814d8faf3265edb1fc39164316690 (patch)
treea7523aa0291fbe2712d265ed374458d1cb382891 /libvo/font_load.c
parent54afa85eef799a463366cc6a9e56ea78298f9c30 (diff)
downloadmpv-89b069cae33814d8faf3265edb1fc39164316690.tar.bz2
mpv-89b069cae33814d8faf3265edb1fc39164316690.tar.xz
desc fileformat changes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@215 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/font_load.c')
-rw-r--r--libvo/font_load.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libvo/font_load.c b/libvo/font_load.c
index 3f87ef044f..31ddf3613d 100644
--- a/libvo/font_load.c
+++ b/libvo/font_load.c
@@ -41,6 +41,7 @@ char section[64];
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 @@ while(fgets(sor,1020,f)){
} 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 @@ while(fgets(sor,1020,f)){
continue;
}
} else
+
if(strcmp(section,"[characters]")==0){
if(pdb==3 && strlen(p[0])==1){
int chr=p[0][0];