[skia] FTBFS on Android with Fontconfig font manager
Whe I update port poppler version to 23.11.0 I get this error:
CMakeFiles/poppler.dir/poppler/GlobalParams.cc.o -c /mnt/vcpkg-ci/buildtrees/poppler/src/er-23.11.0-08ca2759be.clean/poppler/GlobalParams.cc
/mnt/vcpkg-ci/buildtrees/poppler/src/er-23.11.0-08ca2759be.clean/poppler/GlobalParams.cc:1563:5: error: use of undeclared identifier 'displayFontDir'; did you mean 'displayFontDirs'?
displayFontDir = fontDir;
^~~~~~~~~~~~~~
displayFontDirs
/mnt/vcpkg-ci/buildtrees/poppler/src/er-23.11.0-08ca2759be.clean/poppler/GlobalParams.cc:1379:20: note: 'displayFontDirs' declared here
static const char *displayFontDirs[] = { "/usr/share/ghostscript/fonts", "/usr/local/share/ghostscript/fonts", "/usr/share/fonts/default/Type1", "/usr/share/fonts/default/ghostscript", "/usr/share/fonts/type1/gsfonts", nullptr };
^
/mnt/vcpkg-ci/buildtrees/poppler/src/er-23.11.0-08ca2759be.clean/poppler/GlobalParams.cc:1563:20: error: array type 'const char *[6]' is not assignable
displayFontDir = fontDir;
I see that displayFontDir is declared earlier in the file, so I don't know why I'm getting this error. https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/poppler/GlobalParams.cc?ref_type=heads#L1278
// The path to the font directory. Set by GlobalParams::setFontDir()
static std::string displayFontDir;