diff options
author | Carl Worth <cworth@cworth.org> | 2006-07-31 11:47:45 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-08-07 14:30:06 -0700 |
commit | 43b579d757ded66f71da8a0e215abd7bccdfd695 (patch) | |
tree | eae4d88ae0baf2d79123e213bb524f6f17256d9e /src/cairo-ft-font.c | |
parent | d1f9bef30ea7268fee74af50c0e9325e1ec0929c (diff) |
Add -Wswitch-enum compiler flag and fix all trivial warnings
Diffstat (limited to 'src/cairo-ft-font.c')
-rw-r--r-- | src/cairo-ft-font.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index 18aa68ced..6cc54bf31 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -978,6 +978,7 @@ _render_glyph_outline (FT_Face face, switch (font_options->subpixel_order) { case CAIRO_SUBPIXEL_ORDER_RGB: case CAIRO_SUBPIXEL_ORDER_BGR: + case CAIRO_SUBPIXEL_ORDER_DEFAULT: default: matrix.xx *= 3; hmul = 3; @@ -2204,6 +2205,9 @@ cairo_ft_font_options_substitute (const cairo_font_options_t *options, int hint_style; switch (options->hint_style) { + case CAIRO_HINT_STYLE_NONE: + hint_style = FC_HINT_NONE; + break; case CAIRO_HINT_STYLE_SLIGHT: hint_style = FC_HINT_SLIGHT; break; @@ -2211,6 +2215,7 @@ cairo_ft_font_options_substitute (const cairo_font_options_t *options, hint_style = FC_HINT_MEDIUM; break; case CAIRO_HINT_STYLE_FULL: + case CAIRO_HINT_STYLE_DEFAULT: default: hint_style = FC_HINT_FULL; break; |