I had a very strange problem today with a custom IFontResolver.
Code:
public FontResolverInfo ResolveTypeface(string familyName, bool isBold, bool isItalic)
The first time the method is called with a private Arial font in bold here is how it is called:
Code:
ResolveTypeface("Arial", true, false)
the computed facename is : arial-b
The second time this method is called with Arial and bold here is the call:
Code:
ResolveTypeface("arial-b", true, false)
Looking at the github repo to the SegoeWpFontResolver class line #83 we have this:
Code:
if (lowerFamilyName.StartsWith("segoe wp"))
Which means that ResolveTypeFace is not always called with familyName but also with faceName.
Is this right or is it a bug?