/// <summary>
        /// Creates new instance of appendix.
        /// </summary>
        public GlyphMetadataAppendix()
            : base(GlyphMetadata)
        {
            _setsOffsets             = new SentinelCollection <MetadataSetOffset>();
            _setsOffsets.Sentinel    = new MetadataSetOffset();
            _setsOffsets.Sentinel.Id = 0xFF;

            _setsData = new List <byte[]>();
        }
示例#2
0
        /// <summary>
        /// Creates a new instance of state machine appendix by its ID.
        /// </summary>
        /// <param name="id">Font appendix ID,</param>
        protected StateMachineAppendix(byte id)
            : base(id)
        {
            _featureOffsets              = new SentinelCollection <FeatureOffset>();
            _featureOffsets.Sentinel     = new FeatureOffset();
            _featureOffsets.Sentinel.Tag = 0xFFFFFFFF;

            _features          = new SentinelCollection <Feature>();
            _features.Sentinel = new Feature();
        }
示例#3
0
        /// <summary>
        /// Creates new font plane.
        /// </summary>
        public FontPlane()
        {
            _metrics     = new FontMetrics();
            _description = new FontDescription();
            _characterBitmapDescription = new BitmapDescription();
            _characterRanges            = new SentinelCollection <CharacterRangeDescription>();
            _characters          = new SentinelCollection <CharacterDescription>();
            _characterBitmapData = new byte[0];

            _characterAntialiasingMetrics = new AntialiasingMetrics();
            _characterRangesAntialiasing  = new List <CharacterRangeAntialiasing>();
            _charactersAntialiasing       = new List <CharacterAntialiasing>();
            _characterAntialiasingData    = null;
        }
 /// <summary>
 /// Creates new instance of feature.
 /// </summary>
 public Feature()
 {
     _stateOffsets = new SentinelCollection <ushort>();
     _rules        = new List <Rule>();
 }