0022796: Possibility to display multi-line text in 3D
authorkgv <kgv@opencascade.com>
Wed, 7 Mar 2012 11:44:30 +0000 (15:44 +0400)
committerbugmaster <bugmaster@opencascade.com>
Tue, 20 Mar 2012 14:34:29 +0000 (18:34 +0400)
commitf3f08423376b3a9c61e06c3422dccd01ff526205
treec196a7f8c360d76c8b56abb3d560f7a852d2d689
parent5faddbe4a97adb0b62d026256716dc55ec3fdd98
0022796: Possibility to display multi-line text in 3D

Changes:

Text rendering in OCCT 3D view can now display multi-line text correctly. In addition to '\n' and '\r' characters, '\t' is also treated specially, i.e. replaced by a fixed number of spaces. Other control characters (like '\b' or '\a') are simply ignored by text rendering code.

Also standard GL2PS's alignment isn't used because it's doesn't works correctly for all formats, therefore alignment is calculated manually now.
src/OpenGl/OpenGl_Display_1.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx