Back to index

tetex-bin  3.0
Classes | Defines | Typedefs
writettf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dirtab_entry
struct  cmap_entry
struct  seg_entry

Defines

#define TTF_CHAR_SIZE   1
#define TTF_BYTE_SIZE   1
#define TTF_SHORT_SIZE   2
#define TTF_USHORT_SIZE   2
#define TTF_LONG_SIZE   4
#define TTF_ULONG_SIZE   4
#define TTF_FIXED_SIZE   4
#define TTF_FWORD_SIZE   2
#define TTF_UFWORD_SIZE   2
#define TTF_F2DOT14_SIZE   2
#define ARG_1_AND_2_ARE_WORDS   (1<<0)
#define ARGS_ARE_XY_VALUES   (1<<1)
#define ROUND_XY_TO_GRID   (1<<2)
#define WE_HAVE_A_SCALE   (1<<3)
#define RESERVED   (1<<4)
#define MORE_COMPONENTS   (1<<5)
#define WE_HAVE_AN_X_AND_Y_SCALE   (1<<6)
#define WE_HAVE_A_TWO_BY_TWO   (1<<7)
#define WE_HAVE_INSTRUCTIONS   (1<<8)
#define USE_MY_METRICS   (1<<9)
#define get_type(t)   ((t)ttf_getnum(t##_SIZE))
#define ttf_skip(n)   ttf_getnum(n)
#define get_byte()   get_type(TTF_BYTE)
#define get_char()   get_type(TTF_CHAR)
#define get_ushort()   get_type(TTF_USHORT)
#define get_short()   get_type(TTF_SHORT)
#define get_ulong()   get_type(TTF_ULONG)
#define get_long()   get_type(TTF_LONG)
#define get_fixed()   get_type(TTF_FIXED)
#define get_funit()   get_type(TTF_FUNIT)
#define get_fword()   get_type(TTF_FWORD)
#define get_ufword()   get_type(TTF_UFWORD)
#define get_f2dot14()   get_type(TTF_F2DOT14)
#define put_num(t, n)   ((t)ttf_putnum(t##_SIZE, n))
#define put_char(n)   put_num(TTF_CHAR, n)
#define put_byte(n)   put_num(TTF_BYTE, n)
#define put_short(n)   put_num(TTF_SHORT, n)
#define put_ushort(n)   put_num(TTF_USHORT, n)
#define put_long(n)   put_num(TTF_LONG, n)
#define put_ulong(n)   put_num(TTF_ULONG, n)
#define put_fixed(n)   put_num(TTF_FIXED, n)
#define put_funit(n)   put_num(TTF_FUNIT, n)
#define put_fword(n)   put_num(TTF_FWORD, n)
#define put_ufword(n)   put_num(TTF_UFWORD, n)
#define put_f2dot14(n)   put_num(TTF_F2DOT14, n)
#define copy_byte()   put_byte(get_byte())
#define copy_char()   put_char(get_char())
#define copy_ushort()   put_ushort(get_ushort())
#define copy_short()   put_short(get_short())
#define copy_ulong()   put_ulong(get_ulong())
#define copy_long()   put_long(get_long())
#define copy_fixed()   put_fixed(get_fixed())
#define copy_funit()   put_funit(get_funit())
#define copy_fword()   put_fword(get_fword())
#define copy_ufword()   put_ufword(get_ufword())
#define copy_f2dot14()   put_f2dot14(get_f2dot14())
#define is_unicode_mapping(e)   (e->platform_id == 0 || (e->platform_id == 3 || e->encoding_id == 1))
#define NMACGLYPHS   258
#define TABDIR_OFF   12
#define ENC_BUF_SIZE   1024
#define GLYPH_PREFIX_INDEX   "index"
#define GLYPH_PREFIX_UNICODE   "uni"
#define NOGLYPH_ASSIGNED_YET

Typedefs

typedef signed char TTF_CHAR
typedef unsigned char TTF_BYTE
typedef signed short TTF_SHORT
typedef unsigned short TTF_USHORT
typedef signed long TTF_LONG
typedef unsigned long TTF_ULONG
typedef unsigned long TTF_FIXED
typedef unsigned short TTF_FUNIT
typedef signed short TTF_FWORD
typedef unsigned short TTF_UFWORD
typedef unsigned short TTF_F2DOT14

Class Documentation

struct dirtab_entry

Definition at line 110 of file writettf.h.

Class Members
TTF_ULONG checksum
TTF_ULONG length
TTF_ULONG offset
char tag
struct cmap_entry

Definition at line 117 of file writettf.h.

Class Members
TTF_USHORT encoding_id
TTF_USHORT format
TTF_ULONG offset
TTF_USHORT platform_id
struct seg_entry

Definition at line 124 of file writettf.h.

Class Members
TTF_USHORT endCode
TTF_USHORT idDelta
TTF_USHORT idRangeOffset
TTF_USHORT startCode

Define Documentation

#define ARG_1_AND_2_ARE_WORDS   (1<<0)

Definition at line 46 of file writettf.h.

#define ARGS_ARE_XY_VALUES   (1<<1)

Definition at line 47 of file writettf.h.

#define copy_byte ( )    put_byte(get_byte())

Definition at line 86 of file writettf.h.

#define copy_char ( )    put_char(get_char())

Definition at line 87 of file writettf.h.

#define copy_f2dot14 ( )    put_f2dot14(get_f2dot14())

Definition at line 96 of file writettf.h.

#define copy_fixed ( )    put_fixed(get_fixed())

Definition at line 92 of file writettf.h.

#define copy_funit ( )    put_funit(get_funit())

Definition at line 93 of file writettf.h.

#define copy_fword ( )    put_fword(get_fword())

Definition at line 94 of file writettf.h.

#define copy_long ( )    put_long(get_long())

Definition at line 91 of file writettf.h.

#define copy_short ( )    put_short(get_short())

Definition at line 89 of file writettf.h.

#define copy_ufword ( )    put_ufword(get_ufword())

Definition at line 95 of file writettf.h.

#define copy_ulong ( )    put_ulong(get_ulong())

Definition at line 90 of file writettf.h.

#define copy_ushort ( )    put_ushort(get_ushort())

Definition at line 88 of file writettf.h.

#define ENC_BUF_SIZE   1024

Definition at line 104 of file writettf.h.

#define get_byte ( )    get_type(TTF_BYTE)

Definition at line 60 of file writettf.h.

#define get_char ( )    get_type(TTF_CHAR)

Definition at line 61 of file writettf.h.

#define get_f2dot14 ( )    get_type(TTF_F2DOT14)

Definition at line 70 of file writettf.h.

#define get_fixed ( )    get_type(TTF_FIXED)

Definition at line 66 of file writettf.h.

#define get_funit ( )    get_type(TTF_FUNIT)

Definition at line 67 of file writettf.h.

#define get_fword ( )    get_type(TTF_FWORD)

Definition at line 68 of file writettf.h.

#define get_long ( )    get_type(TTF_LONG)

Definition at line 65 of file writettf.h.

#define get_short ( )    get_type(TTF_SHORT)

Definition at line 63 of file writettf.h.

#define get_type (   t)    ((t)ttf_getnum(t##_SIZE))

Definition at line 57 of file writettf.h.

#define get_ufword ( )    get_type(TTF_UFWORD)

Definition at line 69 of file writettf.h.

#define get_ulong ( )    get_type(TTF_ULONG)

Definition at line 64 of file writettf.h.

#define get_ushort ( )    get_type(TTF_USHORT)

Definition at line 62 of file writettf.h.

#define GLYPH_PREFIX_INDEX   "index"

Definition at line 106 of file writettf.h.

#define GLYPH_PREFIX_UNICODE   "uni"

Definition at line 107 of file writettf.h.

#define is_unicode_mapping (   e)    (e->platform_id == 0 || (e->platform_id == 3 || e->encoding_id == 1))

Definition at line 98 of file writettf.h.

#define MORE_COMPONENTS   (1<<5)

Definition at line 51 of file writettf.h.

#define NMACGLYPHS   258

Definition at line 102 of file writettf.h.

Value:
0xFFFF /* indicating that no glyph is assigned to
                                       an unicode */

Definition at line 109 of file writettf.h.

#define put_byte (   n)    put_num(TTF_BYTE, n)

Definition at line 75 of file writettf.h.

#define put_char (   n)    put_num(TTF_CHAR, n)

Definition at line 74 of file writettf.h.

#define put_f2dot14 (   n)    put_num(TTF_F2DOT14, n)

Definition at line 84 of file writettf.h.

#define put_fixed (   n)    put_num(TTF_FIXED, n)

Definition at line 80 of file writettf.h.

#define put_funit (   n)    put_num(TTF_FUNIT, n)

Definition at line 81 of file writettf.h.

#define put_fword (   n)    put_num(TTF_FWORD, n)

Definition at line 82 of file writettf.h.

#define put_long (   n)    put_num(TTF_LONG, n)

Definition at line 78 of file writettf.h.

#define put_num (   t,
  n 
)    ((t)ttf_putnum(t##_SIZE, n))

Definition at line 72 of file writettf.h.

#define put_short (   n)    put_num(TTF_SHORT, n)

Definition at line 76 of file writettf.h.

#define put_ufword (   n)    put_num(TTF_UFWORD, n)

Definition at line 83 of file writettf.h.

#define put_ulong (   n)    put_num(TTF_ULONG, n)

Definition at line 79 of file writettf.h.

#define put_ushort (   n)    put_num(TTF_USHORT, n)

Definition at line 77 of file writettf.h.

#define RESERVED   (1<<4)

Definition at line 50 of file writettf.h.

#define ROUND_XY_TO_GRID   (1<<2)

Definition at line 48 of file writettf.h.

#define TABDIR_OFF   12

Definition at line 103 of file writettf.h.

#define TTF_BYTE_SIZE   1

Definition at line 36 of file writettf.h.

#define TTF_CHAR_SIZE   1

Definition at line 35 of file writettf.h.

#define TTF_F2DOT14_SIZE   2

Definition at line 44 of file writettf.h.

#define TTF_FIXED_SIZE   4

Definition at line 41 of file writettf.h.

#define TTF_FWORD_SIZE   2

Definition at line 42 of file writettf.h.

#define TTF_LONG_SIZE   4

Definition at line 39 of file writettf.h.

#define TTF_SHORT_SIZE   2

Definition at line 37 of file writettf.h.

#define ttf_skip (   n)    ttf_getnum(n)

Definition at line 58 of file writettf.h.

#define TTF_UFWORD_SIZE   2

Definition at line 43 of file writettf.h.

#define TTF_ULONG_SIZE   4

Definition at line 40 of file writettf.h.

#define TTF_USHORT_SIZE   2

Definition at line 38 of file writettf.h.

#define USE_MY_METRICS   (1<<9)

Definition at line 55 of file writettf.h.

#define WE_HAVE_A_SCALE   (1<<3)

Definition at line 49 of file writettf.h.

#define WE_HAVE_A_TWO_BY_TWO   (1<<7)

Definition at line 53 of file writettf.h.

#define WE_HAVE_AN_X_AND_Y_SCALE   (1<<6)

Definition at line 52 of file writettf.h.

#define WE_HAVE_INSTRUCTIONS   (1<<8)

Definition at line 54 of file writettf.h.


Typedef Documentation

typedef unsigned char TTF_BYTE

Definition at line 24 of file writettf.h.

typedef signed char TTF_CHAR

Definition at line 23 of file writettf.h.

typedef unsigned short TTF_F2DOT14

Definition at line 33 of file writettf.h.

typedef unsigned long TTF_FIXED

Definition at line 29 of file writettf.h.

typedef unsigned short TTF_FUNIT

Definition at line 30 of file writettf.h.

typedef signed short TTF_FWORD

Definition at line 31 of file writettf.h.

typedef signed long TTF_LONG

Definition at line 27 of file writettf.h.

typedef signed short TTF_SHORT

Definition at line 25 of file writettf.h.

typedef unsigned short TTF_UFWORD

Definition at line 32 of file writettf.h.

typedef unsigned long TTF_ULONG

Definition at line 28 of file writettf.h.

typedef unsigned short TTF_USHORT

Definition at line 26 of file writettf.h.