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)  

header_routines.c File Reference
#include "cpascal.h"
#include "list_routines.h"
#include "manifests.h"
#include "header_routines.h"
#include "print_routines.h"
#include "error_routines.h"
#include "out_ofm.h"
#include "omfonts.h"
Include dependency graph for header_routines.c:

Go to the source code of this file.

Macros

#define LOC_CHECK_SUM   0
 
#define LOC_DESIGN_SIZE   4
 
#define LOC_CODING_SCHEME   8
 
#define LOC_FAMILY   (LOC_CODING_SCHEME+LEN_CODING_SCHEME+1)
 
#define LOC_SEVEN_FLAG   (LOC_FAMILY+LEN_FAMILY+1)
 
#define LOC_FACE   (LOC_SEVEN_FLAG+3)
 
#define HEADER_MIN   18
 
#define HEADER_MAX   255
 

Functions

static void retrieve_header_int (unsigned loc, unsigned *where)
 
static void retrieve_header_byte (unsigned loc, unsigned char *where)
 
static void init_header_word (void)
 
void set_header_word (unsigned index, unsigned val)
 
static void retrieve_header_word (void)
 
static void init_check_sum (void)
 
void set_check_sum (unsigned cs)
 
static void retrieve_check_sum (void)
 
static void init_design_size (void)
 
void set_design_size (fix ds)
 
static void retrieve_design_size (void)
 
static void init_design_units (void)
 
void set_design_units (fix du)
 
static void init_coding_scheme (void)
 
void set_coding_scheme (string sval)
 
static void retrieve_coding_scheme (void)
 
static void init_family (void)
 
void set_family (string sval)
 
static void retrieve_family (void)
 
static void init_face (void)
 
void set_face (unsigned f)
 
static void retrieve_face (void)
 
static void init_ofm_level (void)
 
void set_ofm_level (unsigned level)
 
void set_font_dir (unsigned direction)
 
static void init_seven_bit_safe_flag (void)
 
void set_seven_bit_safe_flag (unsigned f)
 
static void retrieve_seven_bit_safe_flag (void)
 
void calculate_seven_bit_safe_flag (void)
 
void init_header (void)
 
void retrieve_header (void)
 
void output_ofm_header (void)
 

Variables

string header
 
av_list header_list = NULL
 
unsigned header_max = 18 -1
 
unsigned check_sum
 
boolean check_sum_specified
 
fix design_size
 
boolean design_size_specified
 
fix design_units
 
boolean design_units_specified
 
string coding_scheme
 
boolean coding_scheme_specified
 
string family
 
boolean family_specified
 
unsigned face
 
boolean face_specified
 
unsigned ofm_level
 
boolean ofm_level_specified
 
unsigned font_dir
 
boolean font_dir_specified
 
boolean seven_bit
 
boolean seven_bit_specified
 
boolean seven_bit_calculated
 
unsigned font_type = 0
 
unsigned lh
 

Macro Definition Documentation

◆ HEADER_MAX

#define HEADER_MAX   255

Definition at line 41 of file header_routines.c.

◆ HEADER_MIN

#define HEADER_MIN   18

Definition at line 40 of file header_routines.c.

◆ LOC_CHECK_SUM

#define LOC_CHECK_SUM   0

Definition at line 33 of file header_routines.c.

◆ LOC_CODING_SCHEME

#define LOC_CODING_SCHEME   8

Definition at line 35 of file header_routines.c.

◆ LOC_DESIGN_SIZE

#define LOC_DESIGN_SIZE   4

Definition at line 34 of file header_routines.c.

◆ LOC_FACE

#define LOC_FACE   (LOC_SEVEN_FLAG+3)

Definition at line 38 of file header_routines.c.

◆ LOC_FAMILY

Definition at line 36 of file header_routines.c.

◆ LOC_SEVEN_FLAG

#define LOC_SEVEN_FLAG   (LOC_FAMILY+LEN_FAMILY+1)

Definition at line 37 of file header_routines.c.

Function Documentation

◆ calculate_seven_bit_safe_flag()

void calculate_seven_bit_safe_flag ( void  )

Definition at line 431 of file header_routines.c.

References seven_bit, seven_bit_calculated, seven_bit_specified, TRUE, and warning_0().

Referenced by check_and_correct().

◆ init_check_sum()

static void init_check_sum ( void  )
static

Definition at line 165 of file header_routines.c.

References check_sum, check_sum_specified, and FALSE.

Referenced by init_header().

◆ init_coding_scheme()

static void init_coding_scheme ( void  )
static

Definition at line 244 of file header_routines.c.

References coding_scheme, coding_scheme_specified, FALSE, and xstrdup.

Referenced by init_header().

◆ init_design_size()

static void init_design_size ( void  )
static

Definition at line 190 of file header_routines.c.

References design_size, design_size_specified, FALSE, and UNITY.

Referenced by init_header().

◆ init_design_units()

static void init_design_units ( void  )
static

Definition at line 220 of file header_routines.c.

References design_units, design_units_specified, FALSE, and UNITY.

Referenced by init_header().

◆ init_face()

static void init_face ( void  )
static

Definition at line 334 of file header_routines.c.

References face, face_specified, and FALSE.

Referenced by init_header().

◆ init_family()

static void init_family ( void  )
static

Definition at line 297 of file header_routines.c.

References FALSE, family, family_specified, and xstrdup.

Referenced by init_header().

◆ init_header()

◆ init_header_word()

static void init_header_word ( void  )
static

Definition at line 101 of file header_routines.c.

References font_type, FT_VANILLA, header_max, HEADER_MIN, and NULL.

Referenced by init_header().

◆ init_ofm_level()

static void init_ofm_level ( void  )
static

Definition at line 364 of file header_routines.c.

References FALSE, ofm_level, ofm_level_specified, and OFM_TFM.

Referenced by init_header().

◆ init_seven_bit_safe_flag()

static void init_seven_bit_safe_flag ( void  )
static

Definition at line 402 of file header_routines.c.

References FALSE, seven_bit, seven_bit_calculated, and seven_bit_specified.

Referenced by init_header().

◆ output_ofm_header()

◆ retrieve_check_sum()

static void retrieve_check_sum ( void  )
static

Definition at line 181 of file header_routines.c.

References check_sum, LOC_CHECK_SUM, and retrieve_header_int().

Referenced by retrieve_header().

◆ retrieve_coding_scheme()

static void retrieve_coding_scheme ( void  )
static

◆ retrieve_design_size()

static void retrieve_design_size ( void  )
static

Definition at line 211 of file header_routines.c.

References design_size, LOC_DESIGN_SIZE, and retrieve_header_int().

Referenced by retrieve_header().

◆ retrieve_face()

static void retrieve_face ( void  )
static

Definition at line 354 of file header_routines.c.

References face, LOC_FACE, and retrieve_header_byte().

Referenced by retrieve_header().

◆ retrieve_family()

static void retrieve_family ( void  )
static

Definition at line 315 of file header_routines.c.

References family, i, j, len, LOC_FAMILY, string, TEXT_CODE_UPPER, text_format, and xmalloc.

Referenced by retrieve_header().

◆ retrieve_header()

◆ retrieve_header_byte()

static void retrieve_header_byte ( unsigned  loc,
unsigned char *  where 
)
static

Definition at line 93 of file header_routines.c.

References loc.

Referenced by retrieve_face(), and retrieve_seven_bit_safe_flag().

◆ retrieve_header_int()

static void retrieve_header_int ( unsigned  loc,
unsigned *  where 
)
static

Definition at line 81 of file header_routines.c.

References loc, and ptr.

Referenced by retrieve_check_sum(), retrieve_design_size(), and retrieve_header_word().

◆ retrieve_header_word()

static void retrieve_header_word ( void  )
static

Definition at line 148 of file header_routines.c.

References HEADER_MIN, j, lh, NULL, retrieve_header_int(), and set_header_word().

Referenced by retrieve_header().

◆ retrieve_seven_bit_safe_flag()

static void retrieve_seven_bit_safe_flag ( void  )
static

Definition at line 423 of file header_routines.c.

References LOC_SEVEN_FLAG, retrieve_header_byte(), and seven_bit.

Referenced by retrieve_header().

◆ set_check_sum()

void set_check_sum ( unsigned  cs)

Definition at line 172 of file header_routines.c.

References check_sum, check_sum_specified, cs, TRUE, and warning_0().

Referenced by yyparse().

◆ set_coding_scheme()

void set_coding_scheme ( string  sval)

◆ set_design_size()

void set_design_size ( fix  ds)

Definition at line 197 of file header_routines.c.

References design_size, design_size_specified, TRUE, UNITY, and warning_0().

Referenced by yyparse().

◆ set_design_units()

void set_design_units ( fix  du)

Definition at line 227 of file header_routines.c.

References design_units, design_units_specified, TRUE, UNITY, and warning_0().

Referenced by yyparse().

◆ set_face()

void set_face ( unsigned  f)

Definition at line 341 of file header_routines.c.

References f, face, face_specified, TRUE, and warning_0().

Referenced by yyparse().

◆ set_family()

void set_family ( string  sval)

Definition at line 304 of file header_routines.c.

References family, family_specified, free, TRUE, and warning_0().

Referenced by yyparse().

◆ set_font_dir()

void set_font_dir ( unsigned  direction)

Definition at line 387 of file header_routines.c.

References DIR_MAX, DIR_MIN, direction, font_dir, font_dir_specified, TRUE, and warning_0().

Referenced by yyparse().

◆ set_header_word()

void set_header_word ( unsigned  index,
unsigned  val 
)

◆ set_ofm_level()

void set_ofm_level ( unsigned  level)

Definition at line 371 of file header_routines.c.

References level, ofm_level, OFM_LEVEL0, OFM_LEVEL1, ofm_level_specified, TRUE, and warning_0().

Referenced by yyparse().

◆ set_seven_bit_safe_flag()

void set_seven_bit_safe_flag ( unsigned  f)

Definition at line 410 of file header_routines.c.

References f, FALSE, internal_error_1(), seven_bit, seven_bit_specified, TRUE, and warning_0().

Referenced by yyparse().

Variable Documentation

◆ check_sum

◆ check_sum_specified

boolean check_sum_specified

Definition at line 49 of file header_routines.c.

Referenced by compute_ofm_character_info(), init_check_sum(), and set_check_sum().

◆ coding_scheme

◆ coding_scheme_specified

boolean coding_scheme_specified

Definition at line 58 of file header_routines.c.

Referenced by init_coding_scheme(), and set_coding_scheme().

◆ design_size

fix design_size

◆ design_size_specified

boolean design_size_specified

Definition at line 52 of file header_routines.c.

Referenced by init_design_size(), and set_design_size().

◆ design_units

◆ design_units_specified

boolean design_units_specified

Definition at line 55 of file header_routines.c.

Referenced by init_design_units(), and set_design_units().

◆ face

unsigned face

Definition at line 63 of file header_routines.c.

Referenced by init_face(), output_ofm_header(), retrieve_face(), and set_face().

◆ face_specified

boolean face_specified

Definition at line 64 of file header_routines.c.

Referenced by init_face(), and set_face().

◆ family

string family

Definition at line 60 of file header_routines.c.

Referenced by _cairo_quartz_font_face_create_for_toy(), _cairo_toy_font_face_init(), _cairo_toy_font_face_init_key(), BuildName(), cairo_select_font_face(), cairo_toy_font_face_create(), cff_face_init(), cid_face_init(), CmdEmphasize(), CmdFontFamily(), CmdFontSeries(), CmdFontShape(), CmdFontSize(), CmdTextNormal(), CurrentFontFamily(), DefaultFontFamily(), PhysicalFont::familyName(), FcFontSetSort(), FcFreeTypeQueryFaceInternal(), FcParseAlias(), FcPatternAddFullname(), ftc_basic_family_compare(), ftc_basic_family_get_count(), ftc_basic_family_init(), ftc_basic_family_load_bitmap(), ftc_basic_family_load_glyph(), ftc_basic_gnode_compare_faceid(), FTC_Family_Init(), FTC_GNode_Init(), FTC_GNode_UnselectFamily(), FTC_INode_New(), ftc_snode_load(), FTC_SNode_New(), HTMLGen::getFontDetails(), HTMLGen::getFontFile(), HTMLGen::getSubstituteFont(), global_connect(), inet_meth_getpeername(), inet_meth_getsockname(), inet_tryaccept(), inet_trybind(), inet_tryconnect(), inet_trycreate(), inet_trydisconnect(), init_family(), InitializeDocumentFont(), MonitorFontChanges(), mrb_addrinfo_getaddrinfo(), mrb_basicsocket_getsockopt(), output_ofm_header(), PopFontSettings(), print_family(), psh_blues_scale_zones(), psh_blues_set_zones(), PushFontSettings(), retrieve_family(), XeTeXFontMgr_Mac::searchForHostPlatformFonts(), set_family(), drvCAIRO::show_text(), T1_Face_Init(), T42_Face_Init(), tcp_create(), TT_Process_Simple_Glyph(), udp_create(), and WriteRtfHeader().

◆ family_specified

boolean family_specified

Definition at line 61 of file header_routines.c.

Referenced by init_family(), and set_family().

◆ font_dir

◆ font_dir_specified

boolean font_dir_specified

Definition at line 70 of file header_routines.c.

Referenced by set_font_dir().

◆ font_type

unsigned font_type = 0

Definition at line 76 of file header_routines.c.

Referenced by init_header_word(), retrieve_coding_scheme(), and set_coding_scheme().

◆ header

Definition at line 44 of file header_routines.c.

◆ header_list

Definition at line 45 of file header_routines.c.

Referenced by output_ofm_header(), and set_header_word().

◆ header_max

unsigned header_max = 18 -1

◆ lh

unsigned lh

Definition at line 78 of file header_routines.c.

Referenced by output_ofm_header(), and retrieve_header_word().

◆ ofm_level

◆ ofm_level_specified

boolean ofm_level_specified

Definition at line 67 of file header_routines.c.

Referenced by init_ofm_level(), and set_ofm_level().

◆ seven_bit

◆ seven_bit_calculated

◆ seven_bit_specified

boolean seven_bit_specified