X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FGEOM_Annotation.cxx;fp=src%2FOBJECT%2FGEOM_Annotation.cxx;h=42fe984179a40cf7d5c5f49b254c8b9742c127b2;hb=922cc08eea7fdde898b17104ced238c4978c2ec2;hp=67948a5943f43590845ee8b7f534ff4d1030831f;hpb=63e04ef7a7d83e52fc010bf95f88a9ce1d8aeebc;p=modules%2Fgeom.git diff --git a/src/OBJECT/GEOM_Annotation.cxx b/src/OBJECT/GEOM_Annotation.cxx index 67948a594..42fe98417 100644 --- a/src/OBJECT/GEOM_Annotation.cxx +++ b/src/OBJECT/GEOM_Annotation.cxx @@ -711,24 +711,21 @@ void GEOM_Annotation::OpenGl_Annotation::Render( const Handle(OpenGl_Workspace)& const OpenGl_Aspects* anAspect = theWorkspace->Aspects(); // getting string size will also initialize font library -#if OCC_VERSION_LARGE >= 0x07040000 +#if OCC_VERSION_LARGE >= 0x07070000 + Font_Hinting aFH = theWorkspace->View()->RenderingParams().FontHinting; myTextDraw->StringSize( aContext, - myText, *anAspect, myTextParams->Height(), aDPI, + myText, *anAspect, myTextParams->Height(), aDPI, aFH, myTextSize.x, myTextSize.a, myTextSize.d ); #else myTextDraw->StringSize( aContext, - myText, *anAspect, myTextParams, aDPI, + myText, *anAspect, myTextParams->Height(), aDPI, myTextSize.x, myTextSize.a, myTextSize.d ); #endif myTextDPI = aDPI; myTextSize.y = myTextSize.a - myTextSize.d; -# if OCC_VERSION_LARGE >= 0x07040000 switch ( myTextParams->HorizontalAlignment() ) -#else - switch (myTextParams.HAlign) -#endif { case Graphic3d_HTA_LEFT: myTextUnderline.x() = 0.f; break; case Graphic3d_HTA_CENTER: myTextUnderline.x() = -myTextSize.x / 2.f; break; @@ -737,11 +734,7 @@ void GEOM_Annotation::OpenGl_Annotation::Render( const Handle(OpenGl_Workspace)& break; } -# if OCC_VERSION_LARGE >= 0x07040000 switch ( myTextParams->VerticalAlignment() ) -#else - switch (myTextParams.VAlign) -#endif { case Graphic3d_VTA_TOPFIRSTLINE: case Graphic3d_VTA_TOP: myTextUnderline.y() = -myTextSize.y; break;