However, this is not related to this bug at all. I will try explain, what I have found and what would help in my opinion.
First, for each font we have defined four lists:
FAMILY .. family name in different languages
FAMILYLANG .. languages corresponding to entries in FAMILY
STYLE .. style name in different languages
STYLELANG .. languages corresponding to entries in STYLE
As far as I can see, STYLE and STYLELANG are handled in fontconfig similar way as FAMILY and FAMILYLANG respectively. But, these two pairs are handled differently by Office:
This is in my opinion wrong, because I believe FamilyFromPattern() chooses the name in right language, but FcPatternGetString(..,FC_STYLE,0,..) takes the _first_ element from the list.
If all from the above is true, then all what remains is to implement StyleFromPattern() function (very similar to FamilyFromPattern()) and change one line in countFontconfigFonts().
Could someone with better experience with Office patching and building to try this out?
However, this is not related to this bug at all. I will try explain, what I have found and what would help in my opinion.
First, for each font we have defined four lists:
FAMILY .. family name in different languages
FAMILYLANG .. languages corresponding to entries in FAMILY
STYLE .. style name in different languages
STYLELANG .. languages corresponding to entries in STYLE
As far as I can see, STYLE and STYLELANG are handled in fontconfig similar way as FAMILY and FAMILYLANG respectively. But, these two pairs are handled differently by Office:
FcResult eFamilyRes = rWrapper. FamilyFromPatte rn( pFSet->fonts[i], &family ); FcPatternGetStr ing( pFSet->fonts[i], FC_STYLE, 0, &style );
FcResult eStyleRes = rWrapper.
This is in my opinion wrong, because I believe FamilyFromPattern() chooses the name in right language, but FcPatternGetStr ing(.., FC_STYLE, 0,..) takes the _first_ element from the list.
If all from the above is true, then all what remains is to implement StyleFromPattern() function (very similar to FamilyFromPatte rn()) and change one line in countFontconfig Fonts() .
Could someone with better experience with Office patching and building to try this out?