Use glyph widths from FreeType rather than what the file says

pdf files contain lists of glyph widths even for fonts that are
not embedded.  This can lead to problems when the exact font does
not exist on the system, and FreeType substitutes another similar
one.  In that case poppler currently uses the glyph widths from
the pdf file, which however may not match the font that is
actually used.
6 jobs for ask-freetype-for-glyph-widths in 9 minutes and 11 seconds (queued for 11 minutes and 43 seconds)
Status Job ID Name Coverage
  Build
failed #1058614
build

00:02:03

failed #1058619
build_android

00:02:22

failed #1058615
build_clang_libcpp

00:02:47

failed #1058618
build_clazy

00:02:04

failed #1058617
build_mingw64_fedora

00:05:43

failed #1058616
build_ubuntu_16_04

00:08:11

 
Name Stage Failure
failed
build Build
[42/423] Building CXX object CMakeFiles/poppler.dir/poppler/JBIG2Stream.cc.o
[43/423] Building CXX object CMakeFiles/poppler.dir/poppler/Gfx.cc.o
[44/423] Building CXX object CMakeFiles/poppler.dir/poppler/Annot.cc.o
[45/423] Building CXX object CMakeFiles/poppler.dir/poppler/GfxState.cc.o
ninja: build stopped: subcommand failed.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/bash: line 79: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: Job failed: exit code 1
failed
build_clang_libcpp Build
[24/176] Building CXX object test/CMakeFiles/pdf-inspector.dir/pdf-inspector.cc.o
[25/176] Building CXX object utils/CMakeFiles/pdftohtml.dir/HtmlOutputDev.cc.o
[26/176] Building CXX object CMakeFiles/poppler.dir/poppler/TextOutputDev.cc.o
[27/176] Building CXX object CMakeFiles/poppler.dir/poppler/Gfx.cc.o
[28/176] Building CXX object CMakeFiles/poppler.dir/poppler/Annot.cc.o
[29/176] Building CXX object CMakeFiles/poppler.dir/poppler/GfxState.cc.o
[30/176] Building CXX object CMakeFiles/poppler.dir/poppler/PSOutputDev.cc.o
ninja: build stopped: subcommand failed.
ERROR: Job failed: exit code 1
failed
build_mingw64_fedora Build
    inlined from 'void GlobalParams::setupBaseFonts(const char*)' at ../poppler/GlobalParamsWin.cc:403:22:
../poppler/GlobalParamsWin.cc:213:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-overflow=]
213 | strncat(winFontDir, FONTS_SUBDIR, cbWinFontDirLen);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[47/402] Building CXX object CMakeFiles/poppler.dir/poppler/GfxState.cc.obj
[48/402] Building CXX object CMakeFiles/poppler.dir/poppler/Gfx.cc.obj
[49/402] Building CXX object CMakeFiles/poppler.dir/poppler/Annot.cc.obj
ninja: build stopped: subcommand failed.
ERROR: Job failed: exit code 1
failed
build_ubuntu_16_04 Build
../poppler/GfxFont.cc:1422:5: error: 'cout' is not a member of 'std'
std::cout << "Use default fonts" << std::endl;
^
../poppler/GfxFont.cc:1422:41: error: 'endl' is not a member of 'std'
std::cout << "Use default fonts" << std::endl;
^
ninja: build stopped: subcommand failed.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: Job failed: exit code 1
failed
build_android Build
[63/353] Building CXX object CMakeFiles/poppler.dir/poppler/GlobalParams.cc.o
../poppler/GlobalParams.cc:1015:7: warning: 'WITH_FONTCONFIGURATION_WIN32' is not defined, evaluates to 0 [-Wundef]
#elif WITH_FONTCONFIGURATION_WIN32
^
1 warning generated.
[64/353] Building CXX object CMakeFiles/poppler.dir/poppler/Annot.cc.o
[65/353] Building CXX object CMakeFiles/poppler.dir/poppler/PDFDoc.cc.o
ninja: build stopped: subcommand failed.
ERROR: Job failed: exit code 1
failed
build_clazy Build
[83/423] Building CXX object CMakeFiles/poppler.dir/poppler/Gfx.cc.o
[84/423] Building CXX object CMakeFiles/poppler.dir/splash/Splash.cc.o
[85/423] Building CXX object CMakeFiles/poppler.dir/poppler/TextOutputDev.cc.o
[86/423] Building CXX object CMakeFiles/poppler.dir/poppler/GfxState.cc.o
[87/423] Building CXX object CMakeFiles/poppler.dir/poppler/Annot.cc.o
[88/423] Building CXX object CMakeFiles/poppler.dir/poppler/PSOutputDev.cc.o
[89/423] Building CXX object CMakeFiles/poppler.dir/poppler/PDFDoc.cc.o
ninja: build stopped: subcommand failed.
ERROR: Job failed: exit code 1