Problem with text flag CENTER_Y

Posted By: Clemens

Problem with text flag CENTER_Y - 05/02/10 16:23

CENTER_Y only does work, when not using line breaks, not using defined (TT-)font, (and not using WWRAP,) like:

Code:
TEXT* test_Simple_works = {
	flags = SHOW | CENTER_Y;
	string("Hans im Glück!");
}



The following don't work for me:

Code:
TEXT* test_Linebreak = {
 pos_x = 240;
 blue=0; green=0; red=255;
	flags = SHOW | CENTER_Y;
	string("Hans im Glück! \nFrau Holle");
}

TEXT* test_TTfont = {
 pos_x = 120;
 blue=0; green=0; red=255;
	flags = SHOW | CENTER_Y;
	string("Hans im Glück!");
	font("Arial#20");
}
TEXT* test_WWRAP = {
 pos_x = 360;
 blue=0; green=0; red=255;
	flags = SHOW | CENTER_Y | WWRAP;
	string("Hans im Glück! Frau Holle");
	font("Arial#20");
	size_x = 20;
}



Who can replicate this at his/her system?

P.S. CENTER_X works fine!
Posted By: jcl

Re: Problem with text flag CENTER_Y - 05/03/10 11:46

That flag is for bitmap fonts only - see manual.

But you're right with the multiline text. This will be fixed.
Posted By: Clemens

Bug found, now Feature request: CENTER_Y for TTF - 05/03/10 18:05

Nice laugh but is there a chance for having CENTER_Y for TT fonts (like CENTER_X) in the future?

By the way (belongs to "blame the manual"): the german manual says that CENTER_X works only for bitmap fonts...
(that's probably the reason -> after CENTER_X worked fine with TT fonts I've expected the same with CENTER_Y)
...have to accustom me to read the english manual when having complications wink
Posted By: Rei_Ayanami

Re: Bug found, now Feature request: CENTER_Y for TTF - 06/17/10 16:12

Was there any answer on the CENTER_Y for TTF ?
Posted By: jcl

Re: Bug found, now Feature request: CENTER_Y for TTF - 06/18/10 08:10

Yes.
Posted By: Clemens

Re: Bug found, now Feature request: CENTER_Y for TTF - 07/02/10 22:13

Does Yes. mean:
-"Yes, there was an answer: It only exists for bitmap fonts!"
Or:
-"Yes, there will be a CENTER_Y for TFT!"
?!?
Posted By: jcl

Re: Bug found, now Feature request: CENTER_Y for TTF - 07/05/10 08:27

It means yes, CENTER_Y will work for TTF also.
Posted By: Clemens

NEW Feature: CENTER_Y for TTF - 07/05/10 12:42

great!
© 2024 lite-C Forums