https://bugs.documentfoundation.org/show_bug.cgi?id=108243

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Julien Nabet <[email protected]> ---
On pc Debian x86-64 with master sources updated today, I reproduced this.

After some gdb debug, I noticed that notosans was used after this block in
PhysicalFontCollection::FindFontFamily:
1054         if (FindMetricCompatibleFont(rFSD) ||
1055             (mpPreMatchHook && mpPreMatchHook->FindFontSubstitute(rFSD)))
1056         {
1057             aSearchName = GetEnglishSearchFontName(aSearchName);
1058         }

See
https://opengrok.libreoffice.org/xref/core/vcl/source/font/PhysicalFontCollection.cxx?r=40dde438#1054

and FindFontSubstitute has a different behavior depending on the env, see:
https://opengrok.libreoffice.org/search?project=core&full=&defs=FindFontSubstitute&refs=&path=&hist=&type=&xrd=&nn=1&si=full&si=full

In Linux, the pb is in PrintFontManager::Substitute
See
https://opengrok.libreoffice.org/xref/core/vcl/unx/generic/fontmanager/fontconfig.cxx?r=6dfac38b#973

Here's part of the calling bt:
#0  psp::PrintFontManager::Substitute (this=0x5555577552a0, rPattern=...,
rMissingCodes="") at vcl/unx/generic/fontmanager/fontconfig.cxx:1079
#1  0x00007fffeea817f3 in GetFcSubstitute (rFontSelData=..., rMissingCodes="")
at vcl/unx/generic/fontmanager/fontsubst.cxx:67
#2  0x00007fffeea81370 in (anonymous
namespace)::FcPreMatchSubstitution::FindFontSubstitute
    (this=0x7fffef0de6b0
<SalGenericInstance::RegisterFontSubstitutors(vcl::font::PhysicalFontCollection*)::aSubstPreMatch>,
rFontSelData=...) at vcl/unx/generic/fontmanager/fontsubst.cxx:129
#3  0x00007fffee81196a in vcl::font::PhysicalFontCollection::FindFontFamily
(this=0x55555c008190, rFSD=...) at
vcl/source/font/PhysicalFontCollection.cxx:1065

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to