home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / ls / root.2 / usr / include / sys / fnt.h / fnt
Text File  |  1998-08-19  |  2KB  |  77 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. /*
  12.  *      Copyright (C) The Santa Cruz Operation, 1997.
  13.  *      This Module contains Proprietary Information of
  14.  *      The Santa Cruz Operation and should be treated as Confidential.
  15.  */
  16.  
  17. #ifndef    _IO_FNT_FNT_H    /* wrapper symbol for kernel use */
  18. #define    _IO_FNT_FNT_H    /* subject to change without notice */
  19.  
  20. #ident    "@(#)fnt.h    1.3"
  21. #ident    "$Header: $"
  22.  
  23. #if defined(__cplusplus)
  24. extern "C" {
  25. #endif
  26.  
  27. #ifdef _KERNEL_HEADERS
  28.  
  29. #include <io/ws/ws.h>
  30. #include <io/ws/mb.h>
  31. #include <util/types.h>
  32.  
  33. #elif defined(_KERNEL)
  34.  
  35. #include <sys/ws/ws.h>
  36. #include <sys/mb.h>
  37. #include <sys/types.h>
  38.  
  39. #endif /* _KERNEL_HEADERS */
  40.  
  41. #if defined(_KERNEL)
  42.  
  43. extern int fnt_init_flg; /* indicate fnt has been loaded and initialized */
  44. extern unsigned char    *altcharsetdata[];
  45. extern unsigned char    *codeset0data[];
  46. extern unsigned char    *codeset1data[];
  47. extern unsigned char    *codeset2data[];
  48. extern unsigned char    *codeset3data[];
  49. extern int        codeset0width;
  50. extern int        codeset1width;
  51. extern int        codeset2width;
  52. extern int        codeset3width;
  53.  
  54. extern unsigned char    *fnt_getbitmap(ws_channel_t *, wchar_t);
  55. extern void        fnt_unlockbitmap(ws_channel_t *, wchar_t);
  56. extern int        fnt_setfont(ws_channel_t *, caddr_t);
  57. extern int        fnt_getfont(ws_channel_t *, caddr_t);
  58.  
  59. #define MAX_CODESET 4
  60. /*
  61.  * Pointers to font data and thier lenghts
  62.  */
  63. typedef struct fnt_codeset {
  64.  
  65.     size_t    length;
  66.     void    *addr;
  67.  
  68. } fnt_codeset_t;
  69.  
  70. #endif /* _KERNEL */
  71.  
  72. #if defined(__cplusplus)
  73.     }
  74. #endif
  75.  
  76. #endif /* _IO_FNT_FNT_H */
  77.