LOGFONT.cs 640 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Standard;
  4. [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
  5. internal struct LOGFONT
  6. {
  7. public int lfHeight;
  8. public int lfWidth;
  9. public int lfEscapement;
  10. public int lfOrientation;
  11. public int lfWeight;
  12. public byte lfItalic;
  13. public byte lfUnderline;
  14. public byte lfStrikeOut;
  15. public byte lfCharSet;
  16. public byte lfOutPrecision;
  17. public byte lfClipPrecision;
  18. public byte lfQuality;
  19. public byte lfPitchAndFamily;
  20. [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
  21. public string lfFaceName;
  22. }