- struct cell_style *style = pool_alloc (tab->container, sizeof *style);
- *style = (struct cell_style) CELL_STYLE_INITIALIZER;
- if (text_item->font)
- style->font = pool_strdup (tab->container, text_item->font);
- style->font_size = text_item->font_size;
- style->bold = text_item->bold;
- style->italic = text_item->italic;
- style->underline = text_item->underline;
+ struct area_style *style = pool_alloc (tab->container, sizeof *style);
+ *style = (struct area_style) AREA_STYLE_INITIALIZER;
+ struct font_style *font_style = &style->font_style;
+ if (text_item->typeface)
+ font_style->typeface = pool_strdup (tab->container, text_item->typeface);
+ font_style->size = text_item->size;
+ font_style->bold = text_item->bold;
+ font_style->italic = text_item->italic;
+ font_style->underline = text_item->underline;
+ font_style->markup = text_item->markup;