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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user