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.

74 lines
2.5 KiB

  1. /*
  2. * Adobe Universal Font Library
  3. *
  4. * Copyright (c) 1996 Adobe Systems Inc.
  5. * All Rights Reserved
  6. *
  7. * UFLPriv.h -- UFL Private data structure
  8. *
  9. *
  10. * $Header:
  11. */
  12. #ifndef _H_Priv
  13. #define _H_Priv
  14. /*============================================================================*
  15. * Include files used by this interface *
  16. *============================================================================*/
  17. #include "UFLCnfig.h"
  18. #include "UFLTypes.h"
  19. #include "UFLStrm.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /* The Metrowerks 68k Mac compiler expects functions to return pointers in A0
  24. * instead of D0. This pragma tells it they are in D0.
  25. */
  26. #if defined(MAC_ENV) && defined(__MWERKS__) && !defined(powerc)
  27. #pragma pointers_in_D0
  28. #endif
  29. /*============================================================================*
  30. * Constants *
  31. *============================================================================*/
  32. #define kLineEnd '\n'
  33. #define kWinLineEnd '\r' /* Windows only */
  34. /*============================================================================*
  35. * UFLStruct *
  36. * The UFLStruct is created by UFLInit. It will contain all of the *
  37. * information that is needed for all fonts. This includes a memory object, *
  38. * callback procedures for the client to provide needed functionality, and *
  39. * printer device characteristics. *
  40. * *
  41. *============================================================================*/
  42. typedef struct {
  43. UFLBool bDLGlyphTracking;
  44. UFLMemObj mem;
  45. UFLFontProcs fontProcs;
  46. UFLOutputDevice outDev;
  47. UFLHANDLE hOut;
  48. } UFLStruct;
  49. #define ISLEVEL1(pUFObj) (pUFObj->pUFL->outDev.lPSLevel == kPSLevel1)
  50. #define GETPSVERSION(pUFObj) (pUFObj->pUFL->outDev.lPSVersion)
  51. #define GETMAXGLYPHS(pUFObj) (ISLEVEL1(pUFObj) ? 256 : 128)
  52. #define GETTTFONTDATA(pUFO,ulTable,cbOffset,pvBuffer,cbData, index) \
  53. ((pUFO)->pUFL->fontProcs.pfGetTTFontData((pUFO)->hClientData, \
  54. (ulTable), (cbOffset), \
  55. (pvBuffer), (cbData), (index)))
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif