mIRC Home    About    Download    Register    News    Help

Print Thread
/font crashes mIRC #91661 24/07/04 09:46 PM
Joined: Aug 2003
Posts: 29
E
electrik Offline OP
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.

Re: /font crashes mIRC #91662 24/07/04 11:38 PM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
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

Re: /font crashes mIRC #91663 25/07/04 12:49 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
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
Re: /font crashes mIRC #91664 25/07/04 12:53 AM
Joined: Feb 2003
Posts: 11
T
totally Offline
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>"

Re: /font crashes mIRC #91665 25/07/04 01:53 AM
Joined: Aug 2003
Posts: 29
E
electrik Offline OP
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.
Re: /font crashes mIRC #91666 25/07/04 03:38 AM
Joined: Jul 2004
Posts: 150
D
Debug Offline
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.

Re: /font crashes mIRC #91667 25/07/04 06:37 AM
Joined: Aug 2003
Posts: 29
E
electrik Offline OP
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.

Re: /font crashes mIRC #91668 25/07/04 12:49 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
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.

Re: /font crashes mIRC #91669 25/07/04 02:29 PM
Joined: Dec 2002
Posts: 230
G
greeny Offline
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.

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

Re: /font crashes mIRC #91671 26/07/04 11:09 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
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.

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

Re: /font crashes mIRC #91673 27/07/04 07:23 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
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.

Re: /font crashes mIRC #91674 27/07/04 09:01 PM
Joined: Aug 2003
Posts: 29
E
electrik Offline OP
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" ???