Re: code pages I think

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello Daryl,

----- Original Message -----
From: <daryl_vdb at HOTMAIL.COM>
To: "EUforum" <EUforum at topica.com>
Subject: Re: code pages I think



> What if I made a windows euphoria editor using win32lib? Do you think it
> would use the "terminal" font? NO! And even worse, I found a true type
font
> that has the same set of characters, and do you think that would work?
> NO!!!! This has me stumped, as I used a font selection dialog box to
select
> the font, and it worked with every other font I tried.  What is wrong with
> the win32lib font routines? (this true type font is called "MS LindDraw"
and
> is included with microsoft office, but the characters don't join up
> vertically like the "terminal" font and is generally not as good fof what
I
> wanted it for)
>
> This would be especially annoying if I distributed a program and people
> complained that they can't use any font they want to. BTW, I am not making
> an editor, I just used it as an example. I know I have brought this up
> before, but I would like to see win32lib support *every* font, even if it
is
> old, ugly and rarely used.

This is a limitation with the setFont() routine in win32lib. The current
version assumes that only TrueType ANSI character fonts will be used. This
has been enhanced in the next version by expanding the attributes parameter.

Examples:

    setFont(id, "Marlett", 12,
       {
        Normal,
        0,
        0,
        0,
        SYMBOL_CHARSET,
        0,
        0,
        0,
        FS_SYMBOL
       })


    setFont(id, "Terminal", 12,
       {
        Normal,
        0,
        0,
        0,
        EOM_CHARSET,
        0,
        0,
        0,
        FS_MODERN
       })

------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu