]> OCCT Git - occt-copy.git/commit
0030782: Visualization, Font_FTFont - use predefined fallback fonts for extended...
authorkgv <kgv@opencascade.com>
Sun, 16 Jun 2019 10:09:49 +0000 (13:09 +0300)
committerkgv <kgv@opencascade.com>
Thu, 21 Nov 2019 09:55:42 +0000 (12:55 +0300)
commit7fad673d9f1f86e95b5c6cf767f5b6a878ca4c3b
treedcad4b9d808d8b129bece2f75cb9dd7721ddbc45
parentfd4bfba75f6f7904616382f609198f9bf9a7ff44
0030782: Visualization, Font_FTFont - use predefined fallback fonts for extended Unicode subsets [backported to occt720]

Font_FTFont now uses fallback fonts for characters from unsupported Unicode subsets,
managed by Font_FTFont::ToUseUnicodeSubsetFallback()
and Font_FontMgr::ToUseUnicodeSubsetFallback() option, enabled by default.
The fallback list includes common font families for Chinese, Korean and Japanese languages.

Font_FTFont::RenderGlyph() now supports FT_PIXEL_MODE_MONO input format used by some CJK fonts.
OpenGl_Font::createTexture() now limits single texture size to circa 4096 glyphs.

test/testgrid now expects test scripts being in UTF-8 encoding in sync with "DRAWEXE -f script.tcl".

AIS::InitFaceLength() - fixed usage of uninitialized result.

Font_FTFont::RenderGlyph() backport bitmap
14 files changed:
src/AIS/AIS.cxx
src/DrawResources/TestCommands.tcl
src/Font/FILES
src/Font/Font_BRepFont.cxx
src/Font/Font_FTFont.cxx
src/Font/Font_FTFont.hxx
src/Font/Font_FontMgr.cxx
src/Font/Font_FontMgr.hxx
src/Font/Font_NameOfFont.hxx
src/Font/Font_UnicodeSubset.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_Font.cxx
src/OpenGl/OpenGl_Font.hxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
tests/3rdparty/fonts/C2 [new file with mode: 0644]