forked from kiss-community/repo
pango: 1.48.9
This commit is contained in:
parent
9a2dc73871
commit
159dc02707
@ -1,2 +1,2 @@
|
|||||||
27b9c26a4fb87d0b10e8df38d9a46ef9c95af7731add0340bdb8e2ae1abfde3e
|
6c78162507debd3389dab9f045cfa0b03cb44c432fb21979d4acf45db1b93781
|
||||||
5d4501a72113d4420954978c82f3ed55235ffd6850a9bb14422abb32203ce5a9
|
b1c9cd0e06737a8092f694fde65855070c75c457ff3114122d50d2f068c6181e
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
diff --git a/meson.build b/meson.build
|
diff --git a/meson.build b/meson.build
|
||||||
index d5932b3..9387ca7 100644
|
index c03bf85..df529aa 100644
|
||||||
--- a/meson.build
|
--- a/meson.build
|
||||||
+++ b/meson.build
|
+++ b/meson.build
|
||||||
@@ -191,7 +191,6 @@ endif
|
@@ -191,7 +191,6 @@ endif
|
||||||
pango_deps = []
|
pango_deps = []
|
||||||
|
|
||||||
glib_req_version = '>= 2.62'
|
glib_req_version = '>= 2.62'
|
||||||
-fribidi_req_version = '>= 0.19.7'
|
-fribidi_req_version = '>= 1.0.6'
|
||||||
libthai_req_version = '>= 0.1.9'
|
libthai_req_version = '>= 0.1.9'
|
||||||
harfbuzz_req_version = '>= 2.2.0'
|
harfbuzz_req_version = '>= 2.2.0'
|
||||||
fontconfig_req_version = '>= 2.11.91'
|
fontconfig_req_version = '>= 2.11.91'
|
||||||
@ -23,34 +23,32 @@ index d5932b3..9387ca7 100644
|
|||||||
if thai_dep.found()
|
if thai_dep.found()
|
||||||
pango_conf.set('HAVE_LIBTHAI', 1)
|
pango_conf.set('HAVE_LIBTHAI', 1)
|
||||||
diff --git a/pango/pango-bidi-type.c b/pango/pango-bidi-type.c
|
diff --git a/pango/pango-bidi-type.c b/pango/pango-bidi-type.c
|
||||||
index a5a13a9..29ddeb8 100644
|
index 32858f7..d60b038 100644
|
||||||
--- a/pango/pango-bidi-type.c
|
--- a/pango/pango-bidi-type.c
|
||||||
+++ b/pango/pango-bidi-type.c
|
+++ b/pango/pango-bidi-type.c
|
||||||
@@ -23,16 +23,18 @@
|
@@ -22,11 +22,19 @@
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
-#include <fribidi.h>
|
|
||||||
-
|
-
|
||||||
|
-#include <fribidi.h>
|
||||||
|
+#include <stdint.h>
|
||||||
|
|
||||||
#undef PANGO_DISABLE_DEPRECATED
|
#undef PANGO_DISABLE_DEPRECATED
|
||||||
|
|
||||||
#include "pango-bidi-type.h"
|
|
||||||
#include "pango-utils.h"
|
|
||||||
|
|
||||||
-#if FRIBIDI_MAJOR_VERSION >= 1
|
|
||||||
-#define USE_FRIBIDI_EX_API
|
|
||||||
-#endif
|
|
||||||
+typedef uint32_t FriBidiChar;
|
+typedef uint32_t FriBidiChar;
|
||||||
+typedef uint32_t FriBidiCharType;
|
+typedef uint32_t FriBidiCharType;
|
||||||
|
+typedef uint32_t FriBidiBracketType;
|
||||||
+typedef int FriBidiStrIndex;
|
+typedef int FriBidiStrIndex;
|
||||||
+typedef int FriBidiParType;
|
+typedef int FriBidiParType;
|
||||||
+typedef signed char FriBidiLevel;
|
+typedef signed char FriBidiLevel;
|
||||||
+
|
+
|
||||||
+#define FRIBIDI_PAR_LTR (0x00000010L | 0x00000100L)
|
+#define FRIBIDI_PAR_LTR (0x00000010L | 0x00000100L)
|
||||||
|
+
|
||||||
|
#include "pango-bidi-type.h"
|
||||||
|
#include "pango-utils.h"
|
||||||
|
|
||||||
/**
|
@@ -48,40 +56,7 @@
|
||||||
* pango_bidi_type_for_unichar:
|
|
||||||
@@ -52,40 +54,7 @@
|
|
||||||
PangoBidiType
|
PangoBidiType
|
||||||
pango_bidi_type_for_unichar (gunichar ch)
|
pango_bidi_type_for_unichar (gunichar ch)
|
||||||
{
|
{
|
||||||
@ -92,16 +90,14 @@ index a5a13a9..29ddeb8 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Some bidi-related functions */
|
/* Some bidi-related functions */
|
||||||
@@ -120,38 +89,16 @@ pango_log2vis_get_embedding_levels (const gchar *text,
|
@@ -116,36 +91,13 @@ pango_log2vis_get_embedding_levels (const gchar *text,
|
||||||
glong n_chars, i;
|
glong n_chars, i;
|
||||||
guint8 *embedding_levels_list;
|
guint8 *embedding_levels_list;
|
||||||
const gchar *p;
|
const gchar *p;
|
||||||
- FriBidiParType fribidi_base_dir;
|
- FriBidiParType fribidi_base_dir;
|
||||||
FriBidiCharType *bidi_types;
|
FriBidiCharType *bidi_types;
|
||||||
#ifdef USE_FRIBIDI_EX_API
|
|
||||||
FriBidiBracketType *bracket_types;
|
FriBidiBracketType *bracket_types;
|
||||||
#endif
|
- FriBidiLevel max_level;
|
||||||
FriBidiLevel max_level;
|
|
||||||
FriBidiCharType ored_types = 0;
|
FriBidiCharType ored_types = 0;
|
||||||
- FriBidiCharType anded_strongs = FRIBIDI_TYPE_RLE;
|
- FriBidiCharType anded_strongs = FRIBIDI_TYPE_RLE;
|
||||||
|
|
||||||
@ -131,7 +127,7 @@ index a5a13a9..29ddeb8 100644
|
|||||||
if (length < 0)
|
if (length < 0)
|
||||||
length = strlen (text);
|
length = strlen (text);
|
||||||
|
|
||||||
@@ -165,16 +112,13 @@ pango_log2vis_get_embedding_levels (const gchar *text,
|
@@ -157,20 +109,14 @@ pango_log2vis_get_embedding_levels (const gchar *text,
|
||||||
|
|
||||||
for (i = 0, p = text; p < text + length; p = g_utf8_next_char(p), i++)
|
for (i = 0, p = text; p < text + length; p = g_utf8_next_char(p), i++)
|
||||||
{
|
{
|
||||||
@ -146,10 +142,15 @@ index a5a13a9..29ddeb8 100644
|
|||||||
ored_types |= char_type;
|
ored_types |= char_type;
|
||||||
- if (FRIBIDI_IS_STRONG (char_type))
|
- if (FRIBIDI_IS_STRONG (char_type))
|
||||||
- anded_strongs &= char_type;
|
- anded_strongs &= char_type;
|
||||||
#ifdef USE_FRIBIDI_EX_API
|
- if (G_UNLIKELY(bidi_types[i] == FRIBIDI_TYPE_ON))
|
||||||
if (G_UNLIKELY(bidi_types[i] == FRIBIDI_TYPE_ON))
|
- bracket_types[i] = fribidi_get_bracket (ch);
|
||||||
bracket_types[i] = fribidi_get_bracket (ch);
|
- else
|
||||||
@@ -200,39 +144,8 @@ pango_log2vis_get_embedding_levels (const gchar *text,
|
- bracket_types[i] = FRIBIDI_NO_BRACKET;
|
||||||
|
+ bracket_types[i] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Short-circuit (malloc-expensive) FriBidi call for unidirectional
|
||||||
|
@@ -187,56 +133,15 @@ pango_log2vis_get_embedding_levels (const gchar *text,
|
||||||
* o base_dir doesn't have an RTL taste.
|
* o base_dir doesn't have an RTL taste.
|
||||||
* o there are letters, and base_dir is weak.
|
* o there are letters, and base_dir is weak.
|
||||||
*/
|
*/
|
||||||
@ -163,8 +164,8 @@ index a5a13a9..29ddeb8 100644
|
|||||||
- {
|
- {
|
||||||
- /* all LTR */
|
- /* all LTR */
|
||||||
- fribidi_base_dir = FRIBIDI_PAR_LTR;
|
- fribidi_base_dir = FRIBIDI_PAR_LTR;
|
||||||
memset (embedding_levels_list, 0, n_chars);
|
- memset (embedding_levels_list, 0, n_chars);
|
||||||
goto resolved;
|
- goto resolved;
|
||||||
- }
|
- }
|
||||||
- /* The case that all resolved levels will be RTL is much more complex.
|
- /* The case that all resolved levels will be RTL is much more complex.
|
||||||
- * No isolates, no numbers, all strongs are RTL, and one of
|
- * No isolates, no numbers, all strongs are RTL, and one of
|
||||||
@ -186,34 +187,31 @@ index a5a13a9..29ddeb8 100644
|
|||||||
- memset (embedding_levels_list, 1, n_chars);
|
- memset (embedding_levels_list, 1, n_chars);
|
||||||
- goto resolved;
|
- goto resolved;
|
||||||
- }
|
- }
|
||||||
|
-
|
||||||
|
-
|
||||||
#ifdef USE_FRIBIDI_EX_API
|
- max_level = fribidi_get_par_embedding_levels_ex (bidi_types, bracket_types, n_chars,
|
||||||
@@ -240,12 +153,10 @@ pango_log2vis_get_embedding_levels (const gchar *text,
|
|
||||||
&fribidi_base_dir,
|
|
||||||
(FriBidiLevel*)embedding_levels_list);
|
|
||||||
#else
|
|
||||||
- max_level = fribidi_get_par_embedding_levels (bidi_types, n_chars,
|
|
||||||
- &fribidi_base_dir,
|
- &fribidi_base_dir,
|
||||||
- (FriBidiLevel*)embedding_levels_list);
|
- (FriBidiLevel*)embedding_levels_list);
|
||||||
+ max_level = 0;
|
-
|
||||||
#endif
|
|
||||||
|
|
||||||
- if (G_UNLIKELY(max_level == 0))
|
- if (G_UNLIKELY(max_level == 0))
|
||||||
+ if (max_level == 0)
|
- {
|
||||||
{
|
- /* fribidi_get_par_embedding_levels() failed. */
|
||||||
/* fribidi_get_par_embedding_levels() failed. */
|
- memset (embedding_levels_list, 0, length);
|
||||||
memset (embedding_levels_list, 0, length);
|
- }
|
||||||
@@ -258,7 +169,7 @@ resolved:
|
+ /* all LTR */
|
||||||
|
+ /* fribidi_get_par_embedding_levels() failed. */
|
||||||
|
+ memset (embedding_levels_list, 0, length);
|
||||||
|
|
||||||
|
resolved:
|
||||||
|
g_free (bidi_types);
|
||||||
g_free (bracket_types);
|
g_free (bracket_types);
|
||||||
#endif
|
|
||||||
|
|
||||||
- *pbase_dir = (fribidi_base_dir == FRIBIDI_PAR_LTR) ? PANGO_DIRECTION_LTR : PANGO_DIRECTION_RTL;
|
- *pbase_dir = (fribidi_base_dir == FRIBIDI_PAR_LTR) ? PANGO_DIRECTION_LTR : PANGO_DIRECTION_RTL;
|
||||||
+ *pbase_dir = PANGO_DIRECTION_LTR;
|
+ *pbase_dir = PANGO_DIRECTION_LTR;
|
||||||
|
|
||||||
return embedding_levels_list;
|
return embedding_levels_list;
|
||||||
}
|
}
|
||||||
@@ -282,17 +193,6 @@ resolved:
|
@@ -260,17 +165,6 @@ resolved:
|
||||||
PangoDirection
|
PangoDirection
|
||||||
pango_unichar_direction (gunichar ch)
|
pango_unichar_direction (gunichar ch)
|
||||||
{
|
{
|
||||||
|
@ -1 +1 @@
|
|||||||
1.48.8 1
|
1.48.9 1
|
||||||
|
Loading…
Reference in New Issue
Block a user