respect text and halo opacity in cairo renderer
This commit is contained in:
parent
bed3c5a9c1
commit
f518d44be0
2 changed files with 4 additions and 4 deletions
|
@ -469,7 +469,7 @@ void cairo_context::add_text(glyph_positions_ptr path,
|
|||
glyph_path(glyph.glyph_index, pixel_position(sx + pos.x, sy - pos.y));
|
||||
set_line_width(2.0 * halo_radius);
|
||||
set_line_join(ROUND_JOIN);
|
||||
set_color(format->halo_fill);
|
||||
set_color(format->halo_fill, format->halo_opacity);
|
||||
stroke();
|
||||
}
|
||||
|
||||
|
@ -496,7 +496,7 @@ void cairo_context::add_text(glyph_positions_ptr path,
|
|||
set_font_matrix(matrix);
|
||||
set_font_face(manager, glyph.face);
|
||||
pixel_position pos = glyph_pos.pos + glyph.offset.rotate(glyph_pos.rot);
|
||||
set_color(format->fill);
|
||||
set_color(format->fill, format->text_opacity);
|
||||
show_glyph(glyph.glyph_index, pixel_position(sx + pos.x, sy - pos.y));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue