123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- #region MIT License
- #endregion
- using System;
- using System.Runtime.InteropServices;
- using SharpFont.PostScript.Internal;
- namespace SharpFont.PostScript
- {
-
-
-
- public class FaceDict
- {
- #region Fields
- private IntPtr reference;
- private FaceDictRec rec;
- #endregion
- #region Constructors
- internal FaceDict(IntPtr reference)
- {
- Reference = reference;
- }
- #endregion
- #region Properties
- public Private PrivateDictionary
- {
- get
- {
- return new Private(reference);
- }
- }
- [CLSCompliant(false)]
- public uint BuildCharLength
- {
- get
- {
- return rec.len_buildchar;
- }
- }
- public int ForceBoldThreshold
- {
- get
- {
- return (int)rec.forcebold_threshold;
- }
- }
- public int StrokeWidth
- {
- get
- {
- return (int)rec.stroke_width;
- }
- }
- public int ExpansionFactor
- {
- get
- {
- return (int)rec.expansion_factor;
- }
- }
- public byte PaintType
- {
- get
- {
- return rec.paint_type;
- }
- }
- public byte FontType
- {
- get
- {
- return rec.font_type;
- }
- }
- public FTMatrix FontMatrix
- {
- get
- {
- return new FTMatrix(new IntPtr(reference.ToInt64() + Marshal.OffsetOf(typeof(FaceDictRec), "font_matrix").ToInt64()));
- }
- }
- public FTVector FontOffset
- {
- get
- {
- return new FTVector(new IntPtr(reference.ToInt64() + Marshal.OffsetOf(typeof(FaceDictRec), "font_offset").ToInt64()));
- }
- }
- [CLSCompliant(false)]
- public uint SubrsCount
- {
- get
- {
- return rec.num_subrs;
- }
- }
- [CLSCompliant(false)]
- public uint SubrmapOffset
- {
- get
- {
- return (uint)rec.subrmap_offset;
- }
- }
- public int SDBytes
- {
- get
- {
- return rec.sd_bytes;
- }
- }
- internal IntPtr Reference
- {
- get
- {
- return reference;
- }
- set
- {
- reference = value;
- rec = PInvokeHelper.PtrToStructure<FaceDictRec>(reference);
- }
- }
- #endregion
- }
- }
|