aTextPrs->SetOrientation3D (gp_Ax2 (aPos, aNormal, aDirection));
}
+ aTextPrs->SetDisplayType (aDisplayType);
+
if (aTrsfPersFlags != Graphic3d_TMF_None)
{
aTextPrs->SetTransformPersistence (aTrsfPersFlags, aTPPosition);
- aTextPrs->SetDisplayType (aDisplayType);
aTextPrs->SetZLayer(Graphic3d_ZLayerId_TopOSD);
if (aTextPrs->Position().Z() != 0)
{
else if (aTrsfPersFlags != aTextPrs->TransformPersistence().Flags)
{
aTextPrs->SetTransformPersistence (aTrsfPersFlags);
- aTextPrs->SetDisplayType (Aspect_TODT_NORMAL);
}
ViewerTest::Display (aName, aTextPrs, Standard_False);
return 0;
--- /dev/null
+puts "========"
+puts "CR27624"
+puts "========"
+puts ""
+##################################################################
+puts "Draw Harness, ViewerTest - vdrawtext command ignores text display options"
+##################################################################
+
+vfont add [locate_data_file DejaVuSans.ttf] SansFont
+
+vinit
+vdrawtext t1 "Subtitle" -height 20 -font SansFont -color 0 1 0 -disptype subtitle -subcolor 0.3 0.3 0.3
+vfit
+vdump $imagedir/${casename}.png