Page 1 of 3

Text Origin Decide-icidal

Posted: Fri Sep 18, 2009 8:43 pm
by rude
Should the text origin continue to be at the baseline, or should be it be moved to top-left?

Re: Text Origin Decide-icidal

Posted: Fri Sep 18, 2009 9:11 pm
by osgeld
Hm thats a hard one, I voted top left for consistency with how the images are now aligned

Re: Text Origin Decide-icidal

Posted: Fri Sep 18, 2009 9:55 pm
by Robin
I voted top-left as well. The point is, most of the time you want to align the text to something else. Images, rectangles or the top-left of the screen are common things to align text with. Currently, we have to use all sorts of extra calculations, just to figure out where to draw the text.

Re: Text Origin Decide-icidal

Posted: Fri Sep 18, 2009 9:59 pm
by TechnoCat
The only reason I could think of to choose one over the other is consistency: Top-left.

Re: Text Origin Decide-icidal

Posted: Sat Sep 19, 2009 12:11 am
by Almost
I say topleft since that's the corner of the screen that is (0,0). To have it y pixels from the top when drawing text and not be top aligned seems silly to me (I have to type draw text at 0,fontsize to draw it in the topleft corner, which is counterintuitive).

Re: Text Origin Decide-icidal

Posted: Sat Sep 19, 2009 1:13 am
by Jasoco
Top-left.

Re: Text Origin Decide-icidal

Posted: Sat Sep 19, 2009 2:22 am
by Simtex
In addition to voting Top-Left, I'd also like to add a request that "font.getHeight()" return the true font height, as it currently does not properly (this may be an artifact of the current baseline based calculation being off, so hopefully it goes away once we transition to top-left based).

Re: Text Origin Decide-icidal

Posted: Sat Sep 19, 2009 10:25 pm
by rude
Well, this seems pretty clear. :neko:

Re: Text Origin Decide-icidal

Posted: Sun Sep 20, 2009 12:47 am
by Jasoco
The thing is Baseline is useless for anyone that uses image based fonts as they don't have a baseline.

I use Image fonts because they can look really nice and I don't have to depend on the OS having the font installed and its differing styles of antialiasing.

Re: Text Origin Decide-icidal

Posted: Sun Sep 20, 2009 1:07 am
by napco
Top left, like images! I don't like mixed things...