Commit b7ae3e83 authored by Darin Adler's avatar Darin Adler

Don't set font_family to NULL since pangoft2 doesn't currnetly handle this

	* rsvg.c: (rsvg_text_handler_characters):
	Don't set font_family to NULL since pangoft2 doesn't
	currnetly handle this properly.
parent 7d9f1dd9
2002-01-03 Darin Adler <darin@bentspoon.com>
* rsvg.c: (rsvg_text_handler_characters):
Don't set font_family to NULL since pangoft2 doesn't
currnetly handle this properly.
2002-01-02 Darin Adler <darin@bentspoon.com>
* librsvg-2.0.pc.in: Remove spurious 2.0 from pango
......
......@@ -926,7 +926,8 @@ rsvg_text_handler_characters (RsvgSaxHandler *self, const xmlChar *ch, int len)
layout = pango_layout_new (ctx->pango_context);
pango_layout_set_text (layout, string, -1);
font = pango_font_description_copy (pango_context_get_font_description (ctx->pango_context));
pango_font_description_set_family_static (font, state->font_family);
if (state->font_family)
pango_font_description_set_family_static (font, state->font_family);
pango_font_description_set_size (font, state->font_size * PANGO_SCALE);
pango_layout_set_font_description (layout, font);
pango_font_description_free (font);
......
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