Пример #1
0
        public CFFTopDict()
        {
            const int DefaultSID = 0;

            version            = DefaultSID;
            Notice             = DefaultSID;
            Copyright          = DefaultSID;
            FullName           = DefaultSID;
            FamilyName         = DefaultSID;
            Weight             = DefaultSID;
            isFixedPitch       = 0;
            ItalicAngle        = 0;
            UnderlinePosition  = -100;
            UnderlineThickness = 50;
            PaintType          = 0;
            CharstringType     = 2;
            FontMatrix         = new CFFArray(
                new double[] { 0.001, 0, 0, 0.001, 0, 0 }
                );
            UniqueID = DefaultSID;
            FontBBox = new CFFArray(
                new double[] { 0, 0, 0, 0 }
                );
            StrokeWidth = 0;
            XUID        = new CFFArray();
            charset     = 0;
            Encoding    = 0;
            CharStrings = 0;
            Private     = new CFFArray(
                new double[] { 0, 0 }
                );
            SyntheticBase   = 0;
            PostScript      = DefaultSID;
            BaseFontName    = DefaultSID;
            BaseFontBlend   = new CFFArray();
            ROS             = new CFFROS();
            CIDFontVersion  = 0;
            CIDFontRevision = 0;
            CIDFontType     = 0;
            CIDCount        = 8720;
            UIDBase         = 0;
            FDArray         = 0;
            FDSelect        = 0;
            FontName        = DefaultSID;
        }
Пример #2
0
        protected void SetValue12(List <double> list, byte key1)
        {
            switch (key1)
            {
            case 0:
                Copyright = (ushort)list[0];
                break;

            case 1:
                isFixedPitch = (int)list[0];
                break;

            case 2:
                ItalicAngle = list[0];
                break;

            case 3:
                UnderlinePosition = list[0];
                break;

            case 4:
                UnderlineThickness = list[0];
                break;

            case 5:
                PaintType = list[0];
                break;

            case 6:
                CharstringType = list[0];
                break;

            case 7:
                FontMatrix = CFFArray.Create(list);
                break;

            case 8:
                StrokeWidth = (int)list[0];
                break;

            case 20:
                SyntheticBase = (int)list[0];
                break;

            case 21:
                PostScript = (ushort)list[0];
                break;

            case 22:
                BaseFontName = (ushort)list[0];
                break;

            case 23:
                BaseFontBlend = CFFArray.Create(list);
                break;

            case 30:
                ROS = CFFROS.Create(list);
                break;

            case 31:
                CIDFontVersion = list[0];
                break;

            case 32:
                CIDFontRevision = list[0];
                break;

            case 33:
                CIDFontType = list[0];
                break;

            case 34:
                CIDCount = list[0];
                break;

            case 35:
                UIDBase = list[0];
                break;

            case 36:
                FDArray = list[0];
                break;

            case 37:
                FDSelect = (int)list[0];
                break;

            case 38:
                FontName = (ushort)list[0];
                break;
            }
        }