]> 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>
Thu, 21 Nov 2019 09:55:42 +0000 (12:55 +0300)
commitfd4bfba75f6f7904616382f609198f9bf9a7ff44
treee6f5070881929fc4a5a9534289f8ef66e54e0979
parenta46ac8438a46974a62f483648dc558455834debf
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]