mIRC Home    About    Download    Register    News    Help

Print Thread
#44297 26/08/03 09:51 PM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
I have seen that mirc does no use the real value of the font. I mean I have set the font to Tahoma 8 in the status window and in mirc.ini I have:
fstatus=Tahoma,411,0
I thought to myself - "Ok, mirc adds 3 to the font value"
But then I thought about setting the size to 11 and the checked mirc.ini and saw:
fstatus=Tahoma,415,0
It now added 4
I experimented some more and tried to set the size to 26
and the values were:
fstatus=Tahoma,435,0
How do I calculate this accuratley?

One more thing, how do I see witch character set I have?
I mean it´s now set to ANSI characters, but how do I determine that?

Thanks smile

#44298 26/08/03 11:23 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The size in mirc.ini is given in pixels, the size in the Font Dialog is given in points (Tahoma 8pt == Tahoma 11px).

For the character set I believe Hammer gave you a list of the character sets corresponding to the third token in your previous post.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#44299 26/08/03 11:39 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
If I recall, converting between points and pixels isn't too difficult, if you make a kinda big assumption. If you make the assumption that the monitor is 96dpi, then the conversion is very easy. Points are computed as 72dpi where as on a typical Windows system, pixels are 96dpi. Therefore, to convert from pixels to points you do:
the_pixels * 72/96
or more simply
the_pixels * .75

But this has to be done as integer arithmetic, so to do it simply in mIRC:

alias px2pt {
return $int($calc($1 * .75))
}

If you test that formula, you will see that it works for the cases you provided
$px2pt(11) = 8
$px2pt(15) = 11
$px2pt(35) = 26

Like I said, that will work fine assuming the monitor is 96dpi.

#44300 27/08/03 01:45 PM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
Is there anyway of knowing if it is 96dpi through mirc? And what is dpi any way? :P

#44301 27/08/03 04:34 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
dpi = dots per inch.. its almost like pixels on a monitor, but used to count clerity on a printer.

An example is taking a square inch and dividing it into four blocks. Now thasts going to be a lot more unclear than ahving 96 of those little blocks


-KingTomato
#44302 27/08/03 05:21 PM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
But how do I determine the dpi? smile

#44303 27/08/03 05:43 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
read your printer manual?


-KingTomato
#44304 27/08/03 08:40 PM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
lol ok!
One more thing, look at this:
[fonts]
fscripts=Verdana,411,0
fstatus=Tahoma,411,0
fquery=Tahoma,411,1
fchannel=Tahoma,411,1
flist=Verdana,411,0
fwwwlist=Verdana,411,0

The font is the same for all, but why is the fquery and fchannel have the 1 instead of the 0 like the rest????


Link Copied to Clipboard