CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: MikeHunt

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    6,212

    Re: MFC GDI+ loading ttf font resource

    Cannot edit my posts....

    I saw that privateFontCollection is a local object, so that was not the problem. I really cannot remember the reason anymore, but above code works.
  2. Replies
    8
    Views
    6,212

    Re: MFC GDI+ loading ttf font resource

    Hi

    When I remember correctly, the problem was that you must not delete the privateFontCollection Object. It should stay in memory all the time.
  3. Replies
    8
    Views
    6,212

    Re: MFC GDI+ loading ttf font resource

    Hi

    Yes, I got it to work. Here is my function drawing the text:



    RectF CMiachFieldDlg::DrawText(Graphics& rgraphics, COwnFont font, int x, int y, Color col1, Color col2, int align, CString&...
  4. Replies
    8
    Views
    6,212

    MFC GDI+ loading ttf font resource

    Hi

    I am using VS 2012 and making a app which displays several texts via GDI+ DrawText. When using ARIAL font, text looks okay, no problems.
    But I wanted to use my own ttf fonts for the texts. So...
Results 1 to 4 of 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)