From: Michael Orlitzky Date: Sat, 7 Jun 2025 13:43:35 +0000 (-0400) Subject: src/svgtiny.c: remove old misleading libcss comments X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=a3956c978390a520d227fdad72755232b56ff5e8;p=libsvgtiny.git src/svgtiny.c: remove old misleading libcss comments There were a few comments in this file suggesting some future libcss integration. However, now that we are beginning that integration (much later), it is probably best to start with a clean slate. So, we remove those comments. --- diff --git a/src/svgtiny.c b/src/svgtiny.c index ab49f8f..44ca0fe 100644 --- a/src/svgtiny.c +++ b/src/svgtiny.c @@ -256,13 +256,7 @@ svgtiny_parse_font_attributes(dom_element *node, for (attr = node->properties; attr; attr = attr->next) { if (strcmp((const char *) attr->name, "font-size") == 0) { - /*if (css_parse_length( - (const char *) attr->children->content, - &state->style.font_size.value.length, - true, true)) { - state->style.font_size.size = - CSS_FONT_SIZE_LENGTH; - }*/ + /* TODO */ } } #endif @@ -844,9 +838,6 @@ svgtiny_parse_text(dom_element *text, struct svgtiny_parse_state state) /* state.ctm.e = px - state.origin_x; */ /* state.ctm.f = py - state.origin_y; */ - /*struct css_style style = state.style; - style.font_size.value.length.value *= state.ctm.a;*/ - exc = dom_node_get_first_child(text, &child); if (exc != DOM_NO_ERR) { return svgtiny_LIBDOM_ERROR; @@ -1118,8 +1109,6 @@ initialise_parse_state(struct svgtiny_parse_state *state, state->ctm.d = 1; /*(float) viewport_height / (float) height;*/ state->ctm.e = 0; /*x;*/ state->ctm.f = 0; /*y;*/ - /*state->style = css_base_style; - state->style.font_size.value.length.value = option_font_size * 0.1;*/ state->fill = 0x000000; state->stroke = svgtiny_TRANSPARENT; state->stroke_width = 1;