#include <GdiPlus.h> using namespace Gdiplus; #pragma comment(lib, "Gdiplus.lib") HFONT hfont = CreateFont(...); HDC hdc = GetDC(NULL); Gdiplus::Font font(hdc, hfont); ReleaseDC(NULL, hdc);