News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

who knows.....

Started by topspin, January 21, 2011, 05:05:17 PM

Previous topic - Next topic

topspin

is it possible to use ttf fonts in console applications?

Neil

You can change the Console font in the registry :-

Hive: HKEY_CURRENT_USER
Key: Console
Name: FaceName
Type: REG_SZ
Value: put the name of the font here, it must be installed on the system.

topspin

needs to use ttf chess font for console program  can i use it ? can i change console font programmatically?

Neil

Not sure if that works on later editions of windows?

redskull

There's some very specific requirements that must be met; somewhere there is a link to a MSDN article that lists them.  Generally, only 'console-like' fonts can be used (fixed space, etc).  I like DejaVu Sans Mono, personally.

-r

http://blogs.msdn.com/b/oldnewthing/archive/2007/05/16/2659903.aspx
Strange women, lying in ponds, distributing swords, is no basis for a system of government

topspin

so chess ttf fonts is impossible to use?

redskull

You would have to check the font itself for it's criteria, against the list here.  My first instinct would be to say it's not possible

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q247815

Strange women, lying in ponds, distributing swords, is no basis for a system of government

topspin

but is it possible to use images in console apps then?

redskull

The console is for text mode; emphasis on 'text'.  Why not just write your chess game the real way?
Strange women, lying in ponds, distributing swords, is no basis for a system of government

topspin

there's a very complucated way of creating a window(

brethren

Quote from: topspin on January 21, 2011, 05:45:56 PM
there's a very complucated way of creating a window(

the use something simple like SDL to create the window :U

japheth has converted the header files to inc. use them in conjunction with japheths WinInc files
http://www.japheth.de/
some tutorials for using SDL. they are C tutorials but its simple to extrapolate
http://lazyfoo.net/SDL_tutorials/index.php