Allow to set the false bold width in BTextView style runs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38816 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b6d5916a70
commit
a58469f56e
@ -170,6 +170,9 @@ SetStyleFromMode(uint32 mode, const BFont *fromFont, BFont *toFont,
|
|||||||
|
|
||||||
if (mode & B_FONT_SHEAR)
|
if (mode & B_FONT_SHEAR)
|
||||||
toFont->SetShear(fromFont->Shear());
|
toFont->SetShear(fromFont->Shear());
|
||||||
|
|
||||||
|
if (mode & B_FONT_FALSE_BOLD_WIDTH)
|
||||||
|
toFont->SetFalseBoldWidth(fromFont->FalseBoldWidth());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fromColor != NULL && toColor != NULL
|
if (fromColor != NULL && toColor != NULL
|
||||||
@ -510,6 +513,12 @@ FixupMode(const STEStyle &firstStyle, const STEStyle &otherStyle, uint32 &mode,
|
|||||||
if (firstStyle.font.Shear() != otherStyle.font.Shear())
|
if (firstStyle.font.Shear() != otherStyle.font.Shear())
|
||||||
mode &= ~B_FONT_SHEAR;
|
mode &= ~B_FONT_SHEAR;
|
||||||
}
|
}
|
||||||
|
if (mode & B_FONT_FALSE_BOLD_WIDTH) {
|
||||||
|
if (firstStyle.font.FalseBoldWidth()
|
||||||
|
!= otherStyle.font.FalseBoldWidth()) {
|
||||||
|
mode &= ~B_FONT_FALSE_BOLD_WIDTH;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (firstStyle.color != otherStyle.color)
|
if (firstStyle.color != otherStyle.color)
|
||||||
sameColor = false;
|
sameColor = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user