home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / diskfont / glyph.i < prev    next >
Text File  |  1993-10-15  |  2KB  |  58 lines

  1.     IFND    DISKFONT_GLYPH_I
  2. DISKFONT_GLYPH_I    EQU    1
  3.  
  4. **
  5. **    $VER: glyph.i 9.1 (19.6.92)
  6. **    Includes Release 40.15
  7. **
  8. **    glyph.i -- structures for glyph libraries
  9. **
  10. **    (C) Copyright 1991-1992 Robert R. Burns
  11. **        All Rights Reserved
  12. **
  13.  
  14.     IFND    EXEC_TYPES_I
  15.     INCLUDE    "exec/types.i"
  16.     ENDC
  17.  
  18.     IFND    EXEC_LIBRARIES_I
  19.     INCLUDE    "exec/libraries.i"
  20.     ENDC
  21.  
  22.     IFND    EXEC_NODES_I
  23.     INCLUDE    "exec/nodes.i"
  24.     ENDC
  25.  
  26. ; A GlyphEngine must be acquired via OpenEngine and is read-only
  27.  STRUCTURE    GlyphEngine,0
  28.     APTR    gle_Library        ; (struct Library *) engine library
  29.     APTR    gle_Name        ; (char *) library basename: e.g. "bullet"
  30.     ; private library data follows...
  31.  
  32.  STRUCTURE    GlyphMap,0
  33.     UWORD   glm_BMModulo    ; # of bytes in row: always multiple of 4
  34.     UWORD   glm_BMRows        ; # of rows in bitmap
  35.     UWORD   glm_BlackLeft    ; # of blank pixel columns at left
  36.     UWORD   glm_BlackTop    ; # of blank rows at top
  37.     UWORD   glm_BlackWidth    ; span of contiguous non-blank columns
  38.     UWORD   glm_BlackHeight    ; span of contiguous non-blank rows
  39.     ; the following five ULONGs are FIXED:
  40.     ULONG   glm_XOrigin        ; distance from upper left corner of bitmap
  41.     ULONG   glm_YOrigin        ;   to initial CP, in fractional pixels
  42.     WORD    glm_X0        ; approximation of XOrigin in whole pixels
  43.     WORD    glm_Y0        ; approximation of YOrigin in whole pixels
  44.     WORD    glm_X1        ; approximation of XOrigin + Width
  45.     WORD    glm_Y1        ; approximation of YOrigin + Width
  46.     ULONG   glm_Width        ; character advance, as fraction of em width
  47.     APTR    glm_BitMap        ; (ULONG *) actual glyph bitmap
  48.     LABEL   GlyphMap_SIZEOF
  49.  
  50.  STRUCTURE    GlyphWidthEntry,0
  51.     STRUCT  gwe_Node,MLN_SIZE    ; on list returned by OT_WidthList inquiry
  52.     UWORD   gwe_Code        ; entry's character code value
  53.     ; the following ULONG is FIXED: 
  54.     ULONG   gwe_Width        ; character advance, as fraction of em width
  55.     LABEL   GlyphWidthEntry_SIZEOF
  56.  
  57.     ENDC    ; DISKFONT_GLYPH_I
  58.