summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/html.cc25
-rw-r--r--src/html_common.hh2
-rw-r--r--src/table.cc1
3 files changed, 0 insertions, 28 deletions
diff --git a/src/html.cc b/src/html.cc
index 712904be..1b2485c5 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -295,31 +295,6 @@ static int Html_add_new_linkimage(DilloHtml *html,
}
/*
- * Set the font at the top of the stack. BImask specifies which
- * attributes in BI should be changed.
- */
-void a_Html_set_top_font(DilloHtml *html, const char *name, int size,
- int BI, int BImask)
-{
-#if 0
- FontAttrs font_attrs;
-
- font_attrs = *html->styleEngine->style ()->font;
- if (name)
- font_attrs.name = name;
- if (size)
- font_attrs.size = size;
- if (BImask & 1)
- font_attrs.weight = (BI & 1) ? 700 : 400;
- if (BImask & 2)
- font_attrs.style = (BI & 2) ? FONT_STYLE_ITALIC : FONT_STYLE_NORMAL;
-
- HTML_SET_TOP_ATTR (html, font,
- Font::create (HT2LT(html), &font_attrs));
-#endif
-}
-
-/*
* Evaluates the ALIGN attribute (left|center|right|justify) and
* sets the style at the top of the stack.
*/
diff --git a/src/html_common.hh b/src/html_common.hh
index fb470c27..aaab4861 100644
--- a/src/html_common.hh
+++ b/src/html_common.hh
@@ -273,7 +273,5 @@ void a_Html_tag_set_align_attr(DilloHtml *html, CssPropertyList *props,
bool a_Html_tag_set_valign_attr(DilloHtml *html,
const char *tag, int tagsize,
CssPropertyList *props);
-void a_Html_set_top_font(DilloHtml *html, const char *name, int size,
- int BI, int BImask);
#endif /* __HTML_COMMON_HH__ */
diff --git a/src/table.cc b/src/table.cc
index e06849a5..1bae2a4b 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -209,7 +209,6 @@ void Html_tag_open_td(DilloHtml *html, const char *tag, int tagsize)
*/
void Html_tag_open_th(DilloHtml *html, const char *tag, int tagsize)
{
- a_Html_set_top_font(html, NULL, 0, 1, 1);
Html_tag_open_table_cell (html, tag, tagsize,
dw::core::style::TEXT_ALIGN_CENTER);
}