Created attachment 61475 [details] [review] include substitute font name in sys font cache While making evince use the new API for getting the substitute name I found a bug in GlobalParams::findSystemFontFile. If findSystemFontFile is called with substituteFontName not NULL for a font already cached in the SysFontInfo cache, the substitute name is not returned. The attached patch fixes this by ensuring the substitute name is always determined for new fonts and stored in the cache.
Can you please adapt the implementation of findSystemFontFile in GlobalParamsWin.cc (at least make it compile by adding the parameter)
Created attachment 61548 [details] [review] update win32 findSystemFontFile Patch to add substitute font name to win32 findSystemFontFile. Not tested as I don't have a win32 build environment for poppler.
There is yet another implementation of findSystemFontFile in GlobalParamsWin.cc
Created attachment 61550 [details] [review] add substitute font name to GlobalParamsWin32 The previous patch was for the wrong file. This patch should fix the compilation but I am unable to test it.
Makes sense, please commit and sorry for the delay
Pushed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.