Hi,
I was just trying out UnicodeFont and added effects from org.newdawn.slick.font.effects, when I ran into the problem that effects wouldn't show up. Turns out contructors of OutlineZigzagEffect and OutlineWobbleEffect, that take width and colour as parameters, do not set the appropriate stroke. They just call super(), which in turn uses a default BasicStroke. Setting any values has no effect. Constructors without parameters set the stroke correctly.
For example this works:
Code:
OutlineZigzagEffect zigzag = new OutlineZigzagEffect();
zigzag.setWidth(3);
zigzag.setColor(Color.ORANGE);
List values = new ArrayList();
values.add(EffectUtil.floatValue("Wavelength", 10, 1, 100, ""));
values.add(EffectUtil.floatValue("Amplitude", 3, 0.5f, 500, ""));
zigzag.setValues(values);
This doesn't:
Code:
OutlineZigzagEffect zigzag = new OutlineZigzagEffect(3, Color.ORANGE);
List values = new ArrayList();
values.add(EffectUtil.floatValue("Wavelength", 10, 1, 100, ""));
values.add(EffectUtil.floatValue("Amplitude", 3, 0.5f, 500, ""));
zigzag.setValues(values);
Should be easily fixable by adding e.g. setStroke(new WobbleStroke()); to the constructor with parameters.
Great font drawing classes by the way
