summaryrefslogtreecommitdiff
path: root/modules/syriac/syriac-fc.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/syriac/syriac-fc.c')
-rw-r--r--modules/syriac/syriac-fc.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/syriac/syriac-fc.c b/modules/syriac/syriac-fc.c
index ed689d59..300ce5d3 100644
--- a/modules/syriac/syriac-fc.c
+++ b/modules/syriac/syriac-fc.c
@@ -248,16 +248,16 @@ syriac_engine_shape (PangoEngineShape *engine,
PangoAnalysis *analysis,
PangoGlyphString *glyphs)
{
- glong n_chars;
- gunichar *wcs;
- int i;
- const char *p;
- gulong *properties = NULL;
+ PangoFcFont *fc_font;
FT_Face face;
PangoOTRuleset *ruleset;
PangoOTBuffer *buffer;
- PangoFcFont *fc_font;
+ gulong *properties = NULL;
+ glong n_chars;
+ gunichar *wcs;
+ const char *p;
int cluster = 0;
+ int i;
g_return_if_fail (font != NULL);
g_return_if_fail (text != NULL);
@@ -265,9 +265,8 @@ syriac_engine_shape (PangoEngineShape *engine,
g_return_if_fail (analysis != NULL);
fc_font = PANGO_FC_FONT (font);
-
face = pango_fc_font_lock_face (fc_font);
- g_assert (face);
+ g_return_if_fail (face != NULL);
ruleset = get_ruleset (face);
if (!ruleset)