コード例 #1
0
        public static new CFFCharset2 Read(BinaryReaderFont reader, int count)
        {
            CFFCharset2 value = new CFFCharset2 {
                format = reader.ReadByte()
            };

            value.Range2 = CFFRange2.ReadArray(reader, count);
            return(value);
        }
コード例 #2
0
        public static CFFCharset Read(BinaryReaderFont reader, int count)
        {
            CFFCharset charset = null;
            byte       format  = reader.PeekByte();

            switch (format)
            {
            case 0:
                charset = CFFCharset0.Read(reader);
                break;

            case 1:
                charset = CFFCharset1.Read(reader, count);
                break;

            case 2:
                charset = CFFCharset2.Read(reader, count);
                break;
            }
            return(charset);
        }