···7171 if (!txt)
7272 return log_msg_ret("dim", -ENOENT);
73737474- ret = vidconsole_nominal(scn->expo->cons, txt->font_name,
7575- txt->font_size, tline->max_chars, &bbox);
7474+ ret = vidconsole_nominal(scn->expo->cons, txt->gen.font_name,
7575+ txt->gen.font_size, tline->max_chars, &bbox);
7676 if (ret)
7777 return log_msg_ret("nom", ret);
7878···191191 if (!txt)
192192 return log_msg_ret("cur", -ENOENT);
193193194194- if (txt->font_name || txt->font_size) {
194194+ if (txt->gen.font_name || txt->gen.font_size) {
195195 ret = vidconsole_select_font(cons,
196196- txt->font_name,
197197- txt->font_size);
196196+ txt->gen.font_name,
197197+ txt->gen.font_size);
198198 } else {
199199 ret = vidconsole_select_font(cons, NULL, 0);
200200 }
+15-6
include/expo.h
···291291};
292292293293/**
294294+ * struct scene_txt_generic - Generic information common to text objects
295295+ *
296296+ * @str_id: ID of the text string to display
297297+ * @font_name: Name of font (allocated by caller)
298298+ * @font_size: Nominal size of font in pixels
299299+ */
300300+struct scene_txt_generic {
301301+ uint str_id;
302302+ const char *font_name;
303303+ uint font_size;
304304+};
305305+306306+/**
294307 * struct scene_obj_txt - information about a text object in a scene
295308 *
296309 * This is a single-line text object
297310 *
298311 * @obj: Basic object information
299299- * @str_id: ID of the text string to display
300300- * @font_name: Name of font (allocated by caller)
301301- * @font_size: Nominal size of font in pixels
312312+ * @gen: Generic information common to all objects which show text
302313 */
303314struct scene_obj_txt {
304315 struct scene_obj obj;
305305- uint str_id;
306306- const char *font_name;
307307- uint font_size;
316316+ struct scene_txt_generic gen;
308317};
309318310319/**