diff options
author | pfaedit <pfaedit> | 2009-08-16 18:45:58 +0000 |
---|---|---|
committer | pfaedit <pfaedit> | 2009-08-16 18:45:58 +0000 |
commit | 01d11d3b8283c7d7954d75e709739aeba096c5bd (patch) | |
tree | 19a2f6bc75b277f6a69190a4755f0bd8f2744fdd /fonttools | |
parent | 4998427ab07977b3087e3331f0cd0b3cd2c73ea1 (diff) |
Add an option so we only show the ttc and font headers
(and not the table contents)
Diffstat (limited to 'fonttools')
-rw-r--r-- | fonttools/showttf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fonttools/showttf.c b/fonttools/showttf.c index e8f3285f..9c84a703 100644 --- a/fonttools/showttf.c +++ b/fonttools/showttf.c @@ -17,6 +17,7 @@ typedef unsigned char uint8; static int verbose = false; static int max_lig_nest = 10000; +static int just_headers = false; struct dup { int glyph; @@ -6700,6 +6701,8 @@ static void readit(FILE *ttf, FILE *util) { } return; } + if ( just_headers ) +return; if ( info.fftm_start!=0 ) readttfFFTM(ttf,util,&info); @@ -6794,6 +6797,8 @@ int main(int argc, char **argv) { if ( *pt=='-' ) ++pt; if ( strcmp(pt,"v")==0 || strcmp(pt,"verbose")==0 ) verbose = true; + if ( strcmp(pt,"h")==0 || strcmp(pt,"headers")==0 ) + just_headers = true; else { fprintf( stderr, "%s [-verbose] ttf-file\n", argv[0]); exit(1); @@ -6815,7 +6820,7 @@ return( 1 ); } } if ( filename==NULL ) { - fprintf( stderr, "%s [-verbose] ttf-file\n", argv[0]); + fprintf( stderr, "%s [-verbose] [-headers] ttf-file\n", argv[0]); exit(1); } return( 0 ); |