1. Yet Another Win32lib question

Hello !

This time, I have a question about using fonts with win32lib :
under dos, to display all the chars of the ASCII table, I used puts(SCREEN,
c) where 0 < c < 256 and it worked fine. 
I'm trying now to convert this program under windows, and I use
wPuts(Window, c), but the characteres aren't always the same.
So I'm wondering if it depends on the font or if under windows we can't use
the ASCII table or I dunno. 
Do you know a way to use the classic-dos ASCII table with win32lib ?

Gwen

new topic     » topic index » view message » categorize

2. Re: Yet Another Win32lib question

Woaah man!
You smell like cheese!
;)

Hmm...
Windows don't support all of the ASCII characters.
That's why you're code don't display ASCII chars like
it should.
Want an example?
Open a binary program in Wordpad, you'll see what I
mean.

The first way to solve this that I can think of, is
using 'system' as font.
Try that.

Tell me if it works.


Mike The Spike
PS. Welkom bij de list, man!

--- Feta <mb11363 at chello.be> wrote:
> Hello !
> 
> This time, I have a question about using fonts with
> win32lib :
> under dos, to display all the chars of the ASCII
> table, I used puts(SCREEN,
> c) where 0 < c < 256 and it worked fine. 
> I'm trying now to convert this program under
> windows, and I use
> wPuts(Window, c), but the characteres aren't always
> the same.
> So I'm wondering if it depends on the font or if
> under windows we can't use
> the ASCII table or I dunno. 
> Do you know a way to use the classic-dos ASCII table
> with win32lib ?
> 
> Gwen
>  
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Yet Another Win32lib question

Hi  Gwen,

> So I'm wondering if it depends on the font or if under windows we can't
use
> the ASCII table or I dunno. 
> Do you know a way to use the classic-dos ASCII table with win32lib ?

Windows use ANSI table, not ASCII one.
You must translate the codes of a non-latin text from
your DOS  code page into your native
WIN code page, same about special symbols.
For example, in Russian, DOS ASCII code page is 866,
WIN ANSI -- 1251, all WIN fonts are from the ANSI table, as I know.

Regards,
Igor Kachan

new topic     » goto parent     » topic index » view message » categorize

4. Re: Yet Another Win32lib question

Hi Gwen,

> Do you know a way to use the classic-dos
> ASCII table with win32lib ?

It seems Terminal font is just that you need.

Regards,
Igor Kachan

new topic     » goto parent     » topic index » view message » categorize

5. Re: Yet Another Win32lib question

Hi Mike 

I've tried both "Terminal" and "System" fonts, doesn't seems to work
better.
Maybe should I take a look on the web for a special ASCII-font for Win ?

PS : Ik ben niet vlaamingen, en mijn vlaams is zeer zeer, hrum, basic. (In
Belgium, the French is a more talked tongue)
Thanks for your help anyway !

Gwen

new topic     » goto parent     » topic index » view message » categorize

6. Re: Yet Another Win32lib question

Igor wrote :
> Windows use ANSI table, not ASCII one.
> You must translate the codes of a non-latin text from
> your DOS  code page into your native
> WIN code page, same about special symbols.
> For example, in Russian, DOS ASCII code page is 866,
> WIN ANSI -- 1251, all WIN fonts are from the ANSI table, as I know.

Hi Igor !

I think I don't understood very well what I have to do, my wish is to use
most of the chars from the ASCII table (about 200), not only the letters
and numbers. I use the 'normal' dos ASCII table I think (the english one
maybe ?). can you re-explain me your idea ? 
Thank you !

Gwen

new topic     » goto parent     » topic index » view message » categorize

7. Re: Yet Another Win32lib question

Sorry to come again with my fonts problem :
I've just downloaded IC Font Pro, a program to "analyse" your system fonts,
and with it, I see my font 'Terminal' is exactely what I'm looking for,
but, when I try to use it with Win32lib, it display chars like with the
"Arial" font (Humm, I'm not very sure it's the Arial font, but it is not
very important). I tryed to mispell it ("trmnl" or whatever), and I got
exactely the same font, so I think the Terminal font is the solution, but
strangely, win32lib doesn't seems to recognize it, and it shows me a
default font, without any error msg.   
Does anybody know how we can use the Terminal font with win32lib ?

Gwen

new topic     » goto parent     » topic index » view message » categorize

8. Re: Yet Another Win32lib question

Hi Gwen,

> I use the 'normal' dos ASCII table I think 
> (the english one maybe ?).
> can you re-explain me your idea ? 

Look into the folder  C:\WINDOWS\FONTS\

There are the hidden font files in this folder:

dosapp.fon
vgafix.fon
vgaoem.fon
vgasys.fon
8514fix .fon
8514oem.fon
8514sys.fon
symbole.fon
symbolf.fon

These  files  contain the console  fonts you want use.
Then ask David Cuny or Derek Parnell how to get access to
these fonts from Win32Lib, I don't know now and must
read docs of  Win32Lib to answer, sorry.

Regards,
Igor Kachan

new topic     » goto parent     » topic index » view message » categorize

9. Re: Yet Another Win32lib question

See GetStockObject = details at:

On Sat, 03 Feb 2001 06:24:15   Gwen wrote:

>Does anybody know how we can use the Terminal font with win32lib ?

Regards,
Irv


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at
http://www.eudoramail.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu