Remove FcInit() calls from tools
Library is supposed to automatically initialize itself. If it doesn't, it's a bug.
This commit is contained in:
parent
102a4344dd
commit
17eda89ed2
|
@ -136,11 +136,6 @@ main (int argc, char **argv)
|
||||||
i = 1;
|
i = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!FcInit ())
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Can't init font config library\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
if (argv[i])
|
if (argv[i])
|
||||||
{
|
{
|
||||||
pat = FcNameParse ((FcChar8 *) argv[i]);
|
pat = FcNameParse ((FcChar8 *) argv[i]);
|
||||||
|
|
|
@ -143,11 +143,6 @@ main (int argc, char **argv)
|
||||||
i = 1;
|
i = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!FcInit ())
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Can't init font config library\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
if (argv[i])
|
if (argv[i])
|
||||||
{
|
{
|
||||||
pat = FcNameParse ((FcChar8 *) argv[i]);
|
pat = FcNameParse ((FcChar8 *) argv[i]);
|
||||||
|
|
|
@ -134,11 +134,6 @@ main (int argc, char **argv)
|
||||||
i = 1;
|
i = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!FcInit ())
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Can't init font config library\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
if (argv[i])
|
if (argv[i])
|
||||||
{
|
{
|
||||||
pat = FcNameParse ((FcChar8 *) argv[i]);
|
pat = FcNameParse ((FcChar8 *) argv[i]);
|
||||||
|
|
|
@ -136,12 +136,6 @@ main (int argc, char **argv)
|
||||||
if (i == argc)
|
if (i == argc)
|
||||||
usage (argv[0], 1);
|
usage (argv[0], 1);
|
||||||
|
|
||||||
if (!FcInit ())
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Can't init font config library\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (; i < argc; i++)
|
for (; i < argc; i++)
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
|
|
|
@ -126,12 +126,6 @@ main (int argc, char **argv)
|
||||||
if (i == argc)
|
if (i == argc)
|
||||||
usage (argv[0], 1);
|
usage (argv[0], 1);
|
||||||
|
|
||||||
if (!FcInit ())
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Can't init font config library\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
fs = FcFontSetCreate ();
|
fs = FcFontSetCreate ();
|
||||||
|
|
||||||
for (; i < argc; i++)
|
for (; i < argc; i++)
|
||||||
|
|
Loading…
Reference in New Issue