mIRC Home    About    Download    Register    News    Help

Print Thread
#7281 18/01/03 10:25 PM
Joined: Dec 2002
Posts: 56
G
Gon_ Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Dec 2002
Posts: 56
In windows 2000 (maybe other OS too), the Windows Font Smoothing option causes text in a picture window to be smoothed. This is a problem, because to smooth the font, windows adds extra colors/pixels to it.

This undermines the usefulness of $getdot, /drawreplace, /drawfill, and $width.

for example (with font smoothing turned on):

Code:
  
alias test {
window -podC @test
drawtext -r @test $rgb(255,0,0) "Arial" -19 10 10 Test Test Test
drawreplace -r @test $rgb(255,0,0) $color($color(background))
}




Also, while were on /drawtext:
"The -p switch processes and interprets color/bold/etc. codes in the text."

There is an old problem with the this. It draws a filled rectangle behind the text. The color of the rectangle is $color(background) and this is a problem if you want to place text over an image, or a different colored background.

Last edited by Gon_; 18/01/03 10:34 PM.
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
I have that setting ("Smooth edges of screen fonts" I think it is called) turned off because it slows down the GUI for some odd reason. When I had it turned on the only font I could use without visual lag was Microsoft Sans Serif.


Link Copied to Clipboard