Xlabel alphamap AND font smoothing Thread last updated on 2006-07-28 09:27:22

Posted by member 134680 on 2006-07-26 07:54:26

Hi all, basicly as the title says.
I can see that xpopup can do font smoothing on an alphamapped label, so im wondering why xlabel cant do this?
Or can it and im coding it wrong...
Help?
-Ash

Posted by member 248213 on 2006-07-26 08:47:12 link

Whats your code and xlabel version

Posted by member 134680 on 2006-07-26 18:08:03 link

xlabel = xlabel-3.4.9.dll
code is as follows
*label infobar_
infobar_updateinterval 20
infobar_x $tabinfobar_x+44$
infobar_y -17
infobar_width 240
infobar_height 15
infobar_moveable false
infobar_movemodifierkey .none
infobar_dropshadow false
infobar_image blank.png
infobar_imageleftedge 0
infobar_imagerightedge 0
infobar_imagetopedge 0
infobar_imagebottomedge 0
infobar_alwaysontop
infobar_Font $font$
infobar_FontColor $fontcolor$
infobar_fontoutline true
infobar_fontoutlinecolor $fontcoloroutline$
;infobar_fontshadowx 1
;infobar_fontshadowy 1
infobar_FontHeight $fontheight$
infobar_text $infotext$
infobar_TextFade 0 10 4 4
infobar_rightborder 0
infobar_leftborder 0
infobar_fontalign left
infobar_OnLeftClick !execute [!Labelshow Command] [!LabelFocus command .editbox]
infobar_onHover !LabelSetText infobar_ "Click to enter Cmd Line"
infobar_OnLeave !Labelsettext infobar_ "[afterLast(activetask('ultimatum'), '\')]"
infobar_hovertimeout 0
infobar_alphamap

Blank.png is an alphamapped image that is transparent.

Any ideas to get the font smoothing working?
-Ash

Posted by member 1949 on 2006-07-26 18:19:30 link

I notice alpha mapping labels and displaying text weird.
So I do this.
Dont Alphamap!

Use a regular image and set the transparency to 5 or something that you cant see and display your text on it this way.

Hope that helps!

Posted by member 134680 on 2006-07-26 21:30:31 link

well, then i cant see the text either :P
-Ash

Posted by member 248213 on 2006-07-27 10:01:31 link

maybe the outline is screwing with it?
and there are 2 smoothing settings, maybe try alternating them or something...

Posted by member 37809 on 2006-07-27 12:09:06 link

to get antialiased text against an alphamapped background, it has to be custom-rendered. my guess is that font smoothing requires an opaque background to draw against. if your design is basic and you can use multiple labels and docking. have the texted label not alphamapped.

Posted by member 280260 on 2006-07-27 12:33:15 link

It's actually quite simple. Just make an entirely see-through background image and then add all of your content as alpha-mapped overlay labels. Andymon provides excellent documentation on how to do this.
[shameless self-promotion]
Or you could check out examples in the widget code in agua.
[/shameless self-promotion]

Posted by member 134680 on 2006-07-28 09:27:22 link

Wow thanks jqubit! that was a real help!
:D
My next (long overdue rewritten and regraphiked over and over) theme is nearly ready!
In all honest I have made probably 6 themes just in its evolution...
It really is something else. Cant wait to release it!
-Ash