def get_font_config(self):
if self._rc_cache is None:<EOL><INDENT>self._rc_cache = dict([(k,None) for k in self._rc_cache_keys])<EOL><DEDENT>changed = [par for par in self._rc_cache_keys if rcParams[par] !=self._rc_cache[par]]<EOL>if changed:<EOL><INDENT>if DEBUG: print('<STR_LIT>', changed)<EOL>for k in changed:<EOL><INDENT>if DEBUG:<EOL><INDENT>print('<STR_LIT>' %(k, self._rc_cache[k], rcParams[k]))<EOL><DEDENT>self._rc_cache[k] = copy.deepcopy(rcParams[k])<EOL><DEDENT>if DEBUG: print('<STR_LIT>', self._fontconfig)<EOL>self.__init__()<EOL><DEDENT>if DEBUG: print('<STR_LIT>', self._fontconfig)<EOL>return self._fontconfig<EOL>
Reinitializes self if relevant rcParams on have changed.