mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 09:08:16 +02:00
Protect switch on hintstyle with #ifdef FC_HINT_STYLE.
This commit is contained in:
parent
7114a77ce1
commit
c58f6a4bcf
3 changed files with 13 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue