Don't pass a double value through an integer variable. r=vlad

This commit is contained in:
dbaron%dbaron.org 2006-01-19 20:21:39 +00:00
parent 89aae7f5e1
commit 7e7a2b9599

View File

@ -565,9 +565,9 @@ DrawCairoGlyphs(gfxContext* ctx,
cairo_font_face_t* font = cairo_ft_font_face_create_for_pattern(fcfont->font_pattern);
cairo_set_font_face(ctx->GetCairo(), font);
int size;
if (FcPatternGetInteger(fcfont->font_pattern, FC_PIXEL_SIZE, 0, &size) != FcResultMatch)
size = 12;
double size;
if (FcPatternGetDouble(fcfont->font_pattern, FC_PIXEL_SIZE, 0, &size) != FcResultMatch)
size = 12.0;
cairo_set_font_size(ctx->GetCairo(), size);