Hello
I would like to be possible to type a digit with a var, that aligns the number from right to left... for ANY TrueType font.. Without messing up the aligment.

I want Arial to work! come on! How come? i have to use courier? LOL

this is the situation:


var value;

Panel with this:
Code:
PANEL* test = 
{	
pos_x=20;
pos_y=20;
size_x=200;
size_y=120;		
flags= SHOW;

digits(90,37,\"%5.0f Messages\",Arial#18b,1,value);
digits(90,56,\"%5.0f Messages\",Courier#18b,1,value);
layer=3;
}



Use console TAB to change in runtime value to 10, 100, 1000...
And they will act very very different.

Also Times font wont work!?
Thats not logical without a remark!

And im not using spaces, just numbers.

the manual is clear and even gives example "
TrueType or bitmap character set for the display. Either a predefined FONT, or A6.6 a font filename or Truetype font name with size and style (like "Arial#24bi") can be given. If '*' ist given, the engine standard font is used."

flags] = Optional one or more of the following characters:
- = Left align the number within the given field width. Default: Right align.


I dont know what is the algorithm you use to align, but that "feature" is not what its saying for sure. it Should work for ANY Font.

Thanks! and i think this is really embarrassing for you...

Last edited by MMike; 07/10/10 20:46.