head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.09.26.12.54.52; author tnn; state Exp; branches; next ; commitid zFAqQfiSwFAWc8XG; desc @@ 1.1 log @lang/openjdk25: import openjdk25-1.25.0.4.7 Open-source implementation of the Java Platform, Standard Edition. This package provides OpenJDK 25 LTS. @ text @$NetBSD: patch-src_java.desktop_unix_native_common_awt_fontpath.c,v 1.1 2023/11/22 14:06:50 ryoon Exp $ Use pkgsrc fonts. --- src/java.desktop/unix/native/common/awt/fontpath.c.orig 2023-10-23 13:40:41.097871989 +0000 +++ src/java.desktop/unix/native/common/awt/fontpath.c @@@@ -52,8 +52,8 @@@@ extern Display *awt_display; #endif /* !HEADLESS */ -#define FONTCONFIG_DLL_VERSIONED VERSIONED_JNI_LIB_NAME("fontconfig", "1") -#define FONTCONFIG_DLL JNI_LIB_NAME("fontconfig") +#define FONTCONFIG_DLL_VERSIONED "@@BUILDLINK_PREFIX.fontconfig@@/lib/" JNI_LIB_NAME("fontconfig") +#define FONTCONFIG_DLL "@@BUILDLINK_PREFIX.fontconfig@@/lib/" JNI_LIB_NAME("fontconfig") #define MAXFDIRS 512 /* Max number of directories that contain fonts */ @@@@ -84,6 +84,27 @@@@ static char *fullAixFontPath[] = { NULL, /* terminates the list */ }; #endif +static char *pkgsrcFontPath[] = { + "@@PREFIX@@/share/fonts/X11/100dpi", + "@@PREFIX@@/share/fonts/X11/75dpi", + "@@PREFIX@@/share/fonts/X11/Type1", + "@@PREFIX@@/share/fonts/X11/cyrillic", + "@@PREFIX@@/share/fonts/X11/misc", + "@@PREFIX@@/share/fonts/X11/TTF", + "/usr/X11R7/lib/X11/fonts/100dpi", + "/usr/X11R7/lib/X11/fonts/75dpi", + "/usr/X11R7/lib/X11/fonts/Type1", + "/usr/X11R7/lib/X11/fonts/cyrillic", + "/usr/X11R7/lib/X11/fonts/misc", + "/usr/X11R7/lib/X11/fonts/TTF", + "/usr/X11R6/lib/X11/fonts/100dpi", + "/usr/X11R6/lib/X11/fonts/75dpi", + "/usr/X11R6/lib/X11/fonts/Type1", + "/usr/X11R6/lib/X11/fonts/cyrillic", + "/usr/X11R6/lib/X11/fonts/misc", + "/usr/X11R6/lib/X11/fonts/TTF", + NULL +}; static char **getFontConfigLocations(); @@@@ -325,6 +346,7 @@@@ static char *getPlatformFontPathChars(JN #elif defined(_AIX) knowndirs = fullAixFontPath; #endif + knowndirs = pkgsrcFontPath; /* REMIND: this code requires to be executed when the GraphicsEnvironment * is already initialised. That is always true, but if it were not so, * this code could throw an exception and the fontpath would fail to @