added possibility to choose cache size for fonts, glyphs and other resource