mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023466: Move OSD_FontMgr class outside TKernel
Created new package Font in TKService. Classes FontMgr and SystemFont have been moved from OSD package to Font package.
This commit is contained in:
@@ -178,7 +178,7 @@ void MeshVS_TextPrsBuilder::Build ( const Handle(Prs3d_Presentation)& Prs,
|
||||
TCollection_AsciiString AFontString;
|
||||
Standard_Integer ADispInt;
|
||||
// Bold font is used by default for better text readability
|
||||
OSD_FontAspect AFontAspectType = OSD_FA_Bold;
|
||||
Font_FontAspect AFontAspectType = Font_FA_Bold;
|
||||
Standard_Integer AAspect;
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ void MeshVS_TextPrsBuilder::Build ( const Handle(Prs3d_Presentation)& Prs,
|
||||
if ( aDrawer->GetInteger ( MeshVS_DA_TextDisplayType, ADispInt ) )
|
||||
ADisplayType = (Aspect_TypeOfDisplayText) ADispInt;
|
||||
if ( aDrawer->GetInteger ( MeshVS_DA_TextFontAspect, AAspect ) )
|
||||
AFontAspectType = (OSD_FontAspect)AAspect;
|
||||
AFontAspectType = (Font_FontAspect)AAspect;
|
||||
|
||||
Handle (Graphic3d_AspectText3d) aTextAspect = new Graphic3d_AspectText3d ( AColor, AFont, AExpansionFactor, ASpace,
|
||||
ATextStyle, ADisplayType );
|
||||
|
@@ -200,11 +200,11 @@ Handle( Graphic3d_AspectText3d ) MeshVS_Tool::CreateAspectText3d
|
||||
Aspect_TypeOfStyleText aStyle = Aspect_TOST_NORMAL;
|
||||
Aspect_TypeOfDisplayText aDispText = Aspect_TODT_NORMAL;
|
||||
TCollection_AsciiString aFontString = Graphic3d_NOF_ASCII_MONO;
|
||||
OSD_FontAspect aFontAspect = OSD_FA_Regular;
|
||||
Font_FontAspect aFontAspect = Font_FA_Regular;
|
||||
Standard_Integer aStyleI = (Standard_Integer)Aspect_TOST_NORMAL;
|
||||
Standard_Integer aDispTextI = (Standard_Integer)Aspect_TODT_NORMAL;
|
||||
// Bold font is used by default for better text readability
|
||||
Standard_Integer aFontAspectI = (Standard_Integer)OSD_FA_Bold;
|
||||
Standard_Integer aFontAspectI = (Standard_Integer)Font_FA_Bold;
|
||||
|
||||
if ( !theDr->GetColor ( MeshVS_DA_TextColor, aTColor ) && !UseDefaults )
|
||||
return anAsp;
|
||||
@@ -233,7 +233,7 @@ Handle( Graphic3d_AspectText3d ) MeshVS_Tool::CreateAspectText3d
|
||||
if ( !theDr->GetInteger ( MeshVS_DA_TextFontAspect, aFontAspectI ) && !UseDefaults )
|
||||
return anAsp;
|
||||
else
|
||||
aFontAspect = (OSD_FontAspect) aFontAspectI;
|
||||
aFontAspect = (Font_FontAspect) aFontAspectI;
|
||||
|
||||
anAsp = new Graphic3d_AspectText3d ( aTColor, aFont, anExpFactor, aSpace, aStyle, aDispText );
|
||||
anAsp->SetTextFontAspect( aFontAspect );
|
||||
|
Reference in New Issue
Block a user