FaceInfoRec.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. using SharpFont.Internal;
  23. #if WIN64
  24. using FT_26Dot6 = System.Int32;
  25. using FT_Fixed = System.Int32;
  26. using FT_Long = System.Int32;
  27. using FT_Pos = System.Int32;
  28. using FT_ULong = System.UInt32;
  29. #else
  30. using FT_26Dot6 = System.IntPtr;
  31. using FT_Fixed = System.IntPtr;
  32. using FT_Long = System.IntPtr;
  33. using FT_Pos = System.IntPtr;
  34. using FT_ULong = System.UIntPtr;
  35. #endif
  36. namespace SharpFont.PostScript.Internal
  37. {
  38. [StructLayout(LayoutKind.Sequential)]
  39. internal class FaceInfoRec
  40. {
  41. [MarshalAs(UnmanagedType.LPStr)]
  42. internal string cid_font_name;
  43. internal FT_Fixed cid_version;
  44. internal int cid_font_type;
  45. [MarshalAs(UnmanagedType.LPStr)]
  46. internal string registry;
  47. [MarshalAs(UnmanagedType.LPStr)]
  48. internal string ordering;
  49. internal int supplement;
  50. internal FontInfoRec font_info;
  51. internal BBoxRec font_bbox;
  52. internal FT_ULong uid_base;
  53. internal int num_xuid;
  54. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
  55. internal FT_ULong[] xuid;
  56. internal FT_ULong cidmap_offset;
  57. internal int fd_bytes;
  58. internal int gd_bytes;
  59. internal FT_ULong cid_count;
  60. internal int num_dicts;
  61. internal IntPtr font_dicts;
  62. internal FT_ULong data_offset;
  63. }
  64. }