Use int for texture size, otherwise it'd never equal to the actual texture size. Fixes #2215.
Do similar for markup label.
Merge pull request #2225 from matham/text-int

Use int for texture size, otherwise it'd never equal to the actual texture size.