Using fonts in C++

This is a discussion on Using fonts in C++ within the Windows Programming forums, part of the Platform Specific Boards category; I have searched for tutorials of using fonts, but I haven't found anything useful or any working example. Can anyone ...

  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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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, 10:38 AM
  2. Scrolling text with variable pitch fonts
    By Raison in forum Windows Programming
    Replies: 0
    Last Post: 06-02-2004, 09:20 AM
  3. X Fonts in OpenGL
    By MathFan in forum Linux Programming
    Replies: 0
    Last Post: 04-13-2004, 09: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, 02:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21