home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / ace_basic / ace / include / diskfont / glyph.h < prev    next >
C/C++ Source or Header  |  1977-12-31  |  2KB  |  76 lines

  1. #ifndef  DISKFONT_GLYPH_H
  2. #define  DISKFONT_GLYPH_H 1
  3. /*
  4. ** glyph.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for glyph.h
  17. */
  18. #ifndef GlyphEnginePtr
  19. #define GlyphEnginePtr ADDRESS
  20. #endif
  21. #ifndef GlyphMapPtr
  22. #define GlyphMapPtr ADDRESS
  23. #endif
  24. #ifndef GlyphWidthEntryPtr
  25. #define GlyphWidthEntryPtr ADDRESS
  26. #endif
  27. /*
  28. ** End of StructPointer defines for glyph.h
  29. */
  30.         
  31. #ifndef  EXEC_TYPES_H
  32. #include <exec/types.h>
  33. #endif
  34.  
  35. #ifndef  EXEC_LIBRARIES_H
  36. #include <exec/libraries.h>
  37. #endif
  38.  
  39. #ifndef  EXEC_NODES_H
  40. #include <exec/nodes.h>
  41. #endif
  42.  
  43.  
  44. /* A GlyphEngine must be acquired via OpenEngine and is read-only */
  45. STRUCT GlyphEngine  
  46.     LibraryPtr  gle_Library  /* engine library */
  47.     ADDRESS   gle_Name      /* library basename: e.g. "bullet" */
  48.     /* private library data follows... */
  49. END STRUCT 
  50.  
  51. #define FIXED LONGINT      /* 32 bit signed w/ 16 bits of fraction */
  52.  
  53. STRUCT GlyphMap  
  54.     SHORTINT   glm_BMModulo    /* # of bytes in row: always multiple of 4 */
  55.     SHORTINT   glm_BMRows      /* # of rows in bitmap */
  56.     SHORTINT   glm_BlackLeft   /* # of blank pixel columns at left */
  57.     SHORTINT   glm_BlackTop    /* # of blank rows at top */
  58.     SHORTINT   glm_BlackWidth  /* span of contiguous non-blank columns */
  59.     SHORTINT   glm_BlackHeight     /* span of contiguous non-blank rows */
  60.     FIXED   glm_XOrigin     /* distance from upper left corner of bitmap */
  61.     FIXED   glm_YOrigin     /*   to initial CP,  in fractional pixels */
  62.     SHORTINT    glm_X0      /* approximation of XOrigin in whole pixels */
  63.     SHORTINT    glm_Y0      /* approximation of YOrigin in whole pixels */
  64.     SHORTINT    glm_X1      /* approximation of XOrigin + Width */
  65.     SHORTINT    glm_Y1      /* approximation of YOrigin + Width */
  66.     FIXED   glm_Width       /* character advance,  as fraction of em width */
  67.     ADDRESS   glm_BitMap      /* actual glyph bitmap */
  68. END STRUCT 
  69.  
  70. STRUCT GlyphWidthEntry  
  71.     MinNode gwe_Node     /* on list returned by OT_WidthList inquiry */
  72.     SHORTINT   gwe_Code        /* entry's character code value */
  73.     FIXED   gwe_Width       /* character advance,  as fraction of em width */
  74. END STRUCT 
  75. #endif   /* DISKFONT_GLYPH_H */
  76.