Commit ba2f066c authored by Dom Lachowicz's avatar Dom Lachowicz

libcroco support works now. libcroco is also lgpl now for those interested parties out there...

parent 37c290ca
2003-03-19 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Re-enable libcroco support, make it the default
* rsvg-styles.c (ccss_end_selector): Make libcroco support work
2003-03-19 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Disable libcroco support until libcroco implements
......
Version 2.3.0
- Support Paths inside of <defs> and use them in <use/> statements
- Vastly improved CSS support (libcroco and builtin)
- LibCroco CSS support
== gnome-2-2 branch ==
......
......@@ -103,8 +103,7 @@ LIBCROCO_CFLAGS=""
LIBCROCO_LIBS=""
LIBCROCOPKG=""
# DOM: re-enable this sometime when our libcroco support works
test_croco=false
test_croco=true
AC_ARG_WITH(croco,[ --with-croco Use libcroco for CSS parsing],[
if test "x$withval" = "xno"; then
test_croco=false
......
......@@ -55,7 +55,7 @@ rsvg_state_init (RsvgState *state)
state->join = ART_PATH_STROKE_JOIN_MITER;
state->stop_opacity = 0xff;
state->font_family = g_strdup ("Times Roman");
state->font_family = g_strdup ("Times New Roman");
state->font_size = 12.0;
state->font_style = PANGO_STYLE_NORMAL;
state->font_variant = PANGO_VARIANT_NORMAL;
......@@ -407,11 +407,13 @@ ccss_end_selector (CRDocHandler *a_handler,
if (a_selector_list)
for (cur = a_selector_list; cur; cur = cur->next) {
/* TODO: rewrite the various dump routines to return strings
char * style_name = cr_selector_to_string (cur);
rsvg_css_define_style (user_data->ctx, style_name, user_data->def->str);
g_free (style_name);
*/
if (cur->simple_sel) {
guchar * style_name = cr_simple_sel_to_string (cur->simple_sel);
if (style_name) {
rsvg_css_define_style (user_data->ctx, style_name, user_data->def->str);
g_free (style_name);
}
}
}
g_string_free (user_data->def, TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment