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.

61 lines
1.8 KiB

  1. #ifndef __FONTDIR_H__
  2. #define __FONTDIR_H__
  3. /* font file header (Adaptation Guide section 6.4) */
  4. typedef struct {
  5. WORD dfVersion; /* not in FONTINFO */
  6. DWORD dfSize; /* not in FONTINFO */
  7. BYTE dfCopyright[60]; /* not in FONTINFO */
  8. WORD dfType;
  9. WORD dfPoints;
  10. WORD dfVertRes;
  11. WORD dfHorizRes;
  12. WORD dfAscent;
  13. WORD dfInternalLeading;
  14. WORD dfExternalLeading;
  15. BYTE dfItalic;
  16. BYTE dfUnderline;
  17. BYTE dfStrikeOut;
  18. WORD dfWeight;
  19. BYTE dfnCharSet;
  20. WORD dfPixWidth;
  21. WORD dfPixHeight;
  22. BYTE dfPitchAndFamily;
  23. WORD dfAvgWidth;
  24. WORD dfMaxWidth;
  25. BYTE dfFirstChar;
  26. BYTE dfLastChar;
  27. BYTE dfDefaultCHar;
  28. BYTE dfBreakChar;
  29. WORD dfWidthBytes;
  30. DWORD dfDevice; /* See Adaptation Guide 6.3.10 and 6.4 */
  31. DWORD dfFace; /* See Adaptation Guide 6.3.10 and 6.4 */
  32. DWORD dfBitsPointer; /* See Adaptation Guide 6.3.10 and 6.4 */
  33. } FFH;
  34. /*
  35. The lpFDirEntry is a string corresponding to the resource
  36. index (two bytes) prepended to an Fontdefs.h FFH structure, with device
  37. and face name strings appended
  38. First word is number of fonts, skip to first font resource name
  39. */
  40. typedef struct {
  41. WORD dfFontCount; /* Overall info */
  42. WORD dfSkipper; /* ?? */
  43. FFH xFFH;
  44. char cfFace;
  45. } FFHWRAP, FAR* LPFHHWRAP;
  46. #endif
  47. /****************************************************************************
  48. * $lgb$
  49. * 1.0 7-Mar-94 eric Initial revision.
  50. * $lge$
  51. *
  52. ****************************************************************************/
  53.