(freetype) refactor freetype.c