]> OCCT Git - occt-copy.git/commit
0031678: Visualization - add option enabling hinting for textured fonts
authorkgv <kgv@opencascade.com>
Wed, 14 Apr 2021 11:10:40 +0000 (14:10 +0300)
committernds <nds@opencascade.com>
Thu, 29 Apr 2021 07:00:46 +0000 (10:00 +0300)
commitd3d7ef89f6551c4efaf19e548d91e4b9da6ef02e
tree679acd160c6b8ae31667c8e981445b392396b36f
parentc4e1f3ff43920132ade72db1095e0a1b123ba475
0031678: Visualization - add option enabling hinting for textured fonts

Added new rendering parameter Graphic3d_RenderingParams::FontHinting
allowing to enable/disable hinting (default is no hinting preserving old behavior).

Command vrenderparams has been extended with arguments -fontHinting.

(cherry picked from commit d37aef5ccf1bcbf0f3b11f45d3a6d73ad29ecde4)

# Conflicts:
# src/Font/Font_FTFont.cxx
# src/PrsDim/PrsDim_Dimension.cxx
# tests/opengl/data/text/A2
# tests/opengl/data/text/A8
src/AIS/AIS_TextLabel.cxx
src/Font/FILES
src/Font/Font_FTFont.cxx
src/Font/Font_FTFont.hxx
src/Font/Font_Hinting.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_RenderingParams.hxx
src/OpenGl/OpenGl_GraphicDriver.cxx
src/OpenGl/OpenGl_Text.cxx
src/OpenGl/OpenGl_Text.hxx
src/PrsDim/PrsDim_Dimension.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx