mIRC Home    About    Download    Register    News    Help

Print Thread
fonts #43987 25/08/03 12:41 AM
Joined: Dec 2002
Posts: 56
Infernal_Demon Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
I have this in the section of [fonts] in mirc.ini

fstatus=Tahoma,411,1

Now the font is correct I have it set for tahoma size 8 and normal font size.

Can anyone tell me what is 411 and the 1 and how I can get my real values from mirc.ini please! smile

Re: fonts #43988 25/08/03 02:45 AM
Joined: Dec 2002
Posts: 169
J
Jerk Offline
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
I don't know how those numbers are determined but you can use $window().font $window().fontsize and $window().fontbold to get that information.
Code:
//echo -a $window(status window).font $window(status window).fontsize $iif($window(status window).fontbold,Bold)


Re: fonts #43989 25/08/03 09:30 AM
Joined: Dec 2002
Posts: 56
Infernal_Demon Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
But can anyone tell me how to understand those numbers??
Please!!

Re: fonts #43990 25/08/03 01:30 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Tahoma,411,1

As you can see, there are 3 comma-separated tokens in that string.

The 1st token is the font name (who would have guessed?)

The 2nd token contains the font size (2nd digit and onwards) and whether the font is bold (1st digit) information: the 4 in 411 means the font is not bold. If it was bold, this would be 711. 11 is the font size, as returned by $window().fontsize. The first digit can only be 4 or 7 in mirc.

The 3rd token is more mysterious. It represents the "Script" setting in the Font dialog, ie the selected character set. The available character sets and their equivalent numbers can be found here. The number in the 2nd column in that table (Code (dec)) is exactly this 3rd token.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: fonts #43991 25/08/03 02:31 PM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
fstatus=<font name>,<font size||bold>,<character set>

The first value is the name of the font. The second value describes its size and whether or not it's bold or not. If the first digit is a 4, then it's a normal font. If it's a 7, then it's a bolded font. The second two digits describe the size of the font. The last value describes the character set you have selected for the current font.
Code:
ANSI_Charset          0  ANSI characters.
Default_Charset       1  Font is chosen based solely on Name and Size. If the described font 
                         is not available on the system, Windows will substitute another font.
Symbol_Charset        2  Standard symbol set.

Mac_Charset          77 Macintosh characters.
ShiftJIS_Charset    128  Japanese shift-jis characters.
Hangeul_Charset     129  Korean characters (Wansung).
Johab_Charset       130  Korean characters (Johab).
GB2312_Charset      134  Simplified Chinese characters (mainland china).
Chinesebig5_Charset 136  Traditional Chinese characters (taiwanese).
Greek_Charset       161  Greek characters.
Turkish_Charset     162  Turkish characters.
Vietnamese_Charset  163  Vietnamese characters.
Hebrew_Charset      177  Hebrew characters.
Arabic_Charset      178  Arabic characters.
Baltic_Charset      186  Baltic characters.
Russian_Charset     204  Cyrillic characters.
Thai_Charset        222  Thai characters.
EastEurope_Charset  238  Includes diacritical marks for eastern european countries.
OEM_Charset         255  Depends on the codepage of the operating system.



cool


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: fonts #43992 25/08/03 06:16 PM
Joined: Dec 2002
Posts: 56
Infernal_Demon Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
Thank you both! smile