8251367: [windows] harfbuzz.dll not found causes failure to load sun.font.SunFontManager

Reviewed-by: serb
This commit is contained in:
Phil Race 2020-08-10 21:12:47 -07:00
parent 79a4a019bb
commit 63b3498733
2 changed files with 4 additions and 2 deletions

View File

@ -456,10 +456,10 @@ else
HARFBUZZ_CFLAGS += -DHAVE_CORETEXT
endif
ifeq ($(call isTargetOs, macosx), false)
LIBHARFBUZZ_EXCLUDE_FILES += harfbuzz/hb-coretext.cc
LIBHARFBUZZ_EXCLUDE_FILES += libharfbuzz/hb-coretext.cc
endif
# hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later.
LIBHARFBUZZ_EXCLUDE_FILES += harfbuzz/hb-ft.cc
LIBHARFBUZZ_EXCLUDE_FILES += libharfbuzz/hb-ft.cc
LIBHARFBUZZ_CFLAGS += $(HARFBUZZ_CFLAGS)

View File

@ -53,6 +53,8 @@ public class FontManagerNativeLibrary {
NB: consider moving freetype wrapper part to separate
shared library in order to avoid dependency. */
System.loadLibrary("freetype");
/* Same for harfbuzz */
System.loadLibrary("harfbuzz");
}
System.loadLibrary("fontmanager");