# HG changeset patch # User ib # Date 1295348272 0 # Node ID 697fd62b65f903d65dd98fd3f3abb8f87a75192e # Parent 7a79424a81acf50fb600037ed5ebf3701ace0017 Allow double quote to be defined in the font description file: """ = x, y, width, height diff -r 7a79424a81ac -r 697fd62b65f9 gui/skin/font.c --- a/gui/skin/font.c Mon Jan 17 19:45:40 2011 +0000 +++ b/gui/skin/font.c Tue Jan 18 10:57:52 2011 +0000 @@ -101,7 +101,8 @@ { int i; cutItem( command,command,'"',1 ); - i=(int)command[0]; + if ( !command[0] ) i=(int)'"'; + else i=(int)command[0]; cutItem( param,tmp,',',0 ); Fonts[id]->Fnt[i].x=atoi( tmp ); cutItem( param,tmp,',',1 ); Fonts[id]->Fnt[i].y=atoi( tmp ); cutItem( param,tmp,',',2 ); Fonts[id]->Fnt[i].sx=atoi( tmp );