mIRC Homepage
Posted By: jokoon browser-like font support - 27/04/04 10:51 PM
Under windows, when I compare <font size=1 face=tahoma>anytext here</font> in a browser, it looks like a different style compared to mIRC tahoma font set to 8
I don't know how it is coded, but it could be a nice feature to add font size with HTML size.
Posted By: southsider Re: browser-like font support - 27/04/04 11:31 PM
Internet Explorer size 1 font is infact 10px on normal display settings.

Try /font 10 Tahoma for the desired effect. The "size" argument is in pixels, not points as in the fonts dialog.

HTH
Posted By: Rounin Re: browser-like font support - 01/05/04 01:05 AM
Incidentally, what is the difference between pixels and points?
Posted By: starbucks_mafia Re: browser-like font support - 01/05/04 02:12 AM
Points are a real world measurement originally used in printing/typesetting. A point is 1/72 of an inch, which means that precisely how large it is rendered on screen depends on the size of a logical inch on that particular computer. For instance a PC will typically use 96DPI (96 pixels per inch), meaning a pixel will appear smaller than a point, however Macs usually use 72DPI, so a point and a pixel would appear the same size to a Mac user.

jokoon: The <font> tag's size values 1-7 aren't real measurements, they're simply relative sizes based on the HTML document's base font. The actual sizes used and the difference in relative size between the values varies between implementations of browsers. For instance Internet Explorer displays fonts sized using <font size="some number"> much larger than Mozilla does. There's really not anything mIRC can do to use HTML browser sizes.
Posted By: Rounin Re: browser-like font support - 01/05/04 09:58 AM
Thanks. Seems like points are a Really Good Idea, then.
Posted By: starbucks_mafia Re: browser-like font support - 01/05/04 04:49 PM
Well points are already supported, just give /font a negative value and it'll be treated as points instead of pixels.
Posted By: jokoon Re: browser-like font support - 03/05/04 05:27 AM
thanks you for your help !
I noticed that nnscript's default theme has the same "fonts style" than mozilla, so maybe there is some script to make..
But it could be a feature to introduce in mIRC
© mIRC Discussion Forums