0023415: OSD_FontMgr can't idenify aspect for fonts with names dependant on system...
authordbv <dbv@opencascade.com>
Fri, 7 Dec 2012 09:42:37 +0000 (13:42 +0400)
committerdbv <dbv@opencascade.com>
Fri, 7 Dec 2012 09:42:37 +0000 (13:42 +0400)
commitaff395a36dc65743f85c1ed84818f8f2cc0cafcf
treee7b562152a576a256f698d1eec38e7fadf42fe11
parentcb9292ed80a154ae8d812d4bca86b84b07ed02bb
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
30 files changed:
src/Font/EXTERNLIB [new file with mode: 0644]
src/Font/FILES
src/Font/Font.cdl
src/Font/Font_FontMgr.cdl
src/Font/Font_FontMgr.cxx
src/Font/Font_NListOfSystemFont.hxx
src/Font/Font_NameOfFont.hxx [new file with mode: 0644]
src/Font/Font_SystemFont.cdl
src/Font/Font_SystemFont.cxx
src/Graphic3d/FILES
src/Graphic3d/Graphic3d_AspectText3d.cdl
src/Graphic3d/Graphic3d_AspectText3d.cxx
src/Graphic3d/Graphic3d_NameOfFont.hxx [deleted file]
src/MeshVS/MeshVS_TextPrsBuilder.cxx
src/MeshVS/MeshVS_Tool.cxx
src/OSD/EXTERNLIB
src/OpenGl/OpenGl_Display.hxx
src/OpenGl/OpenGl_Display_1.cxx
src/OpenGl/OpenGl_FontMgr.cxx
src/OpenGl/OpenGl_FontMgr.hxx
src/Prs3d/Prs3d_TextAspect.cxx
src/QABugs/QABugs_17.cxx
src/QABugs/QABugs_MyText.cxx
src/TKService/EXTERNLIB
src/TKernel/EXTERNLIB
src/V3d/V3d_ColorScale.cxx
src/V3d/V3d_LayerMgr.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
tests/bugs/end
tests/bugs/modalg/bug322