Exemple #1
0
 public OTTable(OTFont parentFont, TableRecord tableRecord)
 {
     // This is only used temporarily to create a placeholder table if the table type is not supported.
     _parentFont  = parentFont;
     _tableRecord = tableRecord;
     CalculateCheckSum();
     _validationStatus = OTFile.OTFileValidation_PartialValidation | ValidateTableRecord();
 }
Exemple #2
0
        public OTTable(OTFont parentFont, TableRecord tableRecord, string expectedTag, bool parseWhenConstructed)
        {
            // Used for derived classes for specific table types
            if (tableRecord.Tag.ToString() != expectedTag)
            {
                throw new ArgumentException("TableRecord has the wrong tag for the '" + expectedTag + " table");
            }

            _parentFont  = parentFont;
            _tableRecord = tableRecord;
            CalculateCheckSum();
            _validationStatus = OTFile.OTFileValidation_PartialValidation | ValidateTableRecord();

            if (parseWhenConstructed)
            {
                ReadTable_Internal();
            }
        }
Exemple #3
0
 public TableColr(OTFont parentFont, TableRecord tableRecord)
     : base(parentFont, tableRecord, _tableTag, /* parseWhenConstructed */ true)
 {
     // Base class constructor validates table record values, and marks
     // validation completion status as partial validation
 }