]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketcherPrs/SketcherPrs_LengthDimension.cpp
Salome HOME
#2205 Ability to customize the arrows and texts of dimensions: applying Font value
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_LengthDimension.cpp
index c0c79a10a105438ba5b028f8affbc82f0d557763..898771342b3de09febe969382823f3307263257d 100644 (file)
@@ -94,6 +94,8 @@ void updateArrows(Handle(Prs3d_DimensionAspect) theDimAspect,
     theDimAspect->SetExtensionSize(
         (theTextSize / aViewerScale + SketcherPrs_Tools::getArrowSize()) / 2.0);
   }
+  theDimAspect->TextAspect()->SetFont(Config_PropManager::string(SKETCH_TAB_NAME,
+                                      "dimension_font").c_str());
 
   theDimAspect->SetArrowTailSize(theDimAspect->ArrowAspect()->Length());
   // The value of vertical aligment is sometimes changed