diff options
author | Dom Lachowicz <doml@src.gnome.org> | 2004-06-24 22:53:05 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2004-06-24 22:53:05 +0000 |
commit | 9c9be8bd507dc4cb042e8ebc11af82077445f94e (patch) | |
tree | 39d4d408c4cb71a7b30816e96d6ca5c7efa80d76 | |
parent | 92be36ca7b1f6d4784d22628653fc7366eb1868d (diff) | |
download | librsvg-9c9be8bd507dc4cb042e8ebc11af82077445f94e.tar.gz |
get rid of some cruft
-rw-r--r-- | rsvg-css.c | 3 | ||||
-rw-r--r-- | rsvg-text.c | 31 |
2 files changed, 2 insertions, 32 deletions
@@ -693,7 +693,7 @@ rsvg_css_parse_font_family (const char * str, const char * inherit) return str; } -#if !defined(HAVE_STRTOK_R) && !GLIB_CHECK_VERSION(2, 3, 2) +#if !defined(HAVE_STRTOK_R) /* && !GLIB_CHECK_VERSION(2, 3, 2) */ static char * strtok_r(char *s, const char *delim, char **last) @@ -734,7 +734,6 @@ strtok_r(char *s, const char *delim, char **last) gchar ** rsvg_css_parse_list(const char * in_str, guint * out_list_len) { - /* the following code is defective because it creates blank entries when two splitting chars are next to each other*/ #if 0 /* GLIB_CHECK_VERSION(2, 3, 2) */ diff --git a/rsvg-text.c b/rsvg-text.c index 321cb66e..75d797ff 100644 --- a/rsvg-text.c +++ b/rsvg-text.c @@ -411,7 +411,6 @@ struct _RenderCtx typedef void (* RsvgTextRenderFunc) (PangoFont *font, PangoGlyph glyph, FT_Int32 load_flags, - FT_Matrix *trafo, gint x, gint y, gpointer render_data); @@ -706,29 +705,6 @@ cubicto (FT_Vector *ftcontrol1, } static void -rsvg_text_layout_render_trafo (RsvgTextLayout *layout, - FT_Matrix *trafo) -{ - RsvgState * state; - - state = rsvg_state_current(layout->ctx); - if(0 /* state */) - { - trafo->xx = state->affine[0] * 65536.0; - trafo->xy = state->affine[1] * 65536.0; - trafo->yx = state->affine[2] * 65536.0; - trafo->yy = state->affine[3] * 65536.0; - } - else - { - trafo->xx = 1 * 65536.0; - trafo->xy = 0 * 65536.0; - trafo->yx = 0 * 65536.0; - trafo->yy = 1 * 65536.0; - } -} - -static void rsvg_text_layout_render_glyphs (RsvgTextLayout *layout, PangoFont *font, PangoGlyphString *glyphs, @@ -739,13 +715,11 @@ rsvg_text_layout_render_glyphs (RsvgTextLayout *layout, { PangoGlyphInfo *gi; FT_Int32 flags; - FT_Matrix trafo; FT_Vector pos; gint i; gint x_position = 0; flags = rsvg_text_layout_render_flags (layout); - rsvg_text_layout_render_trafo (layout, &trafo); for (i = 0, gi = glyphs->glyphs; i < glyphs->num_glyphs; i++, gi++) { @@ -754,9 +728,7 @@ rsvg_text_layout_render_glyphs (RsvgTextLayout *layout, pos.x = x + x_position + gi->geometry.x_offset; pos.y = y + gi->geometry.y_offset; - FT_Vector_Transform (&pos, &trafo); - - render_func (font, gi->glyph, flags, &trafo, + render_func (font, gi->glyph, flags, pos.x, pos.y, render_data); } @@ -769,7 +741,6 @@ static void rsvg_text_render_vectors (PangoFont *font, PangoGlyph pango_glyph, FT_Int32 flags, - FT_Matrix *trafo, gint x, gint y, gpointer ud) |