rewrite the whole code

add freetype class, not complete for now