allow fontmap as a parameter of the text method