How to use custom font asp.net application
<p>How to use custom font asp.net application.<br/>
I have a font file with me. I want to add that file as a resource and use it inside the project.
how to do it?</p>

<pre><code>        PrivateFontCollection pfc = new PrivateFontCollection();
        Stream fontStream = this.GetType().Assembly.GetManifestResourceStream(Server.MapPath("~/Resources/EAN-13.ttf"));

        byte[] fontdata = new byte[fontStream.Length];
        fontStream.Read(fontdata, 0, (int)fontStream.Length);
        fontStream.Close();

        unsafe
        {
            fixed (byte* pFontData = fontdata)
            {
                pfc.AddMemoryFont((System.IntPtr)pFontData, fontdata.Length);
            }
        }
</code></pre>

<p>I tried this. But its not working.</p>
