Back to index

tetex-bin  3.0
Classes | Defines | Functions | Variables
FoFiTrueType.cc File Reference
#include <aconf.h>
#include <stdlib.h>
#include "gtypes.h"
#include "gmem.h"
#include "GString.h"
#include "GHash.h"
#include "FoFiTrueType.h"

Go to the source code of this file.

Classes

struct  TrueTypeTable
struct  TrueTypeCmap
struct  TrueTypeLoca
struct  T42Table

Defines

#define cmapTag   0x636d6170
#define glyfTag   0x676c7966
#define locaTag   0x6c6f6361
#define nameTag   0x6e616d65
#define postTag   0x706f7374
#define nT42Tables   11
#define t42HeadTable   3
#define t42LocaTable   6
#define t42GlyfTable   2

Functions

static int cmpTrueTypeLocaOffset (const void *p1, const void *p2)
static int cmpTrueTypeLocaIdx (const void *p1, const void *p2)
static int cmpTrueTypeTableTag (const void *p1, const void *p2)

Variables

static T42Table t42Tables [nT42Tables]
static char * macGlyphNames [258]

Class Documentation

struct TrueTypeTable

Definition at line 80 of file FoFiTrueType.cc.

Class Members
Guint checksum
int len
int offset
int origOffset
Guint tag
struct TrueTypeCmap

Definition at line 88 of file FoFiTrueType.cc.

Class Members
int encoding
int fmt
int len
int offset
int platform
struct TrueTypeLoca

Definition at line 96 of file FoFiTrueType.cc.

Class Members
int idx
int len
int newOffset
int origOffset
struct T42Table

Definition at line 135 of file FoFiTrueType.cc.

Class Members
GBool required
char * tag

Define Documentation

#define cmapTag   0x636d6170

Definition at line 103 of file FoFiTrueType.cc.

#define glyfTag   0x676c7966

Definition at line 104 of file FoFiTrueType.cc.

#define locaTag   0x6c6f6361

Definition at line 105 of file FoFiTrueType.cc.

#define nameTag   0x6e616d65

Definition at line 106 of file FoFiTrueType.cc.

#define nT42Tables   11

Definition at line 142 of file FoFiTrueType.cc.

#define postTag   0x706f7374

Definition at line 107 of file FoFiTrueType.cc.

#define t42GlyfTable   2

Definition at line 158 of file FoFiTrueType.cc.

#define t42HeadTable   3

Definition at line 156 of file FoFiTrueType.cc.

#define t42LocaTable   6

Definition at line 157 of file FoFiTrueType.cc.


Function Documentation

static int cmpTrueTypeLocaIdx ( const void p1,
const void p2 
) [static]

Definition at line 119 of file FoFiTrueType.cc.

                                                              {
  TrueTypeLoca *loca1 = (TrueTypeLoca *)p1;
  TrueTypeLoca *loca2 = (TrueTypeLoca *)p2;

  return loca1->idx - loca2->idx;
}

Here is the caller graph for this function:

static int cmpTrueTypeLocaOffset ( const void p1,
const void p2 
) [static]

Definition at line 109 of file FoFiTrueType.cc.

                                                                 {
  TrueTypeLoca *loca1 = (TrueTypeLoca *)p1;
  TrueTypeLoca *loca2 = (TrueTypeLoca *)p2;

  if (loca1->origOffset == loca2->origOffset) {
    return loca1->idx - loca2->idx;
  }
  return loca1->origOffset - loca2->origOffset;
}

Here is the caller graph for this function:

static int cmpTrueTypeTableTag ( const void p1,
const void p2 
) [static]

Definition at line 126 of file FoFiTrueType.cc.

                                                               {
  TrueTypeTable *tab1 = (TrueTypeTable *)p1;
  TrueTypeTable *tab2 = (TrueTypeTable *)p2;

  return (int)tab1->tag - (int)tab2->tag;
}

Here is the caller graph for this function:


Variable Documentation

char* macGlyphNames[258] [static]

Definition at line 164 of file FoFiTrueType.cc.

Initial value:
 {
  { "cvt ", gTrue  },
  { "fpgm", gTrue  },
  { "glyf", gTrue  },
  { "head", gTrue  },
  { "hhea", gTrue  },
  { "hmtx", gTrue  },
  { "loca", gTrue  },
  { "maxp", gTrue  },
  { "prep", gTrue  },
  { "vhea", gFalse },
  { "vmtx", gFalse }
}

Definition at line 143 of file FoFiTrueType.cc.