public void ReOpen() { if (filename != null && rf == null) rf = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); Seek(0); }
/// <summary> /// Does the actual work of subsetting the font. /// @throws IOException on error /// @throws DocumentException on error /// </summary> /// <returns>the subset font</returns> internal byte[] Process() { try { Rf.ReOpen(); CreateTableDirectory(); ReadLoca(); FlatGlyphs(); CreateNewGlyphTables(); LocaTobytes(); AssembleFont(); return(OutFont); } finally { try { Rf.Close(); } catch { // empty on purpose } } }