
Thu, 05/27/2010 - 22:08
Forums:
I am drawing text in my Compute() method using:
Prs3d_Text::Draw(aPresentation,aTextAspect,textCollection,ptLocation);
In order to position the text and the surrounding graphics, I need to know the size that the string will be when displayed. For now I'm using Graphic3d_NOF_ASCII_MONO, so there should be a fixed ( per font height ) character width that I could multiply by the number of characters. Does anyone know how to find the character width?
Also, in the future I'd like to support proportional fonts, so if there is a way to get the size of a string in a proportional font, I'd like to hear about that too.
Thanks!
Fri, 05/28/2010 - 21:56
For me Graphic3d_NOF_ASCII_MONO is don't working. / maybe because I'm use OS Linux. /
It's more simply to create your oun fonts with lines and curves..