mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-14 14:28:17 +02:00
ft: prevent unused var warning when freetype < 2.8
This commit is contained in:
parent
1d58e0f818
commit
fc929d7005
1 changed files with 11 additions and 7 deletions
|
|
@ -2658,7 +2658,7 @@ _cairo_ft_is_synthetic (void *abstract_font,
|
||||||
if (face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS) {
|
if (face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS) {
|
||||||
FT_MM_Var *mm_var = NULL;
|
FT_MM_Var *mm_var = NULL;
|
||||||
FT_Fixed *coords = NULL;
|
FT_Fixed *coords = NULL;
|
||||||
int num_axis, i;
|
int num_axis;
|
||||||
|
|
||||||
/* If this is an MM or variable font we can't assume the current outlines
|
/* If this is an MM or variable font we can't assume the current outlines
|
||||||
* are the same as the font tables */
|
* are the same as the font tables */
|
||||||
|
|
@ -2682,12 +2682,16 @@ _cairo_ft_is_synthetic (void *abstract_font,
|
||||||
* current design coordinates are the default coordinates. In this case
|
* current design coordinates are the default coordinates. In this case
|
||||||
* the current outlines match the font tables.
|
* the current outlines match the font tables.
|
||||||
*/
|
*/
|
||||||
FT_Get_Var_Design_Coordinates (face, num_axis, coords);
|
{
|
||||||
*is_synthetic = FALSE;
|
int i;
|
||||||
for (i = 0; i < num_axis; i++) {
|
|
||||||
if (coords[i] != mm_var->axis[i].def) {
|
FT_Get_Var_Design_Coordinates (face, num_axis, coords);
|
||||||
*is_synthetic = TRUE;
|
*is_synthetic = FALSE;
|
||||||
break;
|
for (i = 0; i < num_axis; i++) {
|
||||||
|
if (coords[i] != mm_var->axis[i].def) {
|
||||||
|
*is_synthetic = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue