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.

64 lines
1.5 KiB

  1. /*
  2. * Adobe Universal Font Library
  3. *
  4. * Copyright (c) 1996 Adobe Systems Inc.
  5. * All Rights Reserved
  6. *
  7. * UFOCFF.h -- Universal Font Object to be used w/ CFF font.
  8. *
  9. *
  10. * $Header:
  11. */
  12. #ifndef _H_UFOCFF
  13. #define _H_UFOCFF
  14. /*
  15. * Special postfix, CDevProc, and guestimation value for Metrics2 size
  16. * used when printing on %hostfont% RIP with bug #388111.
  17. */
  18. #define HFPOSTFIX "-hf"
  19. #define HFCIDCDEVPROC "{pop 4 index add}bind"
  20. #define HFVMM2SZ 20 /* About 4% of kVMTTT1Char; this, too, is a guestmation value. */
  21. /*============================================================================*
  22. * Include files used by this interface *
  23. *============================================================================*/
  24. #include "UFO.h"
  25. #include "xcf_pub.h"
  26. typedef struct tagCFFFontStruct {
  27. XFhandle hFont;
  28. UFLCFFFontInfo info;
  29. UFLCFFReadBuf *pReadBuf;
  30. } CFFFontStruct;
  31. UFOStruct*
  32. CFFFontInit(
  33. const UFLMemObj* pMem,
  34. const UFLStruct* pUFL,
  35. const UFLRequest* pRequest,
  36. UFLBool* pTestRestricted
  37. );
  38. UFLErrCode
  39. CFFCreateBaseFont(
  40. UFOStruct *pUFObj,
  41. const UFLGlyphsInfo *pGlyphs,
  42. unsigned long *pVMUsage,
  43. char *pHostFontName
  44. );
  45. UFLErrCode
  46. CFFGIDsToCIDs(
  47. const CFFFontStruct* pFont,
  48. const short cGlyphs,
  49. const UFLGlyphID* pGIDs,
  50. unsigned short* pCIDs
  51. );
  52. #endif