pclewis/mcpatcher — pull request #49 by dluechoy (2012-06-01 16:29:48+00:00)
Title: Bugfix for automatic character width detection. Less garbage.

Reads _Alpha_ instead of _Green_ channel when determining opacity. This allows automatic width detection to work with most fonts.
Automatic detection has been restricted to one character fullwidth, properties files will still override this.
Very large font textures (1024^2) will still have a single pixel-wide column of garbage at the edge of auto-detected fullwidth characters. (This now typically appears as dots after an 'M' or a '_' instead of "garbled" noise after anything wider than a '1')

The threshold for opacity has been moved to 16 from 0.

getStringWidthf resets bold ('link' ?) tracking for colour formatting codes as well, like the vanilla Minecraft fontRenderer outputs.

Signed-off-by: dluechoy