This is an automated email from the ASF dual-hosted git repository. ardovm pushed a commit to branch AOO42X in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push: new a0ea24c5c1 Ensure default substitutions on patterns a0ea24c5c1 is described below commit a0ea24c5c107bd6c1ce8cd77d6a0f2c7066cdec8 Author: Arrigo Marchiori <ard...@yahoo.it> AuthorDate: Sun Jan 14 01:54:48 2024 +0100 Ensure default substitutions on patterns This is requested by the documentation of function FcFontMatch(). Addresses bug #128583. (cherry picked from commit 9e383899f55d91dcbf240aac96faa852c30bbdbd) --- main/vcl/unx/generic/fontmanager/fontconfig.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/main/vcl/unx/generic/fontmanager/fontconfig.cxx b/main/vcl/unx/generic/fontmanager/fontconfig.cxx index 4397cfb20e..312436db1d 100644 --- a/main/vcl/unx/generic/fontmanager/fontconfig.cxx +++ b/main/vcl/unx/generic/fontmanager/fontconfig.cxx @@ -456,6 +456,7 @@ void FontCfgWrapper::addFontSet( FcSetName eSetName ) if( m_nFcVersion > 20400 ) // #i115204# avoid trouble with old FC versions { FcPattern* pTestPattern = FcPatternDuplicate( pOrigPattern ); + FcDefaultSubstitute( pTestPattern ); FcPatternAddBool( pTestPattern, FC_OUTLINE, FcTrue ); // TODO: ignore all attributes that are not interesting for finding dupes // e.g. by using pattern->ImplFontAttr->pattern conversion