Set premultiplied flag to the color font glyph bitmap (#3716)
* color font bitmap is premultiplied * update visual tests
This commit is contained in:
parent
71344f78df
commit
d0ecd51b63
2 changed files with 2 additions and 1 deletions
|
@ -157,6 +157,7 @@ void composite_color_bitmap(T & pixmap, FT_Bitmap *bitmap, int x, int y, double
|
|||
int scaled_height = bitmap->rows * scale;
|
||||
image_rgba8 scaled_image(scaled_width, scaled_height);
|
||||
scale_image_agg(scaled_image, image , SCALING_BILINEAR , scale, scale, 0.0, 0.0, 1.0, 0);
|
||||
set_premultiplied_alpha(scaled_image, true);
|
||||
composite(pixmap, scaled_image, comp_op, opacity, x, y);
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit fd518f1f512b8aea4ac740c2ce12c249616a291c
|
||||
Subproject commit 674c5402e6275905ddb7b1fccb0376cae2ec50e0
|
Loading…
Reference in a new issue