fix declare main
fix font render and add some methods
add flame demo