]> 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>
Mon, 17 Feb 2020 09:40:48 +0000 (12:40 +0300)
commit0842e31d95968672200d4fab5d5867fe9b1dc462
treefe6e3b8ba03e54049327242549194054c968520a
parent51204152b9a08b4431f53b83cd5222c9b2fab635
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]