Solved

Win32::Console control font and font size

Posted on 2003-11-18
3
677 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
[X]
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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Six Sigma Control Plans

724 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