PrivateRec.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #region MIT License
  2. /*Copyright (c) 2012 Robert Rouhani <robert.rouhani@gmail.com>
  3. SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
  4. Permission is hereby granted, free of charge, to any person obtaining a copy of
  5. this software and associated documentation files (the "Software"), to deal in
  6. the Software without restriction, including without limitation the rights to
  7. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  8. of the Software, and to permit persons to whom the Software is furnished to do
  9. so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in all
  11. copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  18. SOFTWARE.*/
  19. #endregion
  20. using System;
  21. using System.Runtime.InteropServices;
  22. #if WIN64
  23. using FT_26Dot6 = System.Int32;
  24. using FT_Fixed = System.Int32;
  25. using FT_Long = System.Int32;
  26. using FT_Pos = System.Int32;
  27. using FT_ULong = System.UInt32;
  28. #else
  29. using FT_26Dot6 = System.IntPtr;
  30. using FT_Fixed = System.IntPtr;
  31. using FT_Long = System.IntPtr;
  32. using FT_Pos = System.IntPtr;
  33. using FT_ULong = System.UIntPtr;
  34. #endif
  35. namespace SharpFont.PostScript.Internal
  36. {
  37. [StructLayout(LayoutKind.Sequential)]
  38. internal struct PrivateRec
  39. {
  40. internal int unique_id;
  41. internal int lenIV;
  42. internal byte num_blue_values;
  43. internal byte num_other_blues;
  44. internal byte num_family_blues;
  45. internal byte num_family_other_blues;
  46. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 14)]
  47. internal short[] blue_values;
  48. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
  49. internal short[] other_blues;
  50. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 14)]
  51. internal short[] family_blues;
  52. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
  53. internal short[] family_other_blues;
  54. internal FT_Fixed blue_scale;
  55. internal int blue_shift;
  56. internal int blue_fuzz;
  57. internal ushort standard_width;
  58. internal ushort standard_height;
  59. internal byte num_snap_widths;
  60. internal byte num_snap_heights;
  61. internal byte force_bold;
  62. internal byte round_stem_up;
  63. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 13)]
  64. internal short[] snap_widths;
  65. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 13)]
  66. internal short[] snap_heights;
  67. internal FT_Fixed expansion_factor;
  68. internal FT_Long language_group;
  69. internal FT_Long password;
  70. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
  71. internal short[] min_feature;
  72. }
  73. }