mIRC Home    About    Download    Register    News    Help

Print Thread
#222651 28/06/10 07:39 PM
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
On a clean mIRC 7.06, "//font -a 12 ehefzef" change it to a font when it should report the font doesn't exist.
If you use /font then, mirc says the font is fixedsys.
Also when you run /font, no preview is avalaible, if you change the font, (even the same) the preview appears, some also reported that "/font -z size fontname" is loading a wrong font sometime, but setting the font manualy work


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #222653 28/06/10 08:17 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It makes sense that it says Fixedsys if you load an invalid font since that's the default when you try loading a font that's not available (such as typing in an invalid font in the mirc.ini file). However, an error message wouldn't be a bad idea instead of accepting it. That said, I don't think halting a script because of that is a good idea. A warning would be okay, but it should still default to the default mIRC font (Fixedsys) so users don't have to find the font to make the script work or edit the script to use a different font.

Kind of in combination with this, I'd love to see the option of setting multiple fonts such that if the first isn't available, it tries the next, and so on so that you can pick a variety that you know will look the way you want rather than just one before it defaults back to Fixedsys. Basically the same as you can do in HTML.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #222654 28/06/10 08:21 PM
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Quote:
It makes sense that it says Fixedsys if you load an invalid font since that's the default when you try loading a font that's not available
Maybe it's not clear in the previous post but the bug is that //font -a 12 ehefzef" is changing the font and not even to fixedsys


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #222656 28/06/10 08:49 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
This is "a feature, not a bug". Setting a specific font is something you can do with or without the font installed. For instance, you can /font to a font that does not exist, install the font and restart mIRC, and you will see it. That's a good thing; it allows a user to tell mIRC to use font "X" whenever it is available on the system-- otherwise fallback on the default font. Users who often change machines might have a configuration such as this.

The font setting is changing properly (as it is designed to), but if the font is not on your system, mIRC will display the default font (Fixedsys) in your windows and in the /font dialog.

What's wrong with that behaviour?


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #222659 28/06/10 09:16 PM
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
This is a bug, not a feature :

-run a clean 7.06, the font of the status windows is fixedsys
-/font -a 12 nonexistingfonthere
-the font of the status window isn't fixedsys.





#mircscripting @ irc.swiftirc.net == the best mIRC help channel
argv0 #222660 28/06/10 09:23 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Originally Posted By: argv0
What's wrong with that behaviour?


It's reverting to a font that isn't Fixedsys, even if Fixedsys is on the system. Therefore it shouldn't be classifying the font it has reverted to as Fixedsys but in fact the font it actually is.



What do you do at the end of the world? Are you busy? Will you save us?
Wims #222661 28/06/10 09:49 PM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
This is by design. mIRC performs no checking on any of the font details that you specify. I could make mIRC do that, however it would break all scripts that attempt to use fonts that do not exist on your system. Apart from that, there is no guarantee that mIRC will use the font name that you provide since it leaves it up to Windows to decide which font most closely matches that font name and size and allows Windows to synthesize a font if it does not find an exact match. Note that this has been the behavior ever since this command was added in 1996.

Khaled #222664 28/06/10 11:40 PM
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Quote:
Apart from that, there is no guarantee that mIRC will use the font name that you provide since it leaves it up to Windows to decide which font most closely matches that font name and size and allows Windows to synthesize a font if it does not find an exact match.

That's why I'm seeing it as a bug then, this explaination would be a very good addition to /help /font.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard