JBR-6044 handle absence of fontConfig library in setupRenderingFontHints

This commit is contained in:
Dmitrii Morskii
2023-09-18 12:56:24 +02:00
committed by jbrbot
parent 5ee806a9e3
commit f54ffe1ca3

View File

@@ -295,10 +295,13 @@ JNIEXPORT int setupRenderingFontHints
FcPattern *pattern, *matchPattern;
FcResult result;
if (fcName == NULL) {
if (usingFontConfig() == false) {
return -1;
}
if (fcName == NULL) {
return -1;
}
pattern = (*fcNameParse)((FcChar8 *)fcName);
if (locale != NULL) {
(*fcPatternAddString)(pattern, FC_LANG, (unsigned char*)locale);