diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-05-11 08:22:20 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-05-11 08:22:20 +0000 |
commit | f0f38b3ab2fd9e9a8debe35db71156afc01b5d8c (patch) | |
tree | 77fc322e6198986ffc06378a21019eccb3e4c7ce /pango/pangoxft-render.c | |
parent | 0a7f8d6fb481d2bd502b5f376a0dcef6f82ee0ff (diff) | |
download | pango-f0f38b3ab2fd9e9a8debe35db71156afc01b5d8c.tar.gz |
Update docs to note a size value of zero may have been set explicitly.
2006-05-11 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (pango_font_description_set_size): Update docs to note
a size value of zero may have been set explicitly.
* pango/pango-context.c (pango_context_load_font): Don't warn if font
size if zero.
* pango/pangoatsui-fontmap.c (pango_atsui_font_map_load_font):
* pango/pangox-fontmap.c (pango_x_font_map_load_font): Don't return if
size is zero (probably will fail with no fonts found.)
* pango/pangoxft-fontmap.c (pango_xft_font_map_default_substitute):
* Xft
chokes on size zero. Reassing PIXEL_SIZE to 1.0 if it's zero.
Diffstat (limited to 'pango/pangoxft-render.c')
-rw-r--r-- | pango/pangoxft-render.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pango/pangoxft-render.c b/pango/pangoxft-render.c index 3c5e5bed..7651cb61 100644 --- a/pango/pangoxft-render.c +++ b/pango/pangoxft-render.c @@ -372,10 +372,11 @@ _pango_xft_renderer_draw_unknown_glyph (PangoRenderer *renderer, xfont->mini_width * cols + xfont->mini_pad * (2 * cols + 1), xfont->mini_height * 2 + xfont->mini_pad * 5)) { - draw_box (renderer, xfont->mini_pad, - xs[0], ys[0], - xfont->mini_width * cols + xfont->mini_pad * (2 * cols + 1), - xfont->mini_height * 2 + xfont->mini_pad * 5); + if (xfont->mini_pad) + draw_box (renderer, xfont->mini_pad, + xs[0], ys[0], + xfont->mini_width * cols + xfont->mini_pad * (2 * cols + 1), + xfont->mini_height * 2 + xfont->mini_pad * 5); for (row = 0; row < 2; row++) for (col = 0; col < cols; col++) |