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); }