If text antialiasing is the desired defaul, honor it in LabelSausage.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2510 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-12-18 01:36:56 +00:00
parent e6740260c9
commit edb6f304e4
@@ -72,7 +72,14 @@ public abstract class LabelSausage
}
// lay out our label
_label.layout(gfx);
if (SwingUtil.getDefaultTextAntialiasing()) {
Object oalias = SwingUtil.activateAntiAliasing(gfx);
_label.layout(gfx);
SwingUtil.restoreAntiAliasing(gfx, oalias);
} else {
_label.layout(gfx);
}
Dimension lsize = _label.getSize();
// if we have no icon, make sure that the label has enough room