fix example and library header for new method initFonts.