fontconfig: Branch 'master' - 2 commits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 configure.ac             |    9 +++++++++
 doc/fontconfig-user.sgml |    4 ++++
 test/Makefile.am         |    4 ++++
 test/out271.expected     |    8 ++++++++
 test/run-test.sh         |    5 +++--
 test/run-test271.sh      |   24 ++++++++++++++++++++++++
 6 files changed, 52 insertions(+), 2 deletions(-)

New commits:
commit 3e4198674dee1c14bec70016ccf0608c69c308cc
Author: Akira TAGOH <akira@xxxxxxxxx>
Date:   Fri Mar 24 13:11:08 2017 +0900

    Add the description of FC_LANG envvar to the doc

diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml
index 30e7b87..e065ff7 100644
--- a/doc/fontconfig-user.sgml
+++ b/doc/fontconfig-user.sgml
@@ -791,6 +791,10 @@ is used to output the detailed debugging messages. see <link linkend="debug">Deb
 is used to filter out the patterns. this takes a comma-separated list of object names and effects only when FC_DEBUG has MATCH2. see <link linkend="debug">Debugging Applications</link> section for more details.
   </para>
   <para>
+<emphasis>FC_LANG</emphasis>
+is used to specify the default language as the weak binding in the query. if this isn't set, the default language will be determined from current locale.
+  </para>
+  <para>
 <emphasis>FONTCONFIG_USE_MMAP</emphasis>
 is used to control the use of mmap(2) for the cache files if available. this take a boolean value. fontconfig will checks if the cache files are stored on the filesystem that is safe to use mmap(2). explicitly setting this environment variable will causes skipping this check and enforce to use or not use mmap(2) anyway.
   </para>
commit 5ca2b1e6dcb8c7d2b4b0c19218933b10f3efd813
Author: Akira TAGOH <akira@xxxxxxxxx>
Date:   Tue Mar 21 12:25:45 2017 +0900

    Update a bit for the changes in FreeType 2.7.1
    
    Our test case relies on the outcome of the family property from freetype though,
    it was changed in 2.7.1:
    
      - PCF family names are made more `colourful'; they now include the
        foundry  and information  whether they contain  wide characters.
        For example,  you no longer get `Fixed' but  rather `Sony Fixed'
        or `Misc Fixed Wide'.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=47704

diff --git a/configure.ac b/configure.ac
index 8fbf3d3..bbff035 100644
--- a/configure.ac
+++ b/configure.ac
@@ -301,6 +301,15 @@ AC_DEFINE_UNQUOTED(USE_ICONV,$use_iconv,[Use iconv.])
 PKG_CHECK_MODULES(FREETYPE, freetype2)
 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
 
+dnl See http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/VERSIONS.TXT for versioning in freetype
+dnl
+dnl The outcome of the family property has been changed in freetype-2.7.1.
+dnl Our test cases relies on it and need to update the dependency to get it success.
+dnl However it isn't exactly required to run fontconfig itself.
+dnl so adding another test here for compatibility. it might be simplified in the future.
+PKG_CHECK_EXISTS([freetype2 >= 19.0.13], [have_freetype_2_7_1=yes], [have_freetype_2_7_1=no])
+AM_CONDITIONAL(FREETYPE_2_7_1, test "x$have_freetype_2_7_1" = xyes)
+
 AC_SUBST(FREETYPE_LIBS)
 AC_SUBST(FREETYPE_CFLAGS)
 
diff --git a/test/Makefile.am b/test/Makefile.am
index 72923fa..92e92be 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -10,7 +10,11 @@ AM_TESTS_ENVIRONMENT= \
 
 SH_LOG_COMPILER = sh
 
+if FREETYPE_2_7_1
+TESTS=run-test271.sh
+else
 TESTS=run-test.sh
+endif
 
 TESTDATA=4x6.pcf 8x16.pcf out.expected fonts.conf.in
 
diff --git a/test/out271.expected b/test/out271.expected
new file mode 100644
index 0000000..d069723
--- /dev/null
+++ b/test/out271.expected
@@ -0,0 +1,8 @@
+Misc Fixed:pixelsize=6
+Sony Fixed:pixelsize=16
+=
+Misc Fixed:pixelsize=6
+Sony Fixed:pixelsize=16
+=
+Misc Fixed:pixelsize=6
+Sony Fixed:pixelsize=16
diff --git a/test/run-test.sh b/test/run-test.sh
index 97df6e5..0697f72 100644
--- a/test/run-test.sh
+++ b/test/run-test.sh
@@ -29,6 +29,7 @@ TESTDIR=${srcdir-"$MyPWD"}
 
 FONTDIR="$MyPWD"/fonts
 CACHEDIR="$MyPWD"/cache.dir
+EXPECTED=${EXPECTED-"out.expected"}
 
 ECHO=true
 
@@ -45,9 +46,9 @@ check () {
   echo "=" >> out
   $FCLIST - family pixelsize | sort >> out
   tr -d '\015' <out >out.tmp; mv out.tmp out
-  if cmp out $TESTDIR/out.expected > /dev/null ; then : ; else
+  if cmp out $TESTDIR/$EXPECTED > /dev/null ; then : ; else
     echo "*** Test failed: $TEST"
-    echo "*** output is in 'out', expected output in 'out.expected'"
+    echo "*** output is in 'out', expected output in '$EXPECTED'"
     exit 1
   fi
   rm out
diff --git a/test/run-test271.sh b/test/run-test271.sh
new file mode 100644
index 0000000..5c85a67
--- /dev/null
+++ b/test/run-test271.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+# fontconfig/test/run-test271.sh
+#
+# Copyright © 2000 Keith Packard
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of the author(s) not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission.  The authors make no
+# representations about the suitability of this software for any purpose.  It
+# is provided "as is" without express or implied warranty.
+#
+# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+EXPECTED=out271.expected sh `dirname $0`/run-test.sh
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux