console font

This is a discussion on console font within the Windows Programming forums, part of the Platform Specific Boards category; how do i determine the name of console font? i know i can use GetCurrentConsoleFont but it gives only index ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    36

    console font

    how do i determine the name of console font?
    i know i can use GetCurrentConsoleFont but it gives only index in system font table.
    i don't know what tro do with this index...

    i tried using something like this:

    Code:
    hd=GetDC(hConsoleWindow);
    GetTextFace(hd,50,buf);
    ReleaseDC(hConsoleWindow,hd);
    but this piece of code only returns string "System"

    I know that console uses "Lucida Console" font...
    but how do i get this name?

    thanks

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Actually the name of the face may actually be "System". See the attached screenshot. It's taken from NotePad, under the font menu.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. Console Font Size
    By bradszy in forum Windows Programming
    Replies: 34
    Last Post: 04-26-2008, 07:09 AM
  3. problem with my font manager
    By hannibar in forum C Programming
    Replies: 1
    Last Post: 03-07-2006, 07:03 AM
  4. destroywindow() problem
    By algi in forum Windows Programming
    Replies: 6
    Last Post: 03-27-2005, 10:40 PM
  5. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09:18 PM

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