added font method and global scanner