Try to fix msvc build
This commit is contained in:
parent
d2b420589b
commit
7c12db46ff
|
@ -28,11 +28,11 @@
|
||||||
#ifndef HB_OT_COLOR_COLR_TABLE_HH
|
#ifndef HB_OT_COLOR_COLR_TABLE_HH
|
||||||
#define HB_OT_COLOR_COLR_TABLE_HH
|
#define HB_OT_COLOR_COLR_TABLE_HH
|
||||||
|
|
||||||
|
#include "hb.hh"
|
||||||
#include "hb-open-type.hh"
|
#include "hb-open-type.hh"
|
||||||
#include "hb-ot-layout-common.hh"
|
#include "hb-ot-layout-common.hh"
|
||||||
#include "hb-ot-var-common.hh"
|
#include "hb-ot-var-common.hh"
|
||||||
#include "hb-paint.hh"
|
#include "hb-paint.hh"
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COLR -- Color
|
* COLR -- Color
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* Google Author(s): Matthias Clasen
|
* Google Author(s): Matthias Clasen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include "hb-cairo-utils.h"
|
#include "hb-cairo-utils.h"
|
||||||
|
|
||||||
#include <cairo.h>
|
#include <cairo.h>
|
||||||
|
@ -31,6 +33,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#define _USE_MATH_DEFINES
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
@ -133,6 +136,7 @@ hb_cairo_paint_glyph_image (cairo_t *cr,
|
||||||
hb_tag_t format,
|
hb_tag_t format,
|
||||||
hb_glyph_extents_t *extents)
|
hb_glyph_extents_t *extents)
|
||||||
{
|
{
|
||||||
|
#ifdef CAIRO_HAS_PNG_FUNCTIONS
|
||||||
if (format != HB_PAINT_IMAGE_FORMAT_PNG || !extents)
|
if (format != HB_PAINT_IMAGE_FORMAT_PNG || !extents)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -157,6 +161,7 @@ hb_cairo_paint_glyph_image (cairo_t *cr,
|
||||||
|
|
||||||
cairo_pattern_destroy (pattern);
|
cairo_pattern_destroy (pattern);
|
||||||
cairo_surface_destroy (surface);
|
cairo_surface_destroy (surface);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue