0030663: Visualization - synthesize italic style for a font having no italic style
authorvro <vro@opencascade.com>
Fri, 19 Apr 2019 06:17:57 +0000 (09:17 +0300)
committerbugmaster <bugmaster@opencascade.com>
Mon, 22 Apr 2019 16:28:11 +0000 (19:28 +0300)
commit1bbd7c793c7492eb4a6a3bff07049165fbde1639
tree0e6c1117506b0abf81df05bb185a35a4e761b4e7
parentba7f665dce92eb21ac0031497558d14de17fa4d3
0030663: Visualization - synthesize italic style for a font having no italic style

Font_FTFont now defines shear transformation to synthesize italic style for fonts having no such style.
Font_FontMgr::FindFont() and command "vfont -find" have been extended with -strict option
to check whether the given font is actually registered or not.
Font_FTFont::Init() - added constructor from memory buffer.
Second Font_FTFont::Init() override has been renamed to Font_FTFont::FindAndInit()
to avoid ambiguity between two similar methods taking full font path and font name as string.
14 files changed:
src/AIS/AIS_Dimension.cxx
src/AIS/AIS_TextLabel.cxx
src/Font/FILES
src/Font/Font_BRepFont.cxx
src/Font/Font_BRepFont.hxx
src/Font/Font_FTFont.cxx
src/Font/Font_FTFont.hxx
src/Font/Font_FontMgr.cxx
src/Font/Font_FontMgr.hxx
src/Font/Font_StrictLevel.hxx [new file with mode: 0644]
src/Font/Font_SystemFont.hxx
src/OpenGl/OpenGl_Text.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
tests/3rdparty/fonts/B7 [new file with mode: 0644]