示例#1
0
文件: Font.cs 项目: silvath/siscobras
        public static Altsoft.PDFO.Font Create(Document doc, Stream fontstream, string encoding, bool embedFontFile)
        {
            Altsoft.FTMB.Font font1 = Altsoft.FTMB.Font.OpenFont(fontstream);
            FontType          type1 = font1.FontType;

            if (type1 == FontType.TrueTypeFontT)
            {
                if (encoding == "Unicode")
                {
                    return(FontType0.EmbedFont(doc, fontstream, encoding, embedFontFile));
                }
                return(null);
            }
            return(null);
        }
示例#2
0
 public static Altsoft.PDFO.Font EmbedFont(Document doc, Stream fontstream, string encoding, bool embedFontFile)
 {
     return(FontType0.EmbedFont(doc, fontstream, encoding, embedFontFile, false));
 }