1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026298: Visualization, OpenGl_Text - make font resolution configurable.

Add THE_DEFAULT_RESOLUTION static const parameter to Graphic3d_RenderingParams.
Add resolution to Graphic3d_RenderingParams.
Drop redundant variables from OpenGl_Workspace.
Add a new parameter to Graphic3d_GraphicDriver::TextSize method (and to OpenGl_GraphicDriver).
Add a new parameter to OpenGl_Text::Render() and to OpenGl_Text::render() methods.
OpenGl_Text::FontKey() considers a resolution (PPI) now.
Add a new argument '-resolution' (sets a pixel density) in the 'VRenderParams' draw-command.
This commit is contained in:
isk
2015-09-29 12:17:58 +03:00
committed by bugmaster
parent 5b0f2540d7
commit 4b1c8733e8
12 changed files with 115 additions and 44 deletions

View File

@@ -112,7 +112,7 @@ public:
//! @return true on success
Standard_EXPORT bool Init (const NCollection_String& theFontPath,
const unsigned int thePointSize,
const unsigned int theResolution = 72);
const unsigned int theResolution);
//! Initialize the font.
//! @param theFontName the font name