mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
Make cairo_scaled_font_glyph_extents() unconditionally zero the extents
This makes cairo_scaled_font_glyph_extents() match a similar pattern of
initialization in cairo_glyph_extents(). It also fixes the 'text-zero-len' test
that was broken by 676b221326.
This commit is contained in:
parent
d560a3d965
commit
e1132d434e
1 changed files with 8 additions and 8 deletions
|
|
@ -1166,15 +1166,15 @@ cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font,
|
|||
cairo_bool_t visible = FALSE;
|
||||
cairo_scaled_glyph_t *scaled_glyph = NULL;
|
||||
|
||||
if (scaled_font->status) {
|
||||
extents->x_bearing = 0.0;
|
||||
extents->y_bearing = 0.0;
|
||||
extents->width = 0.0;
|
||||
extents->height = 0.0;
|
||||
extents->x_advance = 0.0;
|
||||
extents->y_advance = 0.0;
|
||||
extents->x_bearing = 0.0;
|
||||
extents->y_bearing = 0.0;
|
||||
extents->width = 0.0;
|
||||
extents->height = 0.0;
|
||||
extents->x_advance = 0.0;
|
||||
extents->y_advance = 0.0;
|
||||
|
||||
if (scaled_font->status)
|
||||
return;
|
||||
}
|
||||
|
||||
if (num_glyphs == 0)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue