Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. How to change a console window's font?

How to change a console window's font?

Scheduled Pinned Locked Moved Article Writing
graphicsjsontutorialquestion
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    The Win32 console API has a lot of functions to change a console window's size, color, scroll range and whatsoever. It is even possible to change the window's code page. (Normally, it is 437 on US english systems and 850 on german systems). The font normally used by console windows is not capable of displaying any other codepage than the system's default code page; if for instance I try to display text using the ANSI codepage (1252), some characters are not displayed properly. If I change the console window's font to a non-bitmap font (such as "Lucida Console" or "Andale Mono"), text can be displayed in any codepage whatsoever. However, the only way to change the console window's font seems to be using the console window's property menu or the control panel applet 'Console'. I would like to change the font *programmatically*, that is, without user intervention. Any clues?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups