Ejemplo n.º 1
0
 public virtual byte[] GetFontStreamBytes()
 {
     if (fontStreamBytes != null)
     {
         return(fontStreamBytes);
     }
     try {
         if (fontParser.IsCff())
         {
             fontStreamBytes = fontParser.ReadCffFont();
         }
         else
         {
             fontStreamBytes = fontParser.GetFullFont();
         }
     }
     catch (System.IO.IOException e) {
         fontStreamBytes = null;
         throw new iText.IO.IOException(iText.IO.IOException.IoException, e);
     }
     return(fontStreamBytes);
 }