зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1306543 - Avoid using g_unicode_script_from_iso15924 directly. r=jfkthame
for compatibility with glib < 2.29.14.
This commit is contained in:
Родитель
c2d51243de
Коммит
6f8a48bb27
|
@ -4,7 +4,8 @@ This directory contains the harfbuzz source from the 'master' branch of
|
|||
https://github.com/behdad/harfbuzz.
|
||||
|
||||
Current version: 1.3.0 + recent fixes from trunk,
|
||||
up to 547ddb0721365dca985aef5b759d08718f7c5f82.
|
||||
up to 547ddb0721365dca985aef5b759d08718f7c5f82
|
||||
+ the relevant part of https://github.com/behdad/harfbuzz/pull/334.
|
||||
|
||||
|
||||
UPDATING:
|
||||
|
|
|
@ -382,6 +382,7 @@ hb_glib_get_unicode_funcs (void)
|
|||
return const_cast<hb_unicode_funcs_t *> (&_hb_glib_unicode_funcs);
|
||||
}
|
||||
|
||||
#if GLIB_CHECK_VERSION(2,31,10)
|
||||
/**
|
||||
* hb_glib_blob_create:
|
||||
*
|
||||
|
@ -398,3 +399,4 @@ hb_glib_blob_create (GBytes *gbytes)
|
|||
g_bytes_ref (gbytes),
|
||||
(hb_destroy_func_t) g_bytes_unref);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -46,9 +46,10 @@ hb_glib_script_from_script (hb_script_t script);
|
|||
HB_EXTERN hb_unicode_funcs_t *
|
||||
hb_glib_get_unicode_funcs (void);
|
||||
|
||||
#if GLIB_CHECK_VERSION(2,31,10)
|
||||
HB_EXTERN hb_blob_t *
|
||||
hb_glib_blob_create (GBytes *gbytes);
|
||||
|
||||
#endif
|
||||
|
||||
HB_END_DECLS
|
||||
|
||||
|
|
|
@ -59,6 +59,15 @@ UNIFIED_SOURCES += [
|
|||
'hb-warning.cc',
|
||||
]
|
||||
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
EXPORTS.harfbuzz += [
|
||||
'hb-glib.h',
|
||||
]
|
||||
UNIFIED_SOURCES += [
|
||||
'hb-glib.cc',
|
||||
]
|
||||
CXXFLAGS += CONFIG['GLIB_CFLAGS']
|
||||
|
||||
# We allow warnings for third-party code that can be updated from upstream.
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "gfxFT2FontBase.h"
|
||||
#include "gfxFT2Utils.h"
|
||||
#include "harfbuzz/hb.h"
|
||||
#include "harfbuzz/hb-glib.h"
|
||||
#include "harfbuzz/hb-ot.h"
|
||||
#include "nsUnicodeProperties.h"
|
||||
#include "nsUnicodeScriptCodes.h"
|
||||
|
@ -1623,7 +1624,7 @@ gfxPangoFontGroup::FindFontForChar(uint32_t aCh, uint32_t aPrevCh,
|
|||
// https://developer.gnome.org/pango/stable/pango-Scripts-and-Languages.html#PangoScript
|
||||
const hb_tag_t scriptTag = GetScriptTagForCode(aRunScript);
|
||||
const PangoScript script =
|
||||
(const PangoScript)g_unicode_script_from_iso15924(scriptTag);
|
||||
(const PangoScript)hb_glib_script_from_script(hb_script_from_iso15924_tag(scriptTag));
|
||||
|
||||
// Might be nice to call pango_language_includes_script only once for the
|
||||
// run rather than for each character.
|
||||
|
|
Загрузка…
Ссылка в новой задаче