Text Origin Decide-icidal

General discussion about LÖVE, Lua, game development, puns, and unicorns.

The text origin should be:

Poll ended at Fri Sep 25, 2009 8:43 pm

Top-left
20
100%
Baseline
0
No votes
 
Total votes: 20

User avatar
rude
Administrator
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Text Origin Decide-icidal

Post by rude » Fri Sep 18, 2009 8:43 pm

Should the text origin continue to be at the baseline, or should be it be moved to top-left?

User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: Text Origin Decide-icidal

Post by osgeld » Fri Sep 18, 2009 9:11 pm

Hm thats a hard one, I voted top left for consistency with how the images are now aligned

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Text Origin Decide-icidal

Post by Robin » Fri Sep 18, 2009 9:55 pm

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.
Help us help you: attach a .love.

User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Text Origin Decide-icidal

Post by TechnoCat » Fri Sep 18, 2009 9:59 pm

The only reason I could think of to choose one over the other is consistency: Top-left.

User avatar
Almost
Prole
Posts: 42
Joined: Fri Aug 21, 2009 8:04 pm
Location: Canada
Contact:

Re: Text Origin Decide-icidal

Post by Almost » Sat Sep 19, 2009 12:11 am

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).


User avatar
Simtex
Prole
Posts: 39
Joined: Sun Dec 14, 2008 5:31 am

Re: Text Origin Decide-icidal

Post by Simtex » Sat Sep 19, 2009 2:22 am

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).

User avatar
rude
Administrator
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Text Origin Decide-icidal

Post by rude » Sat Sep 19, 2009 10:25 pm

Well, this seems pretty clear. :neko:

User avatar
Jasoco
Inner party member
Posts: 3650
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Text Origin Decide-icidal

Post by Jasoco » Sun Sep 20, 2009 12:47 am

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.

User avatar
napco
Party member
Posts: 129
Joined: Fri Jun 12, 2009 9:28 pm
Location: Ital... ehm...

Re: Text Origin Decide-icidal

Post by napco » Sun Sep 20, 2009 1:07 am

Top left, like images! I don't like mixed things...

Post Reply

Who is online

Users browsing this forum: korneferpoink and 19 guests