Пример #1
0
        internal CidFont(String fontName, ICollection <String> cmaps)
        {
            compatibleCmaps = cmaps;
            InitializeCidFontNameAndStyle(fontName);
            IDictionary <String, Object> fontDesc = CidFontProperties.GetAllFonts().Get(fontNames.GetFontName());

            if (fontDesc == null)
            {
                throw new iText.IO.IOException("no.such.predefined.font.1").SetMessageParams(fontName);
            }
            InitializeCidFontProperties(fontDesc);
        }
Пример #2
0
        internal CidFont(String fontName, ICollection <String> cmaps)
        {
            this.fontName   = fontName;
            compatibleCmaps = cmaps;
            fontNames       = new FontNames();
            InitializeCidFontNameAndStyle(fontName);
            IDictionary <String, Object> fontDesc = CidFontProperties.GetAllFonts().Get(fontNames.GetFontName());

            if (fontDesc == null)
            {
                throw new iText.IO.IOException("There is no such predefined font: {0}").SetMessageParams(fontName);
            }
            InitializeCidFontProperties(fontDesc);
        }