avinash.pandey Posted November 13, 2018 Share Posted November 13, 2018 Below is the snippet CFont font; VERIFY(font.CreateFont( 40, // nHeight 20, // nWidth 0, // nEscapement 0, // nOrientation FW_DONTCARE, // nWeight FALSE, // bItalic FALSE, // bUnderline FALSE, // cStrikeOut DEFAULT_CHARSET, // nCharSet OUT_DEFAULT_PRECIS, // nOutPrecision CLIP_DEFAULT_PRECIS, // nClipPrecision DEFAULT_QUALITY, // nQuality DEFAULT_PITCH, // nPitchAndFamily _T("AJANTHA"))); // lpszFacename // Do something with the font just created... CClientDC cdc(this); CFont* def_font = cdc.SelectObject(&font); cdc.TextOut(11, 11, _T("€ € ~ ƒ „ …"), 11); cdc.SelectObject(def_font); Font mFont(dc.m_hDC, font); SolidBrush BlueBrush(Color(255, 0, 0, 255)); graphics.DrawString( strText, -1, &mFont, PointF(0, 150), pStringFormat, &BlueBrush); // Done with the font. Delete the font object. font.DeleteObject(); AJANTHA.zip Link to comment Share on other sites More sharing options...
BoltBait Posted November 13, 2018 Share Posted November 13, 2018 What does this have to do with Paint.NET? I'll tell you: Nothing! Since this is a forum dedicated to Paint.NET and it is NOT a general support forum, I'm closing this thread. Go ask your question over at StackOverflow.com and I'm sure someone will help you. Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Recommended Posts