Behdad Esfahbod | 24 Apr 21:19 2015

harfbuzz: Branch 'master'

 src/hb-ot-shape-complex-private.hh |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit f724cc351640ee075a9867ef42df32cf5e0ef3b7
Author: Jonathan Kew <jfkthame <at> gmail.com>
Date:   Thu Apr 23 12:45:02 2015 +0100

    Don't apply Arabic shaping to vertical text.

diff --git a/src/hb-ot-shape-complex-private.hh b/src/hb-ot-shape-complex-private.hh
index e268933..4dc4f58 100644
--- a/src/hb-ot-shape-complex-private.hh
+++ b/src/hb-ot-shape-complex-private.hh
 <at>  <at>  -179,9 +179,12  <at>  <at>  hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
     case HB_SCRIPT_PSALTER_PAHLAVI:

       /* For Arabic script, use the Arabic shaper even if no OT script tag was found.
-       * This is because we do fallback shaping for Arabic script (and not others). */
-      if (planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT ||
-	  planner->props.script == HB_SCRIPT_ARABIC)
+       * This is because we do fallback shaping for Arabic script (and not others).
+       * But note that Arabic shaping is applicable only to horizontal layout; for
+       * vertical text, just use the generic shaper instead. */
+      if ((planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT ||
+	   planner->props.script == HB_SCRIPT_ARABIC) &&
+	  HB_DIRECTION_IS_HORIZONTAL(planner->props.direction))
 	return &_hb_ot_complex_shaper_arabic;
       else
 	return &_hb_ot_complex_shaper_default;
(Continue reading)

Behdad Esfahbod | 24 Apr 03:56 2015

harfbuzz: Branch 'master'

 src/check-libstdc++.sh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 97942420bbee1bc6953d5f805621066301fa17ca
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Thu Apr 23 18:56:24 2015 -0700

    Update check-libstdc++ for clang

diff --git a/src/check-libstdc++.sh b/src/check-libstdc++.sh
index 27deb42..b541828 100755
--- a/src/check-libstdc++.sh
+++ b/src/check-libstdc++.sh
 <at>  <at>  -19,9 +19,9  <at>  <at>  for suffix in so dylib; do
 	so=.libs/libharfbuzz.$suffix
 	if ! test -f "$so"; then continue; fi

-	echo "Checking that we are not linking to libstdc++"
-	if ldd $so | grep 'libstdc[+][+]'; then
-		echo "Ouch, linked to libstdc++"
+	echo "Checking that we are not linking to libstdc++ or libc++"
+	if ldd $so | grep 'libstdc[+][+]\|libc[+][+]'; then
+		echo "Ouch, linked to libstdc++ or libc++"
 		stat=1
 	fi
 	tested=true
_______________________________________________
HarfBuzz mailing list
HarfBuzz <at> lists.freedesktop.org
(Continue reading)

Behdad Esfahbod | 23 Apr 23:32 2015

harfbuzz: Branch 'master'

 test/shaping/hb_test_tools.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8f0a4d67143ccdef0b5a6ac99fb9b680c3a2f69c
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Thu Apr 23 14:32:33 2015 -0700

    [test] Ignor 'n' and 'i' in hb-unicode-encode

    Allows accepting uniXXXX format.

diff --git a/test/shaping/hb_test_tools.py b/test/shaping/hb_test_tools.py
index 4e76d41..ba4a8bb 100644
--- a/test/shaping/hb_test_tools.py
+++ b/test/shaping/hb_test_tools.py
 <at>  <at>  -414,7 +414,7  <at>  <at>  class Unicode:
 	 <at> staticmethod
 	def parse (s):
 		s = re.sub (r"0[xX]", " ", s)
-		s = re.sub (r"[<+>,;&#\\xXuU\n	]", " ", s)
+		s = re.sub (r"[<+>,;&#\\xXuUnNiI\n	]", " ", s)
 		return [int (x, 16) for x in s.split ()]

 	 <at> staticmethod
_______________________________________________
HarfBuzz mailing list
HarfBuzz <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz
(Continue reading)

Behdad Esfahbod | 22 Apr 04:23 2015

harfbuzz: Branch 'master'

 src/hb-coretext.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 39851ce84efd30f6d0570324ff8f3808a01b813b
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Tue Apr 21 19:23:27 2015 -0700

    [coretext] Oops; fix issue number for previous commit

diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index fc47669..0b710c2 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
 <at>  <at>  -791,7 +791,7  <at>  <at>  retry:
     /* For right-to-left runs, CoreText returns the glyphs positioned such that
      * any trailing whitespace is to the left of (0,0).  Adjust coordinate system
      * to fix for that.  Test with any RTL string with trailing spaces.
-     * https://code.google.com/p/chromium/issues/detail?id=476913
+     * https://code.google.com/p/chromium/issues/detail?id=469028
      */
     if (HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
     {
_______________________________________________
HarfBuzz mailing list
HarfBuzz <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz
Behdad Esfahbod | 22 Apr 04:21 2015

harfbuzz: Branch 'master'

 src/hb-coretext.cc |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 24f17afeafd40ff77177ed42c9007a0f34fcbb78
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Tue Apr 21 19:21:32 2015 -0700

    [coretext] Fix positioning with trailing whitespace

    Fixes https://code.google.com/p/chromium/issues/detail?id=476913

diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index 4a45175..fc47669 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
 <at>  <at>  -788,6 +788,17  <at>  <at>  retry:
     buffer->len = 0;
     uint32_t status_and = ~0, status_or = 0;
     double advances_so_far = 0;
+    /* For right-to-left runs, CoreText returns the glyphs positioned such that
+     * any trailing whitespace is to the left of (0,0).  Adjust coordinate system
+     * to fix for that.  Test with any RTL string with trailing spaces.
+     * https://code.google.com/p/chromium/issues/detail?id=476913
+     */
+    if (HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
+    {
+      advances_so_far -= CTLineGetTrailingWhitespaceWidth (line);
+      if (HB_DIRECTION_IS_VERTICAL (buffer->props.direction))
+	  advances_so_far = -advances_so_far;
(Continue reading)

Behdad Esfahbod | 17 Apr 22:09 2015

harfbuzz: Branch 'master'

 src/hb-ot-font.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit dba482fc4458776ffebdeb2d34b970b4223fa8fd
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Fri Apr 17 13:08:08 2015 -0700

    [ot-font] Accept MS Symbol cmap if nothing else found

diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc
index f6f979d..30dcdd4 100644
--- a/src/hb-ot-font.cc
+++ b/src/hb-ot-font.cc
 <at>  <at>  -114,6 +114,7  <at>  <at>  struct hb_ot_face_cmap_accelerator_t
     if (!subtable) subtable = cmap->find_subtable (0, 2);
     if (!subtable) subtable = cmap->find_subtable (0, 1);
     if (!subtable) subtable = cmap->find_subtable (0, 0);
+    if (!subtable) subtable = cmap->find_subtable (3, 0);
     /* Meh. */
     if (!subtable) subtable = &OT::Null(OT::CmapSubtable);

_______________________________________________
HarfBuzz mailing list
HarfBuzz <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz
Behdad Esfahbod | 14 Apr 22:33 2015

harfbuzz: Branch 'master'

 src/hb-private.hh |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 3029e8b59d1667dc6a53355be89a2b55d7089b88
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Tue Apr 14 13:32:22 2015 -0700

    Revert "Add MSVC pragma for UTF-8 source code"

    This reverts commit 89cbd4d9533011fb5487caa99a0cd58923e7cf59.

    See discussion:
    https://bugzilla.gnome.org/show_bug.cgi?id=747772

diff --git a/src/hb-private.hh b/src/hb-private.hh
index 0caab9e..06d7f22 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
 <at>  <at>  -132,7 +132,6  <at>  <at>  static int errno = 0; /* Use something better? */
 #  endif
 #  if defined(_MSC_VER) && _MSC_VER < 1900
 #    define snprintf _snprintf
-#    pragma execution_character_set("utf-8")
 #  endif
 #endif

_______________________________________________
HarfBuzz mailing list
HarfBuzz <at> lists.freedesktop.org
(Continue reading)

Behdad Esfahbod | 14 Apr 09:19 2015

harfbuzz: Branch 'master'

 util/options.cc |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

New commits:
commit 820505a186ff60e4bae9d717fe4d7ab2390e6fef
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Mon Apr 13 23:51:45 2015 -0700

    Whitespace

diff --git a/util/options.cc b/util/options.cc
index 8bdcbf1..a6e1752 100644
--- a/util/options.cc
+++ b/util/options.cc
 <at>  <at>  -694,13 +694,17  <at>  <at>  format_options_t::add_options (option_parser_t *parser)
 {
   GOptionEntry entries[] =
   {
-    {"show-text", 0, 0, G_OPTION_ARG_NONE, &this->show_text, "Prefix each line of output with its
corresponding input text", NULL},
-    {"show-unicode", 0, 0, G_OPTION_ARG_NONE, &this->show_unicode, "Prefix each line of output with its
corresponding input codepoint(s)", NULL},
-    {"show-line-num", 0, 0, G_OPTION_ARG_NONE, &this->show_line_num, "Prefix each line of output with
its corresponding input line number", NULL},
-    {"verbose", 0, G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, (gpointer) &parse_verbose, "Prefix
each line of output with all of the above", NULL},
-    {"no-glyph-names", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &this->show_glyph_names,
"Output glyph indices instead of names", NULL},
-    {"no-positions", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &this->show_positions, "Do not
output glyph positions", NULL},
(Continue reading)

Behdad Esfahbod | 14 Apr 08:41 2015

harfbuzz: Branch 'master' - 5 commits

 util/options.cc |   29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

New commits:
commit 76d57331117be8e0c2d4a2aee8341969b62b6888
Merge: 89cbd4d 9ee176e
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Mon Apr 13 23:40:35 2015 -0700

    Merge pull request #86 from cpfair/hb-shape-output-help-improvement

    Improve hb-shape/hb-view's help text w.r.t. output options

commit 9ee176ee978e6668c4faf00028811ce70979122e
Author: Collin Fair <cpf <at> cpfx.ca>
Date:   Sat Feb 14 09:59:44 2015 -0500

    Stop hb-shape docs leaking into hb-view

diff --git a/util/options.cc b/util/options.cc
index fb74b1a..5d03caa 100644
--- a/util/options.cc
+++ b/util/options.cc
 <at>  <at>  -444,9 +444,7  <at>  <at>  output_options_t::add_options (option_parser_t *parser)
   else
   {
     char *items = g_strjoinv ("/", const_cast<char **≥ (supported_formats));
-    text = g_strdup_printf ("Set output serialization format\n\n    Supported output formats are: %s\n%s", items,
-      "      text: [<glyph name or index>=<glyph cluster index within input> <at> <horizontal
displacement>,<vertical displacement>+<horizontal advance>,<vertical advance>|...]\n"
(Continue reading)

Behdad Esfahbod | 13 Apr 21:27 2015

harfbuzz: Branch 'master'

 src/hb-private.hh |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 89cbd4d9533011fb5487caa99a0cd58923e7cf59
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Mon Apr 13 12:27:08 2015 -0700

    Add MSVC pragma for UTF-8 source code

    Not sure we have any right now; motivated by this:
    https://bugzilla.gnome.org/show_bug.cgi?id=747772

diff --git a/src/hb-private.hh b/src/hb-private.hh
index 06d7f22..0caab9e 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
 <at>  <at>  -132,6 +132,7  <at>  <at>  static int errno = 0; /* Use something better? */
 #  endif
 #  if defined(_MSC_VER) && _MSC_VER < 1900
 #    define snprintf _snprintf
+#    pragma execution_character_set("utf-8")
 #  endif
 #endif

_______________________________________________
HarfBuzz mailing list
HarfBuzz <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz
(Continue reading)

Behdad Esfahbod | 10 Apr 23:48 2015

harfbuzz: Branch 'master' - 3 commits

 src/hb-buffer.cc |    4 ++--
 src/hb-common.cc |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 713f99ff6138b4149d9fd382f9af3ace01ee0da5
Merge: 1086f21 22524a5
Author: Behdad Esfahbod <behdad <at> behdad.org>
Date:   Fri Apr 10 14:34:05 2015 -0700

    Merge pull request #99 from khaledhosny/introspection-fixes2

    More ntrospection fixes

commit 22524a514f6609a2bc009b6035f6b5b932c719c7
Author: Khaled Hosny <khaledhosny <at> eglug.org>
Date:   Fri Apr 10 18:14:45 2015 +0200

    [bindings] Fix hb_buffer_get_segment_properties

    Annotate the output parameter.

diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index eecb9d0..0543073 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
 <at>  <at>  -999,7 +999,7  <at>  <at>  hb_buffer_set_segment_properties (hb_buffer_t *buffer,
 /**
  * hb_buffer_get_segment_properties:
  *  <at> buffer: a buffer.
(Continue reading)


Gmane