Article | 41023753 |
Type | HowTo |
Product | Engine |
Version | 5.0.1.1034Alpha |
Date Added | 10/21/2004 |
Submitted by | Bob Hosea |
Keywords |
- create a TEXTSTYLE: Use Arial with BOLD, ITALIC and DRAWOUTLINE(1024) set.
- place a VDText object in the diagram using this TEXTSTYLE
- add some text to the VDTEXT object that has an "f" at the end.
- use vdtext.GetBoundryBox or vdtext.GetTextBox to get the
boundaries of the text.
- draw a VDRECT rectangle around the text using the boundary values.
You will see that the box does not go completely around the text line. The
trailing part of the "f" at the end of the text line hangs outside the box. Other characters are
effected also. This usually only appears when the text is ITALICIZED
and is even more evident when it is also BOLD. It does it in all fonts
and at all sizes.
Also, the same problem exists when the text is UNDERLINED. It is most notable
when using Courier New. With Courier New the underline falls way outside the boundaries