How do I change the font on the console?
Which function do I need?
(windows..)
thanks.
How do I change the font on the console?
Which function do I need?
(windows..)
thanks.
gavra.
Why do you want to do this?
The best you can expect is to be able to change the font for all of the text in the console at once. You can't make some bold, some big, some small, etc.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
humm font size & font kind..
For example:
change the font to "Lucida Console"
The size to: 14
(and I see I may use bold font if I'am using the font I mentioned above - so this option too)
gavra.
But why? Why do you want to do this? The user can always do it themselves, and it really should be the user's setting. I wouldn't want a program messing around with my consoles' fonts.
But if you insist . . . .
In Vista, you may be able to use: http://msdn.microsoft.com/en-us/libr...00(VS.85).aspx
If you're not using Vista, you'll have to use undocumented functions: http://www.catch22.net/source/files/setconsoleinfo.c
Or so I gather. I don't know anything about this, I just use Google.
Also: http://www.gamedev.net/community/for...opic_id=405981
(They don't seem to think it's a good idea, either.)
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
XP
and you have a lot of experiance with google (I tried too..)
I'll change the settings only for my program not permanently.
and thank you I'll try your links (:
gavra.
hum nope I saw some of them and they didn't help \:
anyone?
gavra.
Why do you want to do this?
[I figured you might answer the question after it was asked for the third time.]
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
O:
Cuz I want to change the font settings in my programs......
gavra.
Sigh.
Here's why not to.
http://blogs.msdn.com/oldnewthing/ar...6/2659903.aspx
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
XD
and again XD
Maybe I should use another font..? a suitable one?
gavra.
Yeah, maybe. Or maybe you should just tell your users to change the font themselves!
Seriously, from what I gather, it's either Vista-only or undocumented or suspect code. And it only works properly with certain fonts. Unless you really really want to change the font, I would just leave it alone.
You can still fiddle with font sizes and colours if you want, though.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.