Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static Altsoft.PDFO.Font EmbedFont(Document doc, Stream fontstream, string encoding, bool embedFontFile)
 {
     return(FontType0.EmbedFont(doc, fontstream, encoding, embedFontFile, false));
 }