示例#1
0
        private WW.Pdf.Font.Font method_1()
        {
            switch (this.fontType_0)
            {
            case FontType.Embed:
                this.font_0 = (WW.Pdf.Font.Font) new Class31(this.fontProperties_0);
                break;

            case FontType.Subset:
                this.font_0 = (WW.Pdf.Font.Font) new Class32(this.fontProperties_0);
                break;
            }
            bool            flag       = false;
            IFontDescriptor descriptor = this.font_0.Descriptor;

            if (!descriptor.IsEmbeddable)
            {
                flag = true;
            }
            if (this.font_0 is Class32 && !descriptor.IsSubsettable)
            {
                flag = true;
            }
            if (flag)
            {
                this.font_0 = !this.fontProperties_0.IsBoldItalic ? (!this.fontProperties_0.IsBold ? (!this.fontProperties_0.IsItalic ? Class14.font_4 : Class14.font_6) : Class14.font_5) : Class14.font_7;
            }
            return(this.font_0);
        }
示例#2
0
        private void method_0()
        {
            if (this.bool_0)
            {
                return;
            }
            switch (this.fontType_0)
            {
            case FontType.Link:
                this.font_0 = (WW.Pdf.Font.Font) new Class33(this.fontProperties_0);
                break;

            case FontType.Embed:
            case FontType.Subset:
                this.font_0 = this.method_1();
                break;

            default:
                throw new Exception("Unknown font type: " + (object)this.fontType_0);
            }
            this.bool_0 = true;
        }