Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
2.4 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: fd.h
  3. *
  4. * file which is going to be included by the most *.c files in this directory.
  5. * Supplies basic types, debugging stuff, error logging and checking stuff,
  6. * error codes, usefull macros etc.
  7. *
  8. * Created: 22-Oct-1990 15:23:44
  9. * Author: Bodin Dresevic [BodinD]
  10. *
  11. * Copyright (c) 1990 Microsoft Corporation
  12. \**************************************************************************/
  13. #define IFI_PRIVATE
  14. // macros for allocating and freeing memory
  15. //#include <stddef.h>
  16. //#include <stdarg.h>
  17. //#include <windef.h>
  18. //#include <wingdi.h>
  19. //#include <winddi.h>
  20. //#include "mapfile.h"
  21. #include "engine.h"
  22. #include "winres.h"
  23. #include "fondrv.h"
  24. #define abs(x) max((x),-(x))
  25. #if defined(_AMD64_) || defined(_IA64_)
  26. #define vLToE(pe,l) (*(pe) = (FLOAT)(l))
  27. #else // i386
  28. ULONG ulLToE (LONG l);
  29. VOID vLToE(FLOATL * pe, LONG l);
  30. #endif
  31. //#define DEBUGSIM
  32. BOOL BmfdEnableDriver(
  33. ULONG iEngineVersion,
  34. ULONG cj,
  35. PDRVENABLEDATA pded);
  36. BOOL
  37. bBmfdLoadFont(
  38. HFF iFile,
  39. PVOID pvView,
  40. ULONG cjView,
  41. ULONG iType,
  42. HFF *phff
  43. );
  44. BOOL
  45. BmfdUnloadFontFile (
  46. HFF hff
  47. );
  48. LONG
  49. BmfdQueryFontCaps (
  50. ULONG culCaps,
  51. PULONG pulCaps
  52. );
  53. LONG
  54. BmfdQueryFontFile (
  55. HFF hff,
  56. ULONG ulMode,
  57. ULONG cjBuf,
  58. PULONG pulBuf
  59. );
  60. PIFIMETRICS
  61. BmfdQueryFont (
  62. DHPDEV dhpdev,
  63. HFF hff,
  64. ULONG iFace,
  65. ULONG_PTR *pid
  66. );
  67. PVOID
  68. BmfdQueryFontTree (
  69. DHPDEV dhpdev,
  70. HFF hff,
  71. ULONG iFace,
  72. ULONG iMode,
  73. ULONG_PTR *pid
  74. );
  75. LONG
  76. BmfdQueryFontData (
  77. FONTOBJ *pfo,
  78. ULONG iMode,
  79. HGLYPH hg,
  80. GLYPHDATA *pgd,
  81. PVOID pv,
  82. ULONG cjSize
  83. );
  84. VOID
  85. BmfdDestroyFont (
  86. FONTOBJ *pfo
  87. );
  88. HFC
  89. BmfdOpenFontContext (
  90. FONTOBJ *pfo
  91. );
  92. BOOL
  93. BmfdCloseFontContext(
  94. HFC hfc
  95. );
  96. LONG
  97. BmfdQueryFaceAttr(
  98. HFC hfc,
  99. ULONG ulType,
  100. ULONG culBuffer,
  101. PULONG pulBuffer
  102. );
  103. BOOL BmfdQueryAdvanceWidths
  104. (
  105. FONTOBJ *pfo,
  106. ULONG iMode,
  107. HGLYPH *phg,
  108. LONG *plWidths,
  109. ULONG cGlyphs
  110. );
  111. BOOL bDbgPrintAndFail(PSZ);
  112. #include "fontfile.h"
  113. #include "winfont.h"
  114. #include "cvt.h"
  115. #include "simulate.h"
  116. #include "fon32.h"