mIRC Home    About    Download    Register    News    Help

Print Thread
#91661 24/07/04 09:46 PM
Joined: Aug 2003
Posts: 29
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2003
Posts: 29
When attempting to change a font to a truetype font (*.ttf) using the pathname outside of the X:\%windir%\fonts\, mirc crashes. This does not crash mirc if the font is a .fon file. The font must exist, otherwise, mirc changes the font to the default. Examples below.

/font -z 12 "c:\program files\mirc\hypertt.ttf" crashes
/font -a 12 "c:\program files\mirc\anademo.ttf" crashes

/font -z 12 "c:\windows\fonts\arial.ttf" does NOT crash
/font -a 10 "c:\program files\mirc\5x8.fon" does NOT crash

OS: Windows XP SP2 RC2

I could forward the VS2003 debug info if needed.

#91662 24/07/04 11:38 PM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
Works fine on mine
mIRC 6.15 & 6.16 win XP home SP1

SP2 could be causing

#91663 25/07/04 12:49 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Crashed on me, the command used was:
/font -z 12 "c:\documents and settings\administrator\desktop\arial.ttf"

mIRC 6.16, winXP pro.

Edit: it didn't crash if I put it in the mIRC folder.

Last edited by tidy_trax; 25/07/04 12:49 AM.

New username: hixxy
#91664 25/07/04 12:53 AM
Joined: Feb 2003
Posts: 11
T
Pikka bird
Offline
Pikka bird
T
Joined: Feb 2003
Posts: 11
Tested on 6.14 and 6.16 and both crashed

On 6.14 it wouldn't crash until I tried to change fonts again with /font
but if you do
/font -z 12 "C:\Programfiler\mIRC\<fontname>"
then
/font -z 12 fixedsys it won't crash

6.16 crashed when I tried
/font -z 12 "C:\Programfiler\mIRC\<fontname>"

#91665 25/07/04 01:53 AM
Joined: Aug 2003
Posts: 29
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2003
Posts: 29
I actually just got it to crash again with..

/font -z 12 "c:\program files\mirc\bsukrm.fon"

So I guess it crashes with .fon files as well. This has worked no matter if the file existed or not. Please try it and confirm/deny.

Last edited by electrik; 25/07/04 02:12 AM.
#91666 25/07/04 03:38 AM
Joined: Jul 2004
Posts: 150
D
Vogon poet
Offline
Vogon poet
D
Joined: Jul 2004
Posts: 150
I made some tests with the same file: impact.ttf.

Version 6.12:
/font -z 12 c:\Test\impact.ttf DONT crashed.
/font -z 12 c:\mIRC\impact.ttf DONT crashed.

Version 6.15:
/font -z 12 c:\Test\impact.ttf DONT crashed.
/font -z 12 c:\mIRC\impact.ttf CRASHED.

Version 6.16:
/font -z 12 c:\Test\impact.ttf DONT crashed.
/fonte -z 12 c:\mIRC\impact.ttf CRASHED.

I think if the font file is inside \mIRC directory crashes. And before 6.15 version didnt crash.

#91667 25/07/04 06:37 AM
Joined: Aug 2003
Posts: 29
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2003
Posts: 29
That's basically the opposite of what tidy_trax said. This is rather strange.

#91668 25/07/04 12:49 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
mIRC doesnt state that it accepts a directory parameter at all within the /font command, it could very well be that mIRC already knows your 'font directory', C:\windows\fonts\ since it has a list of all the fonts already on your system when you type /font.

So there ideally should be no need for a directory to be specified if your font is placed in your systems font directory, /font -a FONTNAME should work fine.

It might very well be that mIRC is trying to do:

C:\Windows\Fonts\c:\program files\mirc\hypertt.ttf

Eamonn.

#91669 25/07/04 02:29 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
It's a bug nonetheless as there should be an error message instead of a crash.

#91670 26/07/04 10:55 PM
Joined: Nov 2003
Posts: 157
Vogon poet
Offline
Vogon poet
Joined: Nov 2003
Posts: 157
confirmed here on WinME, mIRC 6.16

#91671 26/07/04 11:09 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It's the parameter length that crashes mIRC, be it a file path or a random word.

#91672 27/07/04 07:16 AM
Joined: Aug 2003
Posts: 29
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2003
Posts: 29
what?

#91673 27/07/04 07:23 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
No matter what the parameter is, it will crash mIRC if it exceeds certain length. Try these:

//font -a $str(x,40)
//font -z blah $str(x,40)


Longer strings seem to be more traumatic to the system. Here (Win98se), $str(x,800) called up the white close/ignore failure box.

#91674 27/07/04 09:01 PM
Joined: Aug 2003
Posts: 29
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2003
Posts: 29
That seems a little silly in my opinion, as font names can be up to 255 characters in length (I think). What if I had a font named "ThisIsAReallyAwesomeFontWithAReallyLongNameButItIsSoPrettyTooBadICantDisplayItInMirc" ???


Link Copied to Clipboard