home *** CD-ROM | disk | FTP | other *** search
- IFND GRAPHICS_TEXT_I@
- GRAPHICS_TEXT_I@ = 1
- ;*******************************************************************
- ; Commodore-Amiga, Inc. ;
- ; text.i ;
- ;*******************************************************************
- ;*******************************************************************
- ;
- ; graphics library text structures
- ;
- ;*******************************************************************
-
- IFND EXEC_PORTS_I@
- INCLUDE "exec/ports.i"
- ENDIF
-
- ;------ Font Styles --------------------------------------------------
- FS_NORMAL EQU 0 ;normal text (no style attributes set)
- ; BITDEF FS,EXTENDED,3 ;extended face (must be designed)
- FSB_EXTENDED = 3 ;extended face (must be designed)
- FSF_EXTENDED = 1<<3 ;extended face (must be designed)
- ; BITDEF FS,ITALIC,2 ;italic (slanted 1:2 right)
- FSB_ITALIC = 2 ;italic (slanted 1:2 right)
- FSF_ITALIC = 1<<2 ;italic (slanted 1:2 right)
- ; BITDEF FS,BOLD,1 ;bold face text (ORed w/ shifted right 1)
- FSB_BOLD = 1 ;bold face text (ORed w/ shifted right 1)
- FSF_BOLD = 1<<1 ;bold face text (ORed w/ shifted right 1)
- ; BITDEF FS,UNDERLINED,0 ;underlined (under baseline)
- FSB_UNDERLINED = 0 ;underlined (under baseline)
- FSF_UNDERLINED = 1<<0 ;underlined (under baseline)
-
- ;------ Font Flags ---------------------------------------------------
- ; BITDEF FP,ROMFONT,0 ;font is in rom
- FPB_ROMFONT = 0 ;font is in rom
- FPF_ROMFONT = 1<<0 ;font is in rom
- ; BITDEF FP,DISKFONT,1 ;font is from diskfont.library
- FPB_DISKFONT = 1 ;font is from diskfont.library
- FPF_DISKFONT = 1<<1 ;font is from diskfont.library
- ; BITDEF FP,REVPATH,2 ;designed path is reversed (e.g. left)
- FPB_REVPATH = 2 ;designed path is reversed (e.g. left)
- FPF_REVPATH = 1<<2 ;designed path is reversed (e.g. left)
- ; BITDEF FP,TALLDOT,3 ;designed for hires non-interlaced
- FPB_TALLDOT = 3 ;designed for hires non-interlaced
- FPF_TALLDOT = 1<<3 ;designed for hires non-interlaced
- ; BITDEF FP,WIDEDOT,4 ;designed for lores interlaced
- FPB_WIDEDOT = 4 ;designed for lores interlaced
- FPF_WIDEDOT = 1<<4 ;designed for lores interlaced
- ; BITDEF FP,PROPORTIONAL,5 ;character sizes can vary from nominal
- FPB_PROPORTIONAL = 5 ;character sizes can vary from nominal
- FPF_PROPORTIONAL = 1<<5 ;character sizes can vary from nominal
- ; BITDEF FP,DESIGNED,6 ;size is "designed", not constructed
- FPB_DESIGNED = 6 ;size is "designed"F_ not constructed
- FP = 1<<6 ;size is "designed", not constructed
- ; BITDEF FP,REMOVED,7 ; the font has been removed
- FPB_REMOVED = 7 ; the font has been removed
- FPF_REMOVED = 1<<7 ; the font has been removed
-
-
- ;*****; TextAttr node ;***********************************************
- STRUCTURE TextAttr,0
- APTR ta_Name ;name of the desired font
- UWORD ta_YSize ;size of the desired font
- UBYTE ta_Style ;desired font style
- UBYTE ta_Flags ;font preferences
- LABEL ta_SIZEOF
-
-
- ;*****; TextFont node ;***********************************************
- STRUCTURE TextFont,MN_SIZE
- ; ;font name in LN \ used in this
- UWORD tf_YSize ;font height | order to best
- UBYTE tf_Style ;font style | match a font
- UBYTE tf_Flags ;preference attributes / request.
- UWORD tf_XSize ;nominal font width
- UWORD tf_Baseline ;distance from the top of char to baseline
- UWORD tf_BoldSmear ;smear to affect a bold enhancement
-
- UWORD tf_Accessors ;access count
-
- UBYTE tf_LoChar ;the first character described here
- UBYTE tf_HiChar ;the last character described here
- APTR tf_CharData ;the bit character data
-
- UWORD tf_Modulo ;the row modulo for the strike font data
- APTR tf_CharLoc ;ptr to location data for the strike font
- ; ; 2 words: bit offset then size
- APTR tf_CharSpace ;ptr to words of proportional spacing data
- APTR tf_CharKern ;ptr to words of kerning data
- LABEL tf_SIZEOF
-
- ENDIF
- END
-