|
2 registered members (EW_bytes, Quad),
15,225
guests, and 1
spider. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
text aligment with correct spacing
#332579
07/10/10 20:44
07/10/10 20:44
|
Joined: Jul 2004
Posts: 1,710
MMike
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,710
|
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:
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.
|
|
|
Re: text aligment with correct spacing
[Re: Spirit]
#332604
07/11/10 02:53
07/11/10 02:53
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Spirit is correct, with links to support what Ive said elsewhere.
Thanks bud...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: text aligment with correct spacing
[Re: Clemens]
#332680
07/11/10 15:17
07/11/10 15:17
|
Joined: Jul 2004
Posts: 1,710
MMike
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,710
|
well thanks for your input. Is lucida console monospaced?? according to this Source it is... But is not working here: http://www.codestyle.org/css/font-family/sampler-Monospace.shtmlAnd how do i type that? font.. = "lucidaconsole#20" ?
Last edited by MMike; 07/11/10 15:19.
|
|
|
Re: text aligment with correct spacing
[Re: MMike]
#332690
07/11/10 16:27
07/11/10 16:27
|
Joined: Sep 2003
Posts: 303 Germany
Clemens
Senior Member
|
Senior Member
Joined: Sep 2003
Posts: 303
Germany
|
called! ^^ Back to topic: Not shure if I've understood you. Have a try...  If your source says it's monospace, I guess so.. even it shows that it is, doesn't it? just try! Yeah, you define them like any other truetype font. But I must confess that finding out whats the expected name did confuse me in the past sometimes, too. I believe it was just the name the font have got from its author. If you want to make sure, that every user of your program/game have the font - just put it inside your package (there are as well some scripts installing a font automatic)
|
|
|
Re: text aligment with correct spacing
[Re: Clemens]
#332700
07/11/10 17:35
07/11/10 17:35
|
Joined: Jul 2004
Posts: 1,710
MMike
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,710
|
my, the source ( the link) i had above..says lucida console is monospace but thats false...
I tried using BMAP fonts ,but its ugly those spaces are huge :s so sad, this is only for fixed width fonts...
Last edited by MMike; 07/11/10 17:44.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|