home *** CD-ROM | disk | FTP | other *** search
/ Dave Lowe: AssemPro For Development Amiga Driver / Lowe_AssemProForDevelopmentAmigaDriver.adf / Includes / graphics / text.i < prev    next >
Encoding:
Text File  |  1978-06-06  |  4.2 KB  |  94 lines

  1.    IFND  GRAPHICS_TEXT_I@
  2. GRAPHICS_TEXT_I@      =   1
  3. ;*******************************************************************
  4. ;               Commodore-Amiga, Inc.                              ;
  5. ;               text.i                                             ;
  6. ;*******************************************************************
  7. ;*******************************************************************
  8. ;
  9. ;  graphics library text structures
  10. ;
  11. ;*******************************************************************
  12.    
  13.    IFND     EXEC_PORTS_I@
  14.    INCLUDE  "exec/ports.i"
  15.    ENDIF
  16.  
  17. ;------ Font Styles --------------------------------------------------
  18. FS_NORMAL   EQU 0             ;normal text (no style attributes set)
  19. ;   BITDEF   FS,EXTENDED,3     ;extended face (must be designed)
  20. FSB_EXTENDED = 3     ;extended face (must be designed)
  21. FSF_EXTENDED = 1<<3     ;extended face (must be designed)
  22. ;   BITDEF   FS,ITALIC,2       ;italic (slanted 1:2 right)
  23. FSB_ITALIC = 2       ;italic (slanted 1:2 right)
  24. FSF_ITALIC = 1<<2       ;italic (slanted 1:2 right)
  25. ;   BITDEF   FS,BOLD,1         ;bold face text (ORed w/ shifted right 1)
  26. FSB_BOLD = 1         ;bold face text (ORed w/ shifted right 1)
  27. FSF_BOLD = 1<<1         ;bold face text (ORed w/ shifted right 1)
  28. ;   BITDEF   FS,UNDERLINED,0   ;underlined (under baseline)
  29. FSB_UNDERLINED = 0   ;underlined (under baseline)
  30. FSF_UNDERLINED = 1<<0   ;underlined (under baseline)
  31.  
  32. ;------ Font Flags ---------------------------------------------------
  33. ;   BITDEF   FP,ROMFONT,0      ;font is in rom
  34. FPB_ROMFONT = 0      ;font is in rom
  35. FPF_ROMFONT = 1<<0      ;font is in rom
  36. ;   BITDEF   FP,DISKFONT,1     ;font is from diskfont.library
  37. FPB_DISKFONT = 1     ;font is from diskfont.library
  38. FPF_DISKFONT = 1<<1     ;font is from diskfont.library
  39. ;   BITDEF   FP,REVPATH,2      ;designed path is reversed (e.g. left)
  40. FPB_REVPATH = 2      ;designed path is reversed (e.g. left)
  41. FPF_REVPATH = 1<<2      ;designed path is reversed (e.g. left)
  42. ;   BITDEF   FP,TALLDOT,3      ;designed for hires non-interlaced
  43. FPB_TALLDOT = 3      ;designed for hires non-interlaced
  44. FPF_TALLDOT = 1<<3      ;designed for hires non-interlaced
  45. ;   BITDEF   FP,WIDEDOT,4      ;designed for lores interlaced
  46. FPB_WIDEDOT = 4      ;designed for lores interlaced
  47. FPF_WIDEDOT = 1<<4      ;designed for lores interlaced
  48. ;   BITDEF   FP,PROPORTIONAL,5 ;character sizes can vary from nominal
  49. FPB_PROPORTIONAL = 5 ;character sizes can vary from nominal
  50. FPF_PROPORTIONAL = 1<<5 ;character sizes can vary from nominal
  51. ;   BITDEF   FP,DESIGNED,6     ;size is "designed", not constructed
  52. FPB_DESIGNED = 6     ;size is "designed"F_ not constructed
  53. FP = 1<<6            ;size is "designed", not constructed
  54. ;   BITDEF   FP,REMOVED,7      ; the font has been removed
  55. FPB_REMOVED = 7      ; the font has been removed
  56. FPF_REMOVED = 1<<7      ; the font has been removed
  57.  
  58.  
  59. ;*****; TextAttr node ;***********************************************
  60.  STRUCTURE  TextAttr,0
  61.    APTR     ta_Name           ;name of the desired font
  62.    UWORD    ta_YSize          ;size of the desired font
  63.    UBYTE    ta_Style          ;desired font style
  64.    UBYTE    ta_Flags          ;font preferences
  65.    LABEL    ta_SIZEOF
  66.  
  67.  
  68. ;*****; TextFont node ;***********************************************
  69.  STRUCTURE  TextFont,MN_SIZE
  70. ;                             ;font name in LN        \ used in this
  71.    UWORD    tf_YSize          ;font height            | order to best
  72.    UBYTE    tf_Style          ;font style             | match a font
  73.    UBYTE    tf_Flags          ;preference attributes  / request.
  74.    UWORD    tf_XSize          ;nominal font width
  75.    UWORD    tf_Baseline       ;distance from the top of char to baseline
  76.    UWORD    tf_BoldSmear      ;smear to affect a bold enhancement
  77.  
  78.    UWORD    tf_Accessors      ;access count
  79.  
  80.    UBYTE    tf_LoChar         ;the first character described here
  81.    UBYTE    tf_HiChar         ;the last character described here
  82.    APTR     tf_CharData       ;the bit character data
  83.  
  84.    UWORD    tf_Modulo         ;the row modulo for the strike font data
  85.    APTR     tf_CharLoc        ;ptr to location data for the strike font
  86. ;           ;  2 words: bit offset then size
  87.    APTR     tf_CharSpace      ;ptr to words of proportional spacing data
  88.    APTR     tf_CharKern       ;ptr to words of kerning data
  89.    LABEL    tf_SIZEOF
  90.  
  91.    ENDIF
  92.    END
  93.