S
Simon Jefferies
Hi there,
I'm trying to use a font registered by calling AddFontResourceEx(). The
function returns one to indicate its registered, but when calling new
Font() it substitutes it for Microsoft Sans Serif.
Here's my code:-
private const int FR_PRIVATE = 0x10;
private const int FR_NOT_ENUM = 0x20;
[DllImport("gdi32.dll")]
static extern int AddFontResourceEx(string lpszFilename, uint fl, IntPtr
pdv);
int res = AddFontResourceEx(_Filename, FR_PRIVATE, IntPtr.Zero);
How do I use this font?
Cheers,
Simon.
I'm trying to use a font registered by calling AddFontResourceEx(). The
function returns one to indicate its registered, but when calling new
Font() it substitutes it for Microsoft Sans Serif.
Here's my code:-
private const int FR_PRIVATE = 0x10;
private const int FR_NOT_ENUM = 0x20;
[DllImport("gdi32.dll")]
static extern int AddFontResourceEx(string lpszFilename, uint fl, IntPtr
pdv);
int res = AddFontResourceEx(_Filename, FR_PRIVATE, IntPtr.Zero);
How do I use this font?
Cheers,
Simon.