Created
June 2, 2023 07:59
-
-
Save bjoerntx/ad682a2764cf3bf2b2d785694fd57a04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.InteropServices; | |
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