def set_table_font(self, font): name, size = font.split(",") cpprefs.set_table_font_name(name) cpprefs.set_table_font_size(float(size))