From 3bbcf114f029bf861cc52461bbe8b76734f8d47e Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 22 Nov 2021 11:01:37 +0300 Subject: [PATCH] 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. --- src/Prs3d/Prs3d_TextAspect.cxx | 2 +- src/ViewerTest/ViewerTest_ObjectCommands.cxx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Prs3d/Prs3d_TextAspect.cxx b/src/Prs3d/Prs3d_TextAspect.cxx index 3ff268d0bf..e1a65bda40 100644 --- a/src/Prs3d/Prs3d_TextAspect.cxx +++ b/src/Prs3d/Prs3d_TextAspect.cxx @@ -26,7 +26,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Prs3d_TextAspect, Prs3d_BasicAspect) // purpose : // ======================================================================= 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), myHorizontalJustification (Graphic3d_HTA_LEFT), myVerticalJustification (Graphic3d_VTA_BOTTOM), diff --git a/src/ViewerTest/ViewerTest_ObjectCommands.cxx b/src/ViewerTest/ViewerTest_ObjectCommands.cxx index 67b894bfeb..6fb51fff2d 100644 --- a/src/ViewerTest/ViewerTest_ObjectCommands.cxx +++ b/src/ViewerTest/ViewerTest_ObjectCommands.cxx @@ -2355,7 +2355,6 @@ static int VDrawText (Draw_Interpretor& theDI, { isNewPrs = Standard_True; aTextPrs = new AIS_TextLabel(); - aTextPrs->SetFont ("Courier"); } aTextPrs->SetText (aText);