PageRenderTime 50ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/nx-3.5.0/nx-X11/programs/Xserver/include/dixfont.h

#
C Header | 155 lines | 94 code | 35 blank | 26 comment | 0 complexity | 05b9290e383a8e353d4feed822ae15f5 MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0, LGPL-2.0
  1. /* $Xorg: dixfont.h,v 1.3 2000/08/17 19:53:29 cpqbld Exp $ */
  2. /***********************************************************
  3. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  4. All Rights Reserved
  5. Permission to use, copy, modify, and distribute this software and its
  6. documentation for any purpose and without fee is hereby granted,
  7. provided that the above copyright notice appear in all copies and that
  8. both that copyright notice and this permission notice appear in
  9. supporting documentation, and that the name of Digital not be
  10. used in advertising or publicity pertaining to distribution of the
  11. software without specific, written prior permission.
  12. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  13. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  14. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  15. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  16. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  17. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  18. SOFTWARE.
  19. ******************************************************************/
  20. /* $XFree86: xc/programs/Xserver/include/dixfont.h,v 3.7 2001/02/02 21:39:02 herrb Exp $ */
  21. #ifndef DIXFONT_H
  22. #define DIXFONT_H 1
  23. #include "dix.h"
  24. #include <X11/fonts/font.h>
  25. #include "closure.h"
  26. #include <X11/fonts/fontstruct.h>
  27. #define NullDIXFontProp ((DIXFontPropPtr)0)
  28. typedef struct _DIXFontProp *DIXFontPropPtr;
  29. extern FPEFunctions *fpe_functions;
  30. extern int FontToXError(int /*err*/);
  31. extern Bool SetDefaultFont(char * /*defaultfontname*/);
  32. extern void QueueFontWakeup(FontPathElementPtr /*fpe*/);
  33. extern void RemoveFontWakeup(FontPathElementPtr /*fpe*/);
  34. extern void FontWakeup(pointer /*data*/,
  35. int /*count*/,
  36. pointer /*LastSelectMask*/);
  37. extern int OpenFont(ClientPtr /*client*/,
  38. XID /*fid*/,
  39. Mask /*flags*/,
  40. unsigned /*lenfname*/,
  41. char * /*pfontname*/);
  42. extern int CloseFont(pointer /*pfont*/,
  43. XID /*fid*/);
  44. typedef struct _xQueryFontReply *xQueryFontReplyPtr;
  45. extern void QueryFont(FontPtr /*pFont*/,
  46. xQueryFontReplyPtr /*pReply*/,
  47. int /*nProtoCCIStructs*/);
  48. extern int ListFonts(ClientPtr /*client*/,
  49. unsigned char * /*pattern*/,
  50. unsigned int /*length*/,
  51. unsigned int /*max_names*/);
  52. int
  53. doListFontsWithInfo(ClientPtr /*client*/,
  54. LFWIclosurePtr /*c*/);
  55. extern int doPolyText(ClientPtr /*client*/,
  56. PTclosurePtr /*c*/
  57. );
  58. extern int PolyText(ClientPtr /*client*/,
  59. DrawablePtr /*pDraw*/,
  60. GCPtr /*pGC*/,
  61. unsigned char * /*pElt*/,
  62. unsigned char * /*endReq*/,
  63. int /*xorg*/,
  64. int /*yorg*/,
  65. int /*reqType*/,
  66. XID /*did*/);
  67. extern int doImageText(ClientPtr /*client*/,
  68. ITclosurePtr /*c*/);
  69. extern int ImageText(ClientPtr /*client*/,
  70. DrawablePtr /*pDraw*/,
  71. GCPtr /*pGC*/,
  72. int /*nChars*/,
  73. unsigned char * /*data*/,
  74. int /*xorg*/,
  75. int /*yorg*/,
  76. int /*reqType*/,
  77. XID /*did*/);
  78. extern int SetFontPath(ClientPtr /*client*/,
  79. int /*npaths*/,
  80. unsigned char * /*paths*/,
  81. int * /*error*/);
  82. extern int SetDefaultFontPath(char * /*path*/);
  83. extern unsigned char *GetFontPath(int * /*count*/,
  84. int * /*length*/);
  85. extern int LoadGlyphs(ClientPtr /*client*/,
  86. FontPtr /*pfont*/,
  87. unsigned /*nchars*/,
  88. int /*item_size*/,
  89. unsigned char * /*data*/);
  90. extern void DeleteClientFontStuff(ClientPtr /*client*/);
  91. /* Quartz support on Mac OS X pulls in the QuickDraw
  92. framework whose InitFonts function conflicts here. */
  93. #ifdef __DARWIN__
  94. #define InitFonts Darwin_X_InitFonts
  95. #endif
  96. extern void InitFonts(void);
  97. extern void FreeFonts(void);
  98. extern FontPtr find_old_font(XID /*id*/);
  99. extern void GetGlyphs(FontPtr /*font*/,
  100. unsigned long /*count*/,
  101. unsigned char * /*chars*/,
  102. FontEncoding /*fontEncoding*/,
  103. unsigned long * /*glyphcount*/,
  104. CharInfoPtr * /*glyphs*/);
  105. extern void QueryGlyphExtents(FontPtr /*pFont*/,
  106. CharInfoPtr * /*charinfo*/,
  107. unsigned long /*count*/,
  108. ExtentInfoPtr /*info*/);
  109. extern Bool QueryTextExtents(FontPtr /*pFont*/,
  110. unsigned long /*count*/,
  111. unsigned char * /*chars*/,
  112. ExtentInfoPtr /*info*/);
  113. extern Bool ParseGlyphCachingMode(char * /*str*/);
  114. extern void InitGlyphCaching(void);
  115. extern void SetGlyphCachingMode(int /*newmode*/);
  116. #endif /* DIXFONT_H */