Axiom.UnitTests.Fonts.FontManagerRegressionTests.GetFontDefinitonStream C# (CSharp) Method

GetFontDefinitonStream() private static method

private static GetFontDefinitonStream ( ) : Stream
return Stream
        private static Stream GetFontDefinitonStream()
        {
            Stream stream = new MemoryStream();
            ASCIIEncoding encoding = new ASCIIEncoding();
            byte[] byteData = encoding.GetBytes( Fontdef );
            stream.Write( byteData, 0, byteData.Length );
            stream.Flush();
            stream.Position = 0;
            return stream;
        }
    }