2006-09-18 Behdad Esfahbod <behdad@gnome.org>
+ * pango/pangoft2-render.c (pango_ft2_font_render_glyph): Remove a
+ couple of unnecessary static variables.
+
+2006-09-18 Behdad Esfahbod <behdad@gnome.org>
+
Bug 356194 – more pango_get_log_attrs problems
* pango/break.c (tailor_break): New function. Simply calls the
if (glyph_index & PANGO_GLYPH_UNKNOWN_FLAG)
{
- static PangoFT2RenderedGlyph *box;
+ PangoFT2RenderedGlyph *box;
PangoFontMetrics *metrics;
if (!font)
if (!metrics)
goto generic_box;
- /* this box gets cached, so don't bother with static'ing it.
- */
-
box = pango_ft2_font_render_box_glyph (PANGO_PIXELS (metrics->approximate_char_width),
PANGO_PIXELS (metrics->ascent + metrics->descent),
PANGO_PIXELS (metrics->ascent));
}
else
{
- static PangoFT2RenderedGlyph *box = NULL;
-
- generic_box:
- if (!box)
- {
- box = pango_ft2_font_render_box_glyph (PANGO_UNKNOWN_GLYPH_WIDTH,
- PANGO_UNKNOWN_GLYPH_HEIGHT,
- PANGO_UNKNOWN_GLYPH_HEIGHT);
- }
-
- return box;
+generic_box:
+ return pango_ft2_font_render_box_glyph (PANGO_UNKNOWN_GLYPH_WIDTH,
+ PANGO_UNKNOWN_GLYPH_HEIGHT,
+ PANGO_UNKNOWN_GLYPH_HEIGHT);
}
}