Exemplo n.º 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);
        }
Exemplo n.º 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);
        }