slightly more rigorous bounds checking and auto-fit

This commit is contained in:
Will Charczuk 2016-07-12 16:47:52 -07:00
parent bba75e5d4c
commit 28f01842de
13 changed files with 475 additions and 195 deletions

View file

@ -47,6 +47,6 @@ func TestVectorRendererMeasureText(t *testing.T) {
vr.SetFontSize(12.0)
tb := vr.MeasureText("Ljp")
assert.Equal(21, tb.Width)
assert.Equal(15, tb.Height)
assert.Equal(21, tb.Width())
assert.Equal(15, tb.Height())
}