Thread: console font

  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
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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, 08:03 AM
  4. destroywindow() problem
    By algi in forum Windows Programming
    Replies: 6
    Last Post: 03-27-2005, 11:40 PM
  5. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM