コード例 #1
0
 public static new CFFFDSelect3 Read(BinaryReaderFont reader)
 {
     CFFFDSelect3 value = new CFFFDSelect3 {
         format = reader.ReadByte(),
         nRanges = reader.ReadUInt16()
     };
     value.Range3 = CFFRange3.ReadArray(reader, value.nRanges);
     value.sentinel = reader.ReadUInt16();
     return value;
 }
コード例 #2
0
        public static CFFFDSelect Read(BinaryReaderFont reader)
        {
            CFFFDSelect fdSelect = null;
            byte        format   = reader.PeekByte();

            switch (format)
            {
            case 0:
                fdSelect = CFFFDSelect0.Read(reader);
                break;

            case 3:
                fdSelect = CFFFDSelect3.Read(reader);
                break;
            }
            return(fdSelect);
        }