mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 01:19:28 +01:00
JBR-6044 handle absence of fontConfig library in setupRenderingFontHints
(cherry picked from commit 6d41e07ffa)
This commit is contained in:
@@ -299,10 +299,13 @@ JNIEXPORT int setupRenderingFontHints
|
|||||||
FcPattern *pattern, *matchPattern;
|
FcPattern *pattern, *matchPattern;
|
||||||
FcResult result;
|
FcResult result;
|
||||||
|
|
||||||
if (fcName == NULL) {
|
if (usingFontConfig() == false) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fcName == NULL) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
pattern = (*fcNameParse)((FcChar8 *)fcName);
|
pattern = (*fcNameParse)((FcChar8 *)fcName);
|
||||||
if (locale != NULL) {
|
if (locale != NULL) {
|
||||||
(*fcPatternAddString)(pattern, FC_LANG, (unsigned char*)locale);
|
(*fcPatternAddString)(pattern, FC_LANG, (unsigned char*)locale);
|
||||||
|
|||||||
Reference in New Issue
Block a user