summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-20 01:48:52 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-11-20 01:48:52 +0000
commita31741faf6e59737c561574c3a7679ea185f4154 (patch)
treef82238568cf61cff3bcf3afd494bd280aee80dca
parent0eb9ca5aafdd796975e8a65ca288faab08ee8901 (diff)
parent8d6d023075341de16f8879b95330dc4d93c3ba86 (diff)
downloadpango-a31741faf6e59737c561574c3a7679ea185f4154.tar.gz
Merge branch 'matthiasc/for-main' into 'main'
Don't replace | with hyphens Closes #630 See merge request GNOME/pango!516
-rw-r--r--.gitlab-ci/list-msys2.sh2
-rw-r--r--.gitlab-ci/render-msys2.sh2
-rw-r--r--meson.build25
-rw-r--r--pango/break.c3
-rw-r--r--tests/breaks/sixteen.expected2
-rw-r--r--tests/layouts/valid-17.expected2
6 files changed, 30 insertions, 6 deletions
diff --git a/.gitlab-ci/list-msys2.sh b/.gitlab-ci/list-msys2.sh
index e93e8e44..c7ed3ed6 100644
--- a/.gitlab-ci/list-msys2.sh
+++ b/.gitlab-ci/list-msys2.sh
@@ -2,4 +2,4 @@
set -e
-PATH=_build/pango:$PATH _build/utils/pango-list --verbose --metrics > _build/fontlist.txt
+PATH=_build/pango:$PATH _build/utils/pango-list --verbose --metrics > _build/fontlist.txt || true
diff --git a/.gitlab-ci/render-msys2.sh b/.gitlab-ci/render-msys2.sh
index f81f0c60..9008690d 100644
--- a/.gitlab-ci/render-msys2.sh
+++ b/.gitlab-ci/render-msys2.sh
@@ -2,4 +2,4 @@
set -e
-PATH=_build/pango:$PATH _build/utils/pango-view --no-display --output _build/hello.png utils/HELLO.txt
+PATH=_build/pango:$PATH _build/utils/pango-view --no-display --output _build/hello.png utils/HELLO.txt || true
diff --git a/meson.build b/meson.build
index 4a6b128c..c342f725 100644
--- a/meson.build
+++ b/meson.build
@@ -402,13 +402,16 @@ if build_pangoft2
pango_deps += freetype_dep
endif
+build_pangoxft = false
xft_dep = dependency('xft', version: xft_req_version, required: get_option('xft'))
if xft_dep.found() and fontconfig_dep.found() and freetype_dep.found()
pango_conf.set('HAVE_XFT', 1)
pango_deps += dependency('xrender', required: false)
pango_deps += xft_dep
+ build_pangoxft = true
endif
+has_core_text = false
if host_system == 'darwin'
has_core_text = cc.links('''#include <CoreText/CoreText.h>
int main (void) {
@@ -653,3 +656,25 @@ endif
if not meson.is_subproject()
meson.add_dist_script('build-aux/meson/dist-docs.py')
endif
+
+summary('Font backends', pango_font_backends)
+
+summary('Cairo support', cairo_dep.found(), section: 'Features')
+summary('Fontconfig support', fontconfig_dep.found(), section: 'Features')
+summary('Freetype support', freetype_dep.found(), section: 'Features')
+summary('Thai support', thai_dep.found(), section: 'Features')
+summary('Sysprof support', libsysprof_capture_dep.found(), section: 'Features')
+
+summary('Compiler', cc.get_id(), section: 'Toolchain')
+summary('Linker', cc.get_linker_id(), section: 'Toolchain')
+
+summary('Debugging', get_option('debug'), section: 'Build')
+summary('Optimization', get_option('optimization'), section: 'Build')
+summary('Introspection', get_option('introspection').enabled(), section: 'Build')
+summary('Documentation', get_option('gtk_doc'), section: 'Build')
+summary('Install tests', get_option('install-tests'), section: 'Build')
+
+summary('prefix', pango_prefix, section: 'Directories')
+summary('includedir', pango_includedir, section: 'Directories')
+summary('libdir', pango_libdir, section: 'Directories')
+summary('datadir', pango_datadir, section: 'Directories')
diff --git a/pango/break.c b/pango/break.c
index 3a3e0b23..3af083ce 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1624,8 +1624,7 @@ default_break (const char *text,
else
attrs[i].break_inserts_hyphen = insert_hyphens;
- if (prev_wc == 0x007C || /* Vertical Line */
- prev_wc == 0x2027) /* Hyphenation point */
+ if (prev_wc == 0x2027) /* Hyphenation point */
{
attrs[i].break_inserts_hyphen = TRUE;
attrs[i].break_removes_preceding = TRUE;
diff --git a/tests/breaks/sixteen.expected b/tests/breaks/sixteen.expected
index 221358e7..0fd06fb2 100644
--- a/tests/breaks/sixteen.expected
+++ b/tests/breaks/sixteen.expected
@@ -4,4 +4,4 @@ Whitespace: x w
Sentences: bs e b
Words: bs e s be bs be bs be b
Graphemes: b b b b b b b b b b b b b b b b b b b b b b b b b
-Hyphens: i ri i i i ri i i i i i i i i i i i
+Hyphens: i ri i i i i i i i i i i i i i i
diff --git a/tests/layouts/valid-17.expected b/tests/layouts/valid-17.expected
index a2b7d494..4b3192fb 100644
--- a/tests/layouts/valid-17.expected
+++ b/tests/layouts/valid-17.expected
@@ -28,7 +28,7 @@ i=3, index=17, paragraph-start=1, dir=ltr ''
--- runs
-i=1, index=0, chars=13, level=0, gravity=south, flags=4, font=OMITTED, script=latin, language=en-us, 'some|bla|bla|'
+i=1, index=0, chars=13, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'some|bla|bla|'
i=2, index=13, no run, line end
i=3, index=13, chars=3, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'bla'
i=4, index=16, no run, line end