For example, our font family includes bold and bold-italic variants.
The desired behavior is that the default/body font be rendered with the bold variant, and only content specified italic render in the bold-italic variant.
However, when the "body" font is specified as the bold variant, all content is rendered in the italic variant (regardless of CSS style). This is because the code references the fonts "family" property, and the first instance of a font returned under the family is the italic variant - not the font dictated specifically in the bodyFont parameter.
This issue was corrected in our instance by simply changing references in the HTML attributed string class from font.family to font.fontName. I am happy to submit a pull request.