2024-11-12 12:06:37 +01:00
|
|
|
Index: cairo-1.18.0/src/cairo-ft-font.c
|
2024-05-03 11:28:55 +02:00
|
|
|
===================================================================
|
2024-11-12 12:06:37 +01:00
|
|
|
--- cairo-1.18.0.orig/src/cairo-ft-font.c
|
|
|
|
+++ cairo-1.18.0/src/cairo-ft-font.c
|
|
|
|
@@ -1233,7 +1233,7 @@ _get_bitmap_surface (FT_Bitmap *bi
|
2024-05-03 11:28:55 +02:00
|
|
|
width = bitmap->width;
|
|
|
|
height = bitmap->rows;
|
|
|
|
|
|
|
|
- if (width == 0 || height == 0) {
|
|
|
|
+ if (width == 0 || height == 0 || bitmap->buffer == NULL) {
|
|
|
|
*surface = (cairo_image_surface_t *)
|
|
|
|
cairo_image_surface_create_for_data (NULL, format, 0, 0, 0);
|
|
|
|
return (*surface)->base.status;
|