]> OCCT Git - occt-copy.git/commit
0030663: Visualization - synthesize italic style for a font having no italic style...
authorkgv <kgv@opencascade.com>
Thu, 21 Nov 2019 09:31:36 +0000 (12:31 +0300)
committerkgv <kgv@opencascade.com>
Mon, 17 Feb 2020 09:40:48 +0000 (12:40 +0300)
commit51204152b9a08b4431f53b83cd5222c9b2fab635
tree1fbe009d77705a3fee8542e13036ed1dcb245679
parentd517575214bc1b236b7d29022088707e1a114a39
0030663: Visualization - synthesize italic style for a font having no italic style [backport OCCT720]

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.

# Conflicts:
# src/AIS/AIS_Dimension.cxx
# src/OpenGl/OpenGl_Text.cxx
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]