home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 10
/
Fresh_Fish_10_2352.bin
/
gnu
/
os-include
/
diskfont
/
glyph.i
< prev
next >
Wrap
Text File
|
1993-10-15
|
2KB
|
58 lines
IFND DISKFONT_GLYPH_I
DISKFONT_GLYPH_I EQU 1
**
** $VER: glyph.i 9.1 (19.6.92)
** Includes Release 40.15
**
** glyph.i -- structures for glyph libraries
**
** (C) Copyright 1991-1992 Robert R. Burns
** All Rights Reserved
**
IFND EXEC_TYPES_I
INCLUDE "exec/types.i"
ENDC
IFND EXEC_LIBRARIES_I
INCLUDE "exec/libraries.i"
ENDC
IFND EXEC_NODES_I
INCLUDE "exec/nodes.i"
ENDC
; A GlyphEngine must be acquired via OpenEngine and is read-only
STRUCTURE GlyphEngine,0
APTR gle_Library ; (struct Library *) engine library
APTR gle_Name ; (char *) library basename: e.g. "bullet"
; private library data follows...
STRUCTURE GlyphMap,0
UWORD glm_BMModulo ; # of bytes in row: always multiple of 4
UWORD glm_BMRows ; # of rows in bitmap
UWORD glm_BlackLeft ; # of blank pixel columns at left
UWORD glm_BlackTop ; # of blank rows at top
UWORD glm_BlackWidth ; span of contiguous non-blank columns
UWORD glm_BlackHeight ; span of contiguous non-blank rows
; the following five ULONGs are FIXED:
ULONG glm_XOrigin ; distance from upper left corner of bitmap
ULONG glm_YOrigin ; to initial CP, in fractional pixels
WORD glm_X0 ; approximation of XOrigin in whole pixels
WORD glm_Y0 ; approximation of YOrigin in whole pixels
WORD glm_X1 ; approximation of XOrigin + Width
WORD glm_Y1 ; approximation of YOrigin + Width
ULONG glm_Width ; character advance, as fraction of em width
APTR glm_BitMap ; (ULONG *) actual glyph bitmap
LABEL GlyphMap_SIZEOF
STRUCTURE GlyphWidthEntry,0
STRUCT gwe_Node,MLN_SIZE ; on list returned by OT_WidthList inquiry
UWORD gwe_Code ; entry's character code value
; the following ULONG is FIXED:
ULONG gwe_Width ; character advance, as fraction of em width
LABEL GlyphWidthEntry_SIZEOF
ENDC ; DISKFONT_GLYPH_I