Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 27, 2020 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/20fcf0d3ebbfd40573f421e6d11e6eb4 to your computer and use it in GitHub Desktop.
Save bjoerntx/20fcf0d3ebbfd40573f421e6d11e6eb4 to your computer and use it in GitHub Desktop.
using System.Runtime.InteropServices;
namespace myFirstAzureWebApp.Helpers
{
public class Fonts
{
[DllImport("gdi32", EntryPoint = "AddFontResource")]
public static extern int AddFontResourceA(string lpFileName);
[System.Runtime.InteropServices.DllImport("gdi32.dll")]
public static extern int AddFontResource(string lpszFilename);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment