Commit 17eda89e authored by Behdad Esfahbod's avatar Behdad Esfahbod

Remove FcInit() calls from tools

Library is supposed to automatically initialize itself.  If it doesn't,
it's a bug.
parent 102a4344
......@@ -136,11 +136,6 @@ main (int argc, char **argv)
i = 1;
#endif
if (!FcInit ())
{
fprintf (stderr, "Can't init font config library\n");
return 1;
}
if (argv[i])
{
pat = FcNameParse ((FcChar8 *) argv[i]);
......
......@@ -143,11 +143,6 @@ main (int argc, char **argv)
i = 1;
#endif
if (!FcInit ())
{
fprintf (stderr, "Can't init font config library\n");
return 1;
}
if (argv[i])
{
pat = FcNameParse ((FcChar8 *) argv[i]);
......
......@@ -134,11 +134,6 @@ main (int argc, char **argv)
i = 1;
#endif
if (!FcInit ())
{
fprintf (stderr, "Can't init font config library\n");
return 1;
}
if (argv[i])
{
pat = FcNameParse ((FcChar8 *) argv[i]);
......
......@@ -136,12 +136,6 @@ main (int argc, char **argv)
if (i == argc)
usage (argv[0], 1);
if (!FcInit ())
{
fprintf (stderr, "Can't init font config library\n");
return 1;
}
for (; i < argc; i++)
{
int index;
......
......@@ -126,12 +126,6 @@ main (int argc, char **argv)
if (i == argc)
usage (argv[0], 1);
if (!FcInit ())
{
fprintf (stderr, "Can't init font config library\n");
return 1;
}
fs = FcFontSetCreate ();
for (; i < argc; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment