Protect switch on hintstyle with #ifdef FC_HINT_STYLE.

This commit is contained in:
Dave Beckett 2005-01-23 15:16:57 +00:00
parent 7114a77ce1
commit c58f6a4bcf
3 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2005-01-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* src/cairo_ft_font.c (_get_load_flags): Protect switch on
hintstyle with #ifdef FC_HINT_STYLE.
2005-01-23 Carl Worth <cworth@cworth.org>
* RELEASING: Add instructions for handling the new "-head" suffix

View file

@ -517,10 +517,6 @@ _get_load_flags (FcPattern *pattern)
if (!hinting || hintstyle == FC_HINT_NONE)
load_flags |= FT_LOAD_NO_HINTING;
#else /* !FC_HINT_STYLE */
if (!hinting)
load_flags |= FT_LOAD_NO_HINTING;
#endif /* FC_FHINT_STYLE */
switch (hintstyle) {
case FC_HINT_SLIGHT:
@ -531,6 +527,10 @@ _get_load_flags (FcPattern *pattern)
load_flags |= FT_LOAD_TARGET_NORMAL;
break;
}
#else /* !FC_HINT_STYLE */
if (!hinting)
load_flags |= FT_LOAD_NO_HINTING;
#endif /* FC_FHINT_STYLE */
/* force autohinting if requested */
if (FcPatternGetBool (pattern,

View file

@ -517,10 +517,6 @@ _get_load_flags (FcPattern *pattern)
if (!hinting || hintstyle == FC_HINT_NONE)
load_flags |= FT_LOAD_NO_HINTING;
#else /* !FC_HINT_STYLE */
if (!hinting)
load_flags |= FT_LOAD_NO_HINTING;
#endif /* FC_FHINT_STYLE */
switch (hintstyle) {
case FC_HINT_SLIGHT:
@ -531,6 +527,10 @@ _get_load_flags (FcPattern *pattern)
load_flags |= FT_LOAD_TARGET_NORMAL;
break;
}
#else /* !FC_HINT_STYLE */
if (!hinting)
load_flags |= FT_LOAD_NO_HINTING;
#endif /* FC_FHINT_STYLE */
/* force autohinting if requested */
if (FcPatternGetBool (pattern,