memory leak fix, update font, release v3.1.0