[Twinsen][0.17.66] Station names badly aligned

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
planetmaker
Fast Inserter
Fast Inserter
Posts: 179
Joined: Mon Jan 21, 2019 9:30 am
Contact:

[Twinsen][0.17.66] Station names badly aligned

Post by planetmaker »

Look at the attached screenshot. The station names seem to be placed to the right by about one station. This can become quite confusing in space-constrained setups like these when the station names differ. Actually I thought that the left-most TrainYard station accidentially got named to " " or similar.

My suggested fix is to move the station label closer to the actual station position so that it starts more above the position than pointing with the angle towards it.
Attachments
Bildschirmfoto von 2019-08-31 03-34-46.png
Bildschirmfoto von 2019-08-31 03-34-46.png (6.36 MiB) Viewed 2607 times

Loewchen
Global Moderator
Global Moderator
Posts: 7452
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.17.66] Station names badly aligned

Post by Loewchen »

Can not reproduce, labels follow direct after the marker for me.

quale
Inserter
Inserter
Posts: 40
Joined: Thu Aug 15, 2019 4:16 pm
Contact:

Re: [0.17.66] Station names badly aligned

Post by quale »

Alignment changes with zoom level. It’s good at the default zoom level of the train interface. As you zoom out and the circle icon shrinks, text stays at the same offset from the center, creating a slight gap. As you zoom in, text moves far away from the center, creating a massive gap. The text offset code may be trying to stay a fixed distance from the icon, but getting it wrong because it mixes up zooming in and out. It acts as though icons stay the same size when you zoom out, when they really shrink. It acts as though icons grow when you zoom in, when they really stay the same size.

Bilka
Factorio Staff
Factorio Staff
Posts: 2853
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.66] Station names badly aligned

Post by Bilka »

Looks aligned to me:
Image
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
planetmaker
Fast Inserter
Fast Inserter
Posts: 179
Joined: Mon Jan 21, 2019 9:30 am
Contact:

Re: [0.17.66] Station names badly aligned

Post by planetmaker »

Bilka wrote:
Sat Aug 31, 2019 8:36 am
Looks aligned to me:
Image
Thanks for the quick reply. Yes it is aligned in the fashion you indicate - which is here the problem.

My argument is that the given alignment is un-intuitive and/or the separation from the stations needs some different scaling:

Separation of the text label from their corresponding station is larger than the separation of the stations. Result is that the start of a text label is closer to another station location than the one it belongs to. In cases like this where every point is supposed to be annotated, common reading habits has it (probably most widespread) that annotations are expected to start closest to the point which they label.

It would likely help if the station name starts more or less immediately adjacent in the upper right quadrant to the marker so that the name can easier unambigously be attributed to the station it belongs to.

(The screenshot shows a situation where stations are as close together as possible for parallel tracks.)

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5202
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.66] Station names badly aligned

Post by eradicator »

If you move the names too close to the circiles then the font will start colliding with the circles (i.e. bottom-extended letters like "g" or "q".). Probably worse in other languages. Also tall letters start colliding for vertical stackers (if you change the default angle to "compensate" you lose readability).

Imho a magic feature that combins identical station names into one block (like other train games do) could solve this, but if that ever happens it would be post-launch.

Ugly mockups:
compressedstations.png
compressedstations.png (69.15 KiB) Viewed 2554 times
vertical.png
vertical.png (36.7 KiB) Viewed 2554 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5202
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.66] Station names badly aligned

Post by eradicator »

(This should possible be split into a seperate bug report? I'm on 0.17.66.)

Looking at this very closely i noticed something funny with the english font. It is not actually centrally aligned to the center of the station circle, but shifted downwards (depends on rotation). I'm playing on english locale, and while for english names the effect is obvious to the naked eye at default angle, for japanese names it is so marginal that it might as well be measurement error. Further investigation shows that it depends on the station name rotation, and becomes more prominent at higher angles.

0°:
zerodegree.png
zerodegree.png (268.7 KiB) Viewed 2543 times
31°:
thirtyonedegree.png
thirtyonedegree.png (626.53 KiB) Viewed 2543 times
90°:
ninetydegree.png
ninetydegree.png (332.99 KiB) Viewed 2543 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

benplumley
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Aug 31, 2019 10:48 am
Contact:

Re: [0.17.66] Station names badly aligned

Post by benplumley »

Regarding the suggestion of combining station names when they're close together and have the same name - I've made a mockup of how I'd imagine this looking. The top stations show the suggestion and the bottom stations show the current behaviour.

Image

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2846
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [0.17.66] Station names badly aligned

Post by Optera »

benplumley wrote:
Sat Aug 31, 2019 10:51 am
Regarding the suggestion of combining station names when they're close together and have the same name - I've made a mockup of how I'd imagine this looking. The top stations show the suggestion and the bottom stations show the current behaviour.

Image
Having seen a lot of tube maps, this looks familiar and very nice.
However it wont solve the main problem of misaligned names when each stop has a different name.

User avatar
Jon8RFC
Filter Inserter
Filter Inserter
Posts: 528
Joined: Tue May 10, 2016 3:39 pm
Contact:

Re: [0.17.66] Station names badly aligned

Post by Jon8RFC »

@eradicator
Was it better aligned before this fix?

Looks like maybe it was, when using FerMod's second image.
Image

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5202
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.66] Station names badly aligned

Post by eradicator »

Jon8RFC wrote:
Sat Aug 31, 2019 2:42 pm
@eradicator
Was it better aligned before this fix?

Looks like maybe it was, when using FerMod's second image.
To my "naked eye" it does look better, but... When i measure that image assuming 30° the first letters are better centered, but the text is not parralell to the axis. If i measure it assuming 31° the text is axis-parralell, but suffers the same problem as mentioned above. Therefore without knowing the setting used for that screenshot i can not say. (Is the default value 30 or 31?)
fromthatotherthread.png
fromthatotherthread.png (660.96 KiB) Viewed 2480 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Twinsen
Factorio Staff
Factorio Staff
Posts: 1240
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen][0.17.66] Station names badly aligned

Post by Twinsen »

Fixed in Version: 0.17.67.
The offset was not scaling the same way as the icon, making it look weird.
Also the vertical centering was broken as it didn't account for the angle of the text.

User avatar
planetmaker
Fast Inserter
Fast Inserter
Posts: 179
Joined: Mon Jan 21, 2019 9:30 am
Contact:

Re: [Twinsen][0.17.66] Station names badly aligned

Post by planetmaker »

Wow, I'm again surprised how quick and well bug reports are handled :) Thanks a lot, looking forward to 0.17.67 :)

The factory must grow.

Post Reply

Return to “Resolved Problems and Bugs”