mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023415: OSD_FontMgr can't idenify aspect for fonts with names dependant on system locale.
Added function DetectFontsAspects to Font_FontMgr class. This function uses workaround from OpenGl_FontMgr with FreeType for detecting font aspect. Removed font name parsing from Font_FontMgr::InitFontDataBase(). Now the font name and font style we get through the FreeType. Fixed Unix part of Font_FontMgr::InitFontDataBase() method. Font name and font style now detected through the FreeType. Remarks fix. Added recursive default font directories scanning . Fixed adding fonts folders recursively from configuration files. Moved fonts aliases map from OpenGl_Display_1 to Font_FontMgr. Moved fonts name definition from Graphic3d_NameOfFont.hxx to Font_NameOfFont.hxx. Added new methods to Font_FontMgr: GetAvailableFontsNames, GetFont and FindFont. Modified Font_SystemFont creation from XLFD. Added method IsEqual to Font_SystemFont. Modified methods OpenGl_Display::FindFont, OpenGl_FontMgr::request_font in accordance to the new functionality of the Font_FontMgr. OpenGl_FontMgr now stores only generated fonts instead of duplication of available fonts list. Removed method OpenGl_FontMgr::requestFontList. Its function now performs Font_FontMgr::GetAvailableFontsNames. Documentation was fixed Adjusting testing cases for current state of OCCT
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#include <MeshVS_DrawerAttribute.hxx>
|
||||
#include <MeshVS_Buffer.hxx>
|
||||
|
||||
#include <Graphic3d_NameOfFont.hxx>
|
||||
#include <Font_NameOfFont.hxx>
|
||||
|
||||
//================================================================
|
||||
// Function : Constructor MeshVS_TextPrsBuilder
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <MeshVS_DrawerAttribute.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <Graphic3d_NameOfFont.hxx>
|
||||
#include <Font_NameOfFont.hxx>
|
||||
|
||||
//================================================================
|
||||
// Function : CreateAspectFillArea3d
|
||||
@@ -196,10 +196,10 @@ Handle( Graphic3d_AspectText3d ) MeshVS_Tool::CreateAspectText3d
|
||||
Quantity_Color aTColor = Quantity_NOC_YELLOW;
|
||||
Standard_Real anExpFactor = 1.0,
|
||||
aSpace = 0.0;
|
||||
Standard_CString aFont = Graphic3d_NOF_ASCII_MONO;
|
||||
Standard_CString aFont = Font_NOF_ASCII_MONO;
|
||||
Aspect_TypeOfStyleText aStyle = Aspect_TOST_NORMAL;
|
||||
Aspect_TypeOfDisplayText aDispText = Aspect_TODT_NORMAL;
|
||||
TCollection_AsciiString aFontString = Graphic3d_NOF_ASCII_MONO;
|
||||
TCollection_AsciiString aFontString = Font_NOF_ASCII_MONO;
|
||||
Font_FontAspect aFontAspect = Font_FA_Regular;
|
||||
Standard_Integer aStyleI = (Standard_Integer)Aspect_TOST_NORMAL;
|
||||
Standard_Integer aDispTextI = (Standard_Integer)Aspect_TODT_NORMAL;
|
||||
|
Reference in New Issue
Block a user