home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / pGFX / Text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  5.5 KB  |  149 lines

  1. @DATABASE "pGFX/Text.h"
  2. @MASTER   "Work2:AD/IInc/pGFX/Text.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:34:55
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "pGFX/Text.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"pGFX/Text.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_FontGlyphLoc" LINK "pGFX/Text.h/File" 64}  @{"pOS_TextAttr" LINK "pGFX/Text.h/File" 18}  @{"pOS_TextDim" LINK "pGFX/Text.h/File" 118}  @{"pOS_TextFont" LINK "pGFX/Text.h/File" 30}
  16.  
  17. @ENDNODE
  18. @NODE File "pGFX/Text.h"
  19. #ifndef __INC_POS_PGFX_TEXT_H
  20. #define __INC_POS_PGFX_TEXT_H
  21. /*******************************************************************
  22.  Includes Release 24
  23.  (C) Copyright 1995-1997 proDAD
  24.      All Rights Reserved
  25.  
  26.  $AUT Holger Burkarth
  27.  $DAT >>Text.h<<   05 Oct 1996    08:48:20 - (C) ProDAD
  28. *******************************************************************/
  29. #ifndef __INC_POS_PEXEC_LIST_H
  30. #include <@{"pExec/List.h" LINK "pExec/List.h/File"}>
  31. #endif
  32.  
  33.  
  34. /*----------------------------------
  35. -----------------------------------*/
  36. struct pOS_TextAttr
  37. {
  38.   const @{"CHAR" LINK "pExec/Types.h/File" 100}               *ta_Name;   /* name of the font */
  39.         @{"UWORD" LINK "pExec/Types.h/File" 93}               ta_YSize;  /* height of the font */
  40.         @{"UWORD" LINK "pExec/Types.h/File" 93}               ta_Style;  /* (enum pOS_FontStyles) */
  41.         @{"UWORD" LINK "pExec/Types.h/File" 93}               ta_Flags;  /* (enum pOS_FontFlags) */
  42.   const @{"struct pOS_TagItem" LINK "pUtil/TagItem.h/File" 19} *ta_Tags;   /* extended attributes */
  43. };
  44.  
  45.  
  46. /*----------------------------------
  47. -----------------------------------*/
  48. struct pOS_TextFont
  49. {
  50.   @{"struct pOS_ExNode" LINK "pExec/List.h/File" 37} tf_Node;  /* */
  51.                             /* font name in ln_Name  */
  52.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_YSize; /* font height           */
  53.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_Style; /* (enum pOS_FontStyles) */
  54.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_Flags; /* (enum pOS_FontFlags)  */
  55.  
  56.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_XSize;       /* nominal font width */
  57.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_Baseline;    /* distance from the top of char to baseline */
  58.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_BoldSmear;   /* smear to affect a bold enhancement */
  59.  
  60.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_Accessors;   /* access count */
  61.  
  62.   @{"UBYTE" LINK "pExec/Types.h/File" 95}           tf_LoChar;      /* the first character described here */
  63.   @{"UBYTE" LINK "pExec/Types.h/File" 95}           tf_HiChar;      /* the last character described here */
  64.   const @{"UBYTE" LINK "pExec/Types.h/File" 95}    *tf_CharData;    /* the bit character data */
  65.  
  66.   @{"UWORD" LINK "pExec/Types.h/File" 93}           tf_Modulo;      /* the row modulo for the strike font data */
  67.   const @{"struct pOS_FontGlyphLoc" LINK File 64} *tf_CharLoc; /* ptr to location data for the strike font */
  68.                                   /*   2 words: bit offset then size */
  69.   const @{"SWORD" LINK "pExec/Types.h/File" 92}    *tf_CharSpace;   /* ptr to words of proportional spacing data */
  70.   const @{"SWORD" LINK "pExec/Types.h/File" 92}    *tf_CharKern;    /* ptr to words of kerning data */
  71.  
  72.   struct pOS_GfxLibrary *tf_Base;        /* Optional: private Fonts */
  73.   @{"ULONG" LINK "pExec/Types.h/File" 91}                  tf_BaseUse[2];  /* Private for tf_Base     */
  74.  
  75.   @{"UBYTE" LINK "pExec/Types.h/File" 95} tf_Reserved[16];
  76. };
  77.  
  78.  
  79.  
  80. /*----------------------------------
  81. -----------------------------------*/
  82. struct pOS_FontGlyphLoc
  83. {
  84.   @{"UWORD" LINK "pExec/Types.h/File" 93} fgl_BitOffset;
  85.   @{"UWORD" LINK "pExec/Types.h/File" 93} fgl_BitSize;
  86. };
  87.  
  88.  
  89.  
  90. enum pOS_FontStyles
  91. {
  92.   FNTSTY_Normal=     0x00, /* normal text (no style bits set) */
  93.   FNTSTYB_Underline= 0,    /* underlined (under baseline) */
  94.   FNTSTYF_Underline= 0x01,
  95.   FNTSTYB_Bold=      1,    /* bold face text (ORed w/ shifted) */
  96.   FNTSTYF_Bold=      0x02,
  97.   FNTSTYB_Italic=    2,    /* italic (slanted 1:2 right) */
  98.   FNTSTYF_Italic=    0x04,
  99.   FNTSTYB_Extended=  3,    /* extended face (wider than normal) */
  100.   FNTSTYF_Extended=  0x08,
  101.   FNTSTYB_Colorfont= 6,    /* this uses ColorTextFont structure */
  102.   FNTSTYF_Colorfont= 0x40,
  103.  
  104.   FNTSTYF_HorzMirr=  0x0100, /* horizontal gespiegelt */
  105.   FNTSTYF_VertMirr=  0x0200, /* vertikal gespiegelt */
  106. };
  107.  
  108.  
  109. enum pOS_FontFlags
  110. {
  111.   FNTFLGB_RomFont=       0,     /* font is in rom */
  112.   FNTFLGF_RomFont=       0x01,
  113.   FNTFLGB_DiskFont=      1,     /* font is from disk */
  114.   FNTFLGF_DiskFont=      0x02,
  115.   FNTFLGB_RevPath=       2,     /* designed path is reversed (e.g. left) */
  116.   FNTFLGF_RevPath=       0x04,
  117.   FNTFLGB_TallDot=       3,     /* designed for hires non-interlaced */
  118.   FNTFLGF_TallDot=       0x08,
  119.   FNTFLGB_WideDot=       4,     /* designed for lores interlaced */
  120.   FNTFLGF_WideDot=       0x10,
  121.   FNTFLGB_Proportional=  5,     /* character sizes can vary from nominal */
  122.   FNTFLGF_Proportional=  0x20,
  123.   FNTFLGB_Designed=      6,
  124.   FNTFLGF_Designed=      0x40,
  125.  
  126.   FNTFLGB_Removed=       7,     /* the font has been removed */
  127.   FNTFLGF_Removed=       0x80,
  128. };
  129.  
  130.  
  131.  
  132.  
  133.  
  134. /*----------------------------------
  135. -----------------------------------*/
  136. struct pOS_TextDim
  137. {
  138.   @{"UWORD" LINK "pExec/Types.h/File" 93} td_MaxWidth;     /* maximale Pixel-Width */
  139.   @{"UWORD" LINK "pExec/Types.h/File" 93} td_UsedNumChars; /* Anzahl der Chars */
  140.   @{"UWORD" LINK "pExec/Types.h/File" 93} td_UsedWidth;
  141.  
  142.   @{"UBYTE" LINK "pExec/Types.h/File" 95} td_Reserved[32];
  143. };
  144.  
  145.  
  146.  
  147. #endif
  148. @ENDNODE
  149.