Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Win32::Console control font and font size

Posted on 2003-11-18
3
670 Views
Last Modified: 2013-12-03
How can I control the font and font size used in the console window using Win32::Console?
0
Comment
Question by:JCinDE
3 Comments
 
LVL 18

Accepted Solution

by:
kandura earned 500 total points
ID: 9774723
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/console_functions.asp
for the full documentation of Microsoft's console API.

It seems you can get the font and size with the GetCurrentConsoleFont and GetConsoleFontSize API calls, but I don't see
the equivalent functions for Set. My guess is you won't be able to set them in general, and since I don't see anything
related to fonts in the Win32::Console docs either, it's even more likely that it's not possible.

I suggest you dig around the api's on the msdn site, but I don't expect Win32::Console to be the place where you can
control font settings.
0
 
LVL 11

Expert Comment

by:turn123
ID: 10041605
0
 
LVL 5

Author Comment

by:JCinDE
ID: 10062176
I've searched and still found nothing that seems to work so it appears Kandura is right...there just isn't a way to do it.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question