w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

otfinfo.cc File Reference
#include <efont/psres.hh>
#include <efont/otfcmap.hh>
#include <efont/otfgsub.hh>
#include <efont/otfgpos.hh>
#include <efont/otfname.hh>
#include <efont/otfos2.hh>
#include <efont/otfpost.hh>
#include <efont/cff.hh>
#include <lcdf/clp.h>
#include <lcdf/error.hh>
#include <lcdf/straccum.hh>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
#include <algorithm>
#include <utility>
Include dependency graph for otfinfo.cc:

Go to the source code of this file.

Macros

#define VERSION_OPT   301
 
#define HELP_OPT   302
 
#define QUIET_OPT   303
 
#define VERBOSE_OPT   304
 
#define SCRIPT_OPT   305
 
#define QUERY_SCRIPTS_OPT   320
 
#define QUERY_FEATURES_OPT   321
 
#define QUERY_OPTICAL_SIZE_OPT   322
 
#define QUERY_POSTSCRIPT_NAME_OPT   323
 
#define QUERY_GLYPHS_OPT   324
 
#define QUERY_FVERSION_OPT   325
 
#define TABLES_OPT   326
 
#define QUERY_FAMILY_OPT   327
 
#define INFO_OPT   328
 
#define DUMP_TABLE_OPT   329
 
#define QUERY_UNICODE_OPT   330
 

Functions

void usage_error (ErrorHandler *errh, const char *error_message,...)
 
void usage ()
 
String read_file (String filename, ErrorHandler *errh, bool warning=false)
 
String printable_filename (const String &s)
 
static void collect_script_descriptions (const OpenType::ScriptList &script_list, Vector< String > &output, ErrorHandler *errh)
 
static void do_query_scripts (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void collect_feature_descriptions (const OpenType::ScriptList &script_list, const OpenType::FeatureList &feature_list, Vector< String > &output, ErrorHandler *errh)
 
static void do_query_features (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static bool do_query_optical_size_size (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_query_optical_size (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_query_family_name (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_query_postscript_name (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_query_font_version (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_info (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_query_glyphs_cff (const OpenType::Font &otf, ErrorHandler *errh, Vector< PermString > &glyph_names)
 
static void do_query_glyphs_post (const OpenType::Font &otf, ErrorHandler *errh, Vector< PermString > &glyph_names)
 
static void do_query_glyphs (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_query_unicode (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_tables (const OpenType::Font &otf, ErrorHandler *errh, ErrorHandler *result_errh)
 
static void do_dump_table (const OpenType::Font &otf, OpenType::Tag tag, ErrorHandler *errh)
 
int main (int argc, char *argv[])
 

Variables

const Clp_Option options []
 
static const char * program_name
 
static Efont::OpenType::Tag script
 
static Efont::OpenType::Tag langsys
 
bool verbose = false
 
bool quiet = false
 

Macro Definition Documentation

◆ DUMP_TABLE_OPT

#define DUMP_TABLE_OPT   329

Definition at line 61 of file otfinfo.cc.

◆ HELP_OPT

#define HELP_OPT   302

Definition at line 47 of file otfinfo.cc.

◆ INFO_OPT

#define INFO_OPT   328

Definition at line 60 of file otfinfo.cc.

◆ QUERY_FAMILY_OPT

#define QUERY_FAMILY_OPT   327

Definition at line 59 of file otfinfo.cc.

◆ QUERY_FEATURES_OPT

#define QUERY_FEATURES_OPT   321

Definition at line 53 of file otfinfo.cc.

◆ QUERY_FVERSION_OPT

#define QUERY_FVERSION_OPT   325

Definition at line 57 of file otfinfo.cc.

◆ QUERY_GLYPHS_OPT

#define QUERY_GLYPHS_OPT   324

Definition at line 56 of file otfinfo.cc.

◆ QUERY_OPTICAL_SIZE_OPT

#define QUERY_OPTICAL_SIZE_OPT   322

Definition at line 54 of file otfinfo.cc.

◆ QUERY_POSTSCRIPT_NAME_OPT

#define QUERY_POSTSCRIPT_NAME_OPT   323

Definition at line 55 of file otfinfo.cc.

◆ QUERY_SCRIPTS_OPT

#define QUERY_SCRIPTS_OPT   320

Definition at line 52 of file otfinfo.cc.

◆ QUERY_UNICODE_OPT

#define QUERY_UNICODE_OPT   330

Definition at line 62 of file otfinfo.cc.

◆ QUIET_OPT

#define QUIET_OPT   303

Definition at line 48 of file otfinfo.cc.

◆ SCRIPT_OPT

#define SCRIPT_OPT   305

Definition at line 50 of file otfinfo.cc.

◆ TABLES_OPT

#define TABLES_OPT   326

Definition at line 58 of file otfinfo.cc.

◆ VERBOSE_OPT

#define VERBOSE_OPT   304

Definition at line 49 of file otfinfo.cc.

◆ VERSION_OPT

#define VERSION_OPT   301

Definition at line 46 of file otfinfo.cc.

Function Documentation

◆ collect_feature_descriptions()

static void collect_feature_descriptions ( const OpenType::ScriptList script_list,
const OpenType::FeatureList feature_list,
Vector< String > &  output,
ErrorHandler errh 
)
static

◆ collect_script_descriptions()

static void collect_script_descriptions ( const OpenType::ScriptList script_list,
Vector< String > &  output,
ErrorHandler errh 
)
static

◆ do_dump_table()

◆ do_info()

static void do_info ( const OpenType::Font otf,
ErrorHandler errh,
ErrorHandler result_errh 
)
static

◆ do_query_family_name()

static void do_query_family_name ( const OpenType::Font otf,
ErrorHandler errh,
ErrorHandler result_errh 
)
static

◆ do_query_features()

◆ do_query_font_version()

static void do_query_font_version ( const OpenType::Font otf,
ErrorHandler errh,
ErrorHandler result_errh 
)
static

◆ do_query_glyphs()

◆ do_query_glyphs_cff()

static void do_query_glyphs_cff ( const OpenType::Font otf,
ErrorHandler errh,
Vector< PermString > &  glyph_names 
)
static

◆ do_query_glyphs_post()

static void do_query_glyphs_post ( const OpenType::Font otf,
ErrorHandler errh,
Vector< PermString > &  glyph_names 
)
static

Definition at line 479 of file otfinfo.cc.

References errh, post, and Efont::OpenType::Font::table().

Referenced by do_query_glyphs(), and do_query_unicode().

◆ do_query_optical_size()

static void do_query_optical_size ( const OpenType::Font otf,
ErrorHandler errh,
ErrorHandler result_errh 
)
static

◆ do_query_optical_size_size()

◆ do_query_postscript_name()

static void do_query_postscript_name ( const OpenType::Font otf,
ErrorHandler errh,
ErrorHandler result_errh 
)
static

◆ do_query_scripts()

◆ do_query_unicode()

◆ do_tables()

◆ main()

◆ printable_filename()

String printable_filename ( const String s)

Definition at line 179 of file otfinfo.cc.

References String::make_stable(), and s.

Referenced by main(), DvipsEncoding::parse(), and parse_encoding().

◆ read_file()

◆ usage()

void usage ( void  uerr)

Give the usual 1-line documentation and exit

Definition at line 107 of file otfinfo.cc.

References ErrorHandler::message(), program_name, and fc-lang::stdout.

Referenced by main().

◆ usage_error()

void usage_error ( ErrorHandler errh,
const char *  error_message,
  ... 
)

Variable Documentation

◆ langsys

◆ options

Initial value:
= {
{ "script", 0, 305 , Clp_ValString, 0 },
{ "quiet", 'q', 303 , 0, Clp_Negate },
{ "verbose", 'V', 304 , 0, Clp_Negate },
{ "features", 'f', 321 , 0, 0 },
{ "scripts", 's', 320 , 0, 0 },
{ "size", 0, 322 , 0, 0 },
{ "optical-size", 'z', 322 , 0, 0 },
{ "postscript-name", 'p', 323 , 0, 0 },
{ "family", 'a', 327 , 0, 0 },
{ "font-version", 'v', 325 , 0, 0 },
{ "info", 'i', 328 , 0, 0 },
{ "glyphs", 'g', 324 , 0, 0 },
{ "tables", 't', 326 , 0, 0 },
{ "dump-table", 'T', 329 , Clp_ValString, 0 },
{ "unicode", 'u', 330 , 0, 0 },
{ "help", 'h', 302 , 0, 0 },
{ "version", 0, 301 , 0, 0 },
}
#define Clp_Negate
Option flag: option may be negated.
Definition: clp.h:139
#define Clp_ValString
Option value is an arbitrary string.
Definition: clp.h:59

Definition at line 64 of file otfinfo.cc.

◆ program_name

const char* program_name
static

Definition at line 85 of file otfinfo.cc.

Referenced by main(), usage(), and usage_error().

◆ quiet

bool quiet = false

Definition at line 90 of file otfinfo.cc.

◆ script

◆ verbose

bool verbose = false

Definition at line 89 of file otfinfo.cc.

Referenced by main().