Thread: Using fonts in C++

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Using fonts in C++

    I have searched for tutorials of using fonts, but I haven't found anything useful or any working example. Can anyone give me a link with an example or a piece of code which works in Dev-C++. And how can I use fonts in textboxes or buttons made with CreateWindowEx?

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    You would create a font, and then ::SendMessage(..) a WM_SETFONT.

    http://www.winprog.org/tutorial/fonts.html
    http://msdn.microsoft.com/library/de...wm_setfont.asp

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Is there a reason you felt the need to ask this question when you were already given links to both Forger's Tutorial and MSDN in your other thread on this same topic? My patience is wearing thin with you.

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    When I use any piece of code from Forger's tutorials, I get thousands of errors.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 'Hardwired Fonts'?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-02-2004, 09:38 AM
  2. Scrolling text with variable pitch fonts
    By Raison in forum Windows Programming
    Replies: 0
    Last Post: 06-02-2004, 08:20 AM
  3. X Fonts in OpenGL
    By MathFan in forum Linux Programming
    Replies: 0
    Last Post: 04-13-2004, 08:19 AM
  4. GNOME fonts
    By bludstayne in forum Tech Board
    Replies: 3
    Last Post: 01-20-2004, 09:49 PM
  5. DJGPP Allegro, using grabber and fonts
    By doubleanti in forum C++ Programming
    Replies: 0
    Last Post: 08-29-2001, 01:02 PM