/* FIXME-tom: Should be applied to non-ot as well once we are capable of
* doing it */
fi = text_props->font_instance;
- evas_common_font_int_reload(fi);
-
- if (fi->src->current_size != fi->size)
+ if (fi)
{
- FTLOCK();
- FT_Activate_Size(fi->ft.size);
- FTUNLOCK();
- fi->src->current_size = fi->size;
+ evas_common_font_int_reload(fi);
+
+ if (fi->src->current_size != fi->size)
+ {
+ FTLOCK();
+ FT_Activate_Size(fi->ft.size);
+ FTUNLOCK();
+ fi->src->current_size = fi->size;
+ }
}
#endif
/* FIXME-tom: Should be applied to non-ot as well once we are capable of
* doing it */
fi = text_props->font_instance;
- evas_common_font_int_reload(fi);
-
- if (fi->src->current_size != fi->size)
+ if (fi)
{
- FTLOCK();
- FT_Activate_Size(fi->ft.size);
- FTUNLOCK();
- fi->src->current_size = fi->size;
+ evas_common_font_int_reload(fi);
+
+ if (fi->src->current_size != fi->size)
+ {
+ FTLOCK();
+ FT_Activate_Size(fi->ft.size);
+ FTUNLOCK();
+ fi->src->current_size = fi->size;
+ }
}
#endif