home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / ibm8514 / brcFonts.h < prev    next >
Text File  |  1991-09-20  |  2KB  |  73 lines

  1. /*
  2.  * $Id: brcFonts.h,v 1.1 1991/09/20 19:10:24 mtranle Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1990
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * Permission to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted,
  10.  * provided that the above copyright notice appear in all copies and that 
  11.  * both that copyright notice and this permission notice appear in
  12.  * supporting documentation, and that the name of IBM not be
  13.  * used in advertising or publicity pertaining to distribution of the
  14.  * software without specific, written prior permission.
  15.  *
  16.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
  18.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22.  * SOFTWARE.
  23.  *
  24. */
  25. /*
  26.  * PRPQ 5799-PFF (C) COPYRIGHT IBM CORPORATION 1987,1990
  27.  * LICENSED MATERIALS - PROPERTY OF IBM
  28.  * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
  29.  */
  30. /*
  31.  *  Hardware interface routines for IBM 8514/A adapter for
  32.  *  X.11 server(s) on IBM equipment.
  33.  *
  34.  */
  35.  
  36. typedef struct _InstalledChar
  37. {
  38.     unsigned short int x ;
  39.     unsigned short int y ;    /* this is relative to the first cached line */
  40.     unsigned short int w ;
  41.     unsigned short int h ;
  42.     CharInfoPtr pInfo ;
  43. } InstalledCharRec, *InstalledCharPtr ;
  44.  
  45. typedef struct _InstalledFont
  46. {
  47.     unsigned short int    CacheIndex ;
  48.     unsigned short int    startline ;
  49.     unsigned short int    cacheheight ;
  50.     unsigned short int    firstchar ;
  51.     unsigned short int    lastchar ;
  52.     unsigned short int    numchars ;
  53.     InstalledCharPtr    *ppCharacter ;
  54.     struct _InstalledFont *NextFont ;
  55.     FontPtr        pFont ; /* The X font from which it came */
  56. } InstalledFontRec, *InstalledFontPtr ;
  57.  
  58. typedef struct _ibm8514FontCacheEntry
  59. {
  60.     unsigned long int    RPlaneMask ;
  61.     unsigned long int    WPlaneMask ;
  62.     int            numInstalled ;
  63.     unsigned short int    FirstAvailableLine ;
  64.     unsigned short int    NumLinesAvailable ;
  65.     InstalledFontPtr     FontList ;
  66. } ibm8514FontCacheRec, *ibm8514FontCachePtr ;
  67.  
  68. #define FONTCACHESTARTLINE    801
  69. #define FONTCACHELENGTH        222
  70. #define FONTCACHEWIDTH        1024
  71. #define FONTCACHEBYTEWIDTH    128
  72. #define NUMFONTPLANES        6    /* save 1 for stage, 1 for fill */
  73.