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.

85 lines
2.0 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: fontinc.hxx
  3. *
  4. * Standard includes for fonts
  5. *
  6. * Copyright (c) 1990-1999 Microsoft Corporation
  7. *
  8. \**************************************************************************/
  9. #define MAPPER_DEFAULT_FONT_HEIGHT -12
  10. extern "C" FLONG gflFontDebug;
  11. #define DEBUG_MAPPER 0x1
  12. #define DEBUG_FONTTABLE 0x2
  13. #define DEBUG_FONTTABLE_EXTRA 0x4
  14. #define DEBUG_MAPPER_FLAG_SIMULATIONS 0x8
  15. #define DEBUG_MAPPER_MSCHECK 0x10
  16. #define DEBUG_DUMP_FHOBJ 0x20
  17. #define DEBUG_FORCE_MAPPING 0x40
  18. #define DEBUG_AA 0x80
  19. #define DEBUG_INIT 0x100
  20. #define DEBUG_CACHE 0x200
  21. #define DEBUG_INSERT 0x400
  22. #define DEBUG_PPFEMAPFONT 0x800
  23. //
  24. // Supplementary font services
  25. //
  26. extern "C" {
  27. VOID vIFIMetricsToLogFontW(PLOGFONTW, PIFIMETRICS);
  28. BOOL bIFIMetricsToLogFontW(RFONTOBJ &, DCOBJ &, PLOGFONTW, PIFIMETRICS);
  29. VOID vIFIMetricsToEnumLogFontExDvW(ENUMLOGFONTEXDVW *plfw,IFIMETRICS *pifi);
  30. BOOL bIFIMetricsToTextMetricW(RFONTOBJ &, DCOBJ &, TMW_INTERNAL *, PIFIMETRICS);
  31. BOOL bGetTextMetrics(RFONTOBJ &rfo, DCOBJ &dco, TMW_INTERNAL * ptmi);
  32. SIZE_T cjCopyFontDataW(
  33. DCOBJ &,
  34. PENUMFONTDATAW,
  35. PFEOBJ &,
  36. ULONG,
  37. PWSZ,
  38. ULONG,
  39. BOOL,
  40. ULONG
  41. );
  42. ULONGSIZE_T cjIFIMetricsToOTMW (
  43. TMDIFF *ptmd,
  44. OUTLINETEXTMETRICW *potmw,
  45. RFONTOBJ &rfo,
  46. DCOBJ &dco,
  47. PIFIMETRICS pifi,
  48. BOOL bStrings
  49. );
  50. };
  51. VOID vConvertLogFontW(ENUMLOGFONTEXDVW *pelfexdvw, LOGFONTW *plfw);
  52. BOOL
  53. bGetNtoD(
  54. FD_XFORM*,
  55. LOGFONTW*,
  56. IFIOBJ&,
  57. DCOBJ*,
  58. POINTL* const
  59. );
  60. BOOL
  61. bGetNtoD_Win31(
  62. FD_XFORM*,
  63. LOGFONTW*,
  64. IFIOBJ&,
  65. DCOBJ*,
  66. FLONG,
  67. POINTL* const,
  68. BOOL bIsLinkedFont
  69. );