Use Rachana instead of Meera for serif subsitution. (#1649184)

This commit is contained in:
Akira TAGOH 2018-11-13 11:58:10 +00:00
parent 93f4fdf3ea
commit ede0a63bf7

View File

@ -1,27 +1,7 @@
From 0ddacad43d7fce4668914a4695898902d1006965 Mon Sep 17 00:00:00 2001 diff -pruN fontconfig-2.13.1.orig/test/test-bz106632.c fontconfig-2.13.1/test/test-bz106632.c
From: Keith Packard <keithp@keithp.com> --- fontconfig-2.13.1.orig/test/test-bz106632.c 2018-08-29 09:55:14.000000000 +0000
Date: Mon, 29 Oct 2018 16:36:11 -0700 +++ fontconfig-2.13.1/test/test-bz106632.c 2018-11-13 11:57:37.822142424 +0000
Subject: [PATCH] Add delays to test-bz106632, check UptoDate separately @@ -197,7 +197,7 @@ main (void)
On a file system with one-second time stamps, extra delays are needed
between cache modification operations to ensure that fontconfig isn't
fooled.
And, when the timestamps are checked correctly, we need to make sure
that FcConfigUptoDate returns false whenever we change a font
directory, so separate that out from the call to reinitialize the core
config.
Signed-off-by: Keith Packard <keithp@keithp.com>
---
test/test-bz106632.c | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/test/test-bz106632.c b/test/test-bz106632.c
index c2edd72..87a5ec0 100644
--- a/test/test-bz106632.c
+++ b/test/test-bz106632.c
@@ -186,7 +186,7 @@ main (void)
mkdir_p (cachedir); mkdir_p (cachedir);
fprintf (stderr, "D: Copying %s to %s\n", FONTFILE, fontdir); fprintf (stderr, "D: Copying %s to %s\n", FONTFILE, fontdir);
@ -30,16 +10,16 @@ index c2edd72..87a5ec0 100644
system (cmd); system (cmd);
fprintf (stderr, "D: Loading a config\n"); fprintf (stderr, "D: Loading a config\n");
@@ -215,15 +215,21 @@ main (void) @@ -226,15 +226,21 @@ main (void)
goto bail; goto bail;
} }
fprintf (stderr, "D: Removing %s\n", fontdir); fprintf (stderr, "D: Removing %s\n", fontdir);
- snprintf (cmd, 512, "rm -f %s%s*; sleep 1", fontdir, FC_DIR_SEPARATOR_S); - snprintf (cmd, 512, "rm -f %s%s*", fontdir, FC_DIR_SEPARATOR_S);
+ snprintf (cmd, 512, "sleep 1; rm -f %s%s*; sleep 1", fontdir, FC_DIR_SEPARATOR_S); + snprintf (cmd, 512, "sleep 1; rm -f %s%s*; sleep 1", fontdir, FC_DIR_SEPARATOR_S);
system (cmd); system (cmd);
fprintf (stderr, "D: Reinitializing\n"); fprintf (stderr, "D: Reinitializing\n");
- if (!FcConfigUptoDate (config) || !FcInitReinitialize ()) - if (!FcConfigUptoDate (config) || !FcInitReinitialize ())
+ if (FcConfigUptoDate(config)) + if (!FcConfigUptoDate (config))
{ {
- fprintf (stderr, "E: Unable to reinitialize\n"); - fprintf (stderr, "E: Unable to reinitialize\n");
+ fprintf (stderr, "E: Config reports up-to-date\n"); + fprintf (stderr, "E: Config reports up-to-date\n");
@ -55,25 +35,22 @@ index c2edd72..87a5ec0 100644
if (FcConfigGetCurrent () == config) if (FcConfigGetCurrent () == config)
{ {
fprintf (stderr, "E: config wasn't reloaded\n"); fprintf (stderr, "E: config wasn't reloaded\n");
@@ -254,10 +260,16 @@ main (void) @@ -265,10 +271,16 @@ main (void)
goto bail; goto bail;
} }
fprintf (stderr, "D: Copying %s to %s\n", FONTFILE, fontdir); fprintf (stderr, "D: Copying %s to %s\n", FONTFILE, fontdir);
- snprintf (cmd, 512, "cp -a %s %s; sleep 1", FONTFILE, fontdir); - snprintf (cmd, 512, "cp -a %s %s", FONTFILE, fontdir);
+ snprintf (cmd, 512, "sleep 1; cp -a %s %s; sleep 1", FONTFILE, fontdir); + snprintf (cmd, 512, "sleep 1; cp -a %s %s; sleep 1", FONTFILE, fontdir);
system (cmd); system (cmd);
fprintf (stderr, "D: Reinitializing\n"); fprintf (stderr, "D: Reinitializing\n");
- if (!FcConfigUptoDate (config) || !FcInitReinitialize ()) - if (!FcConfigUptoDate (config) || !FcInitReinitialize ())
+ if (FcConfigUptoDate(config)) + if (!FcConfigUptoDate (config))
+ { + {
+ fprintf (stderr, "E: Config up-to-date after addition\n"); + fprintf (stderr, "E: Config up-to-date after addition\n");
+ ret = 3; + ret = 3;
+ goto bail; + goto bail;
+ } + }
+ if (!FcInitReinitialize ()) + if (!FcInitReinitialize ())
{ {
fprintf (stderr, "E: Unable to reinitialize\n"); fprintf (stderr, "E: Unable to reinitialize\n");
ret = 2; ret = 2;
--
2.19.1