mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0032680: Visualization, AIS_TextLabel - Bold FontAspect doesn't work
Prs3d_TextAspect now sets Font_NOF_SERIF as default font instead of confusig Font_NOF_ASCII_TRIPLEX (Times-Bold). Therefore, default font now uses regular aspect, not bold. Command vdrawtext does no more set "Courier" font by default.
This commit is contained in:
parent
d62df471b2
commit
3bbcf114f0
@ -26,7 +26,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Prs3d_TextAspect, Prs3d_BasicAspect)
|
|||||||
// purpose :
|
// purpose :
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
Prs3d_TextAspect::Prs3d_TextAspect()
|
Prs3d_TextAspect::Prs3d_TextAspect()
|
||||||
: myTextAspect (new Graphic3d_AspectText3d (Quantity_Color (Quantity_NOC_YELLOW), Font_NOF_ASCII_TRIPLEX, 1.0, 0.0)),
|
: myTextAspect (new Graphic3d_AspectText3d (Quantity_Color (Quantity_NOC_YELLOW), Font_NOF_SERIF, 1.0, 0.0)),
|
||||||
myHeight(16.0),
|
myHeight(16.0),
|
||||||
myHorizontalJustification (Graphic3d_HTA_LEFT),
|
myHorizontalJustification (Graphic3d_HTA_LEFT),
|
||||||
myVerticalJustification (Graphic3d_VTA_BOTTOM),
|
myVerticalJustification (Graphic3d_VTA_BOTTOM),
|
||||||
|
@ -2355,7 +2355,6 @@ static int VDrawText (Draw_Interpretor& theDI,
|
|||||||
{
|
{
|
||||||
isNewPrs = Standard_True;
|
isNewPrs = Standard_True;
|
||||||
aTextPrs = new AIS_TextLabel();
|
aTextPrs = new AIS_TextLabel();
|
||||||
aTextPrs->SetFont ("Courier");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
aTextPrs->SetText (aText);
|
aTextPrs->SetText (aText);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user