mIRC Home    About    Download    Register    News    Help

Topic Options
#80967 - 27/04/04 11:51 PM browser-like font support
jokoon Offline
Bowl of petunias

Registered: 27/04/04
Posts: 2
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.

Top
#80968 - 28/04/04 12:31 AM Re: browser-like font support
southsider Offline
Self-satisified door

Registered: 26/04/04
Posts: 3
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

Top
#80969 - 01/05/04 02:05 AM Re: browser-like font support
Rounin Offline
Fjord artisan

Registered: 11/02/03
Posts: 372
Incidentally, what is the difference between pixels and points?

Top
#80970 - 01/05/04 03:12 AM Re: browser-like font support
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
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.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#80971 - 01/05/04 10:58 AM Re: browser-like font support
Rounin Offline
Fjord artisan

Registered: 11/02/03
Posts: 372
Thanks. Seems like points are a Really Good Idea, then.

Top
#80972 - 01/05/04 05:49 PM Re: browser-like font support
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
Well points are already supported, just give /font a negative value and it'll be treated as points instead of pixels.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#80973 - 03/05/04 06:27 AM Re: browser-like font support
jokoon Offline
Bowl of petunias

Registered: 27/04/04
Posts: 2
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

Top