fix text coordinate calculation -- top left is (0, 0)