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.

71 lines
1.5 KiB

  1. /***
  2. **
  3. ** Module: PFB
  4. **
  5. ** Description:
  6. ** This is a module of the T1 to TT font converter. The module
  7. ** contains functions that manages the "printer binary file" file
  8. ** format (Adobe Type 1 for MS-Windows).
  9. **
  10. ** Author: Michael Jansson
  11. **
  12. ** Created: 5/26/93
  13. **
  14. ***/
  15. #ifndef _ARGS
  16. # define IN const
  17. # define OUT
  18. # define INOUT
  19. # define _ARGS(arg) arg
  20. #endif
  21. #ifndef FASTCALL
  22. # ifdef MSDOS
  23. # define FASTCALL __fastcall
  24. # else
  25. # define FASCALL
  26. # endif
  27. #endif
  28. struct t1file;
  29. /***
  30. ** Function: PFBAllocIOBlock
  31. **
  32. ** Description:
  33. ** Initiate an I/O stream for a PFB font file.
  34. ***/
  35. struct t1file *PFBAllocIOBlock _ARGS((IN char *name));
  36. /***
  37. ** Function: PFBFreeIOBlock
  38. **
  39. ** Description:
  40. ** Free an I/O stream for a PFB font file.
  41. ***/
  42. errcode FASTCALL PFBFreeIOBlock _ARGS((INOUT struct t1file *io));
  43. /***
  44. ** Function: PFBFileError
  45. **
  46. ** Description:
  47. ** Check if an I/O stream is ok.
  48. ***/
  49. boolean FASTCALL PFBFileError _ARGS((IN struct t1file *io));
  50. /***
  51. ** Function: PFBGetByte
  52. **
  53. ** Description:
  54. ** Pull one byte from the opened PFB font file.
  55. ** Please note that this function does not check
  56. ** if it succeedes it reading a byte or not. It is
  57. ** up to the calling module to manage the error
  58. ** checkes by using the FileError() function when
  59. ** appropriate.
  60. **
  61. ***/
  62. short FASTCALL PFBGetByte _ARGS((INOUT struct t1file *io));