BTextView: add handling of B_FONT_FACE mask to SetFontAndColor
The B_FONT_FACE mask would be ignored, making it impossible to change only the font face. Thanks to samgtr for finding the bug!
This commit is contained in:
@@ -165,6 +165,9 @@ SetStyleFromMode(uint32 mode, const BFont *fromFont, BFont *toFont,
|
||||
if (mode & B_FONT_FAMILY_AND_STYLE)
|
||||
toFont->SetFamilyAndStyle(fromFont->FamilyAndStyle());
|
||||
|
||||
if (mode & B_FONT_FACE)
|
||||
toFont->SetFace(fromFont->Face());
|
||||
|
||||
if (mode & B_FONT_SIZE)
|
||||
toFont->SetSize(fromFont->Size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user