Solved

Win32::Console control font and font size

Posted on 2003-11-18
3
663 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now