From 300739ad656a2656f30c03008e10d1c409b12713 Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Tue, 11 Jan 2022 15:44:49 +0800 Subject: [PATCH] fix cursor_position_GB8a.test failure --- Update-text-expectation.patch | 29 +++++++++++++++++++++++++++++ libraqm.spec | 6 +++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 Update-text-expectation.patch diff --git a/Update-text-expectation.patch b/Update-text-expectation.patch new file mode 100644 index 0000000..062423f --- /dev/null +++ b/Update-text-expectation.patch @@ -0,0 +1,29 @@ +From 0d25533d33e149d3570ffe61fb1d7128e7ea79cc Mon Sep 17 00:00:00 2001 +From: wu-leilei +Date: Fri, 7 Jan 2022 15:56:06 +0800 +Subject: [PATCH] Update text expectation + +--- + tests/cursor_position_GB8a.test | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tests/cursor_position_GB8a.test b/tests/cursor_position_GB8a.test +index bef963e..d161691 100644 +--- a/tests/cursor_position_GB8a.test ++++ b/tests/cursor_position_GB8a.test +@@ -32,9 +32,9 @@ glyph [0] x_offset: 0 y_offset: 0 x_advance: 748 font: Amiri + glyph [0] x_offset: 0 y_offset: 0 x_advance: 748 font: Amiri + glyph [0] x_offset: 0 y_offset: 0 x_advance: 748 font: Amiri + +-UTF-32 clusters: 00 01 02 03 +-UTF-8 clusters: 00 04 08 12 ++UTF-32 clusters: 00 00 02 02 ++UTF-8 clusters: 00 00 08 08 + +-The position is 2992 at index 12 ++The position is 2244 at index 8 + + The start-index is 4 at position 1000 +-- +2.23.0 + diff --git a/libraqm.spec b/libraqm.spec index a76f0cc..e375417 100644 --- a/libraqm.spec +++ b/libraqm.spec @@ -1,10 +1,11 @@ Name: libraqm Version: 0.7.0 -Release: 2 +Release: 3 License: MIT Summary: Complex Textlayout Library URL: https://github.com/HOST-Oman/libraqm Source: https://github.com/HOST-Oman/libraqm/releases/download/v%{version}/raqm-%{version}.tar.gz +Patch0001: Update-text-expectation.patch BuildRequires: python3 freetype-devel harfbuzz-devel fribidi-devel gtk-doc gcc @@ -60,6 +61,9 @@ rm -f %{buildroot}%{_libdir}/*.{la,a} %{_datadir}/gtk-doc/html/raqm %changelog +* Tue Jan 11 2022 wulei - 0.7.0-3 +- Fix cursor_position_GB8a.test failure + * Tue Jun 08 2021 wulei - 0.7.0-2 - fixes failed: error: no acceptable C compiler found in $PATH -- Gitee