-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long Title strings off center in home screen #645
Comments
@arouinfar @kathy-phet does this block publication of pH Scale? |
I removed a line that looked like a prior way of addressing maxWidth. The title already specifies |
@pixelzoom this issue does not block publication of pH scale. Could you quickly review @samreid's change. |
I verified the fix. Even though it's not blocking, I'm going to cherry-pick 87ae3a4 for ph-scale so that we can resolve phetsims/ph-scale#184. |
Cherry-picked to ph-scale and ph-scale-basics 1.4 branches. This also affects MAL RC. Assigning to @ariel-phet and @jessegreenberg to decide whether to cherry-pick there. |
@jessegreenberg up to you if you want to cherry-pick. This is a minor aesthetic issue in my opinion, but if it is only a couple of minutes to do it might be worth it. Whether you cherry pick or not, please note here and then close the issue. |
Adjusted the font family in PhetFont, and I added a @kathy-phet and @KatieWoe, can you see if this works, see if it looks good, and possibly try out alternative fonts with the query parameter? |
Things looked ok on my end. |
I think this issue may be causing some layout issues in NumberPlay, and I suspect many other sims are affected as well. It seems like there's a lot riding on the specific family of PhetFont, so likely shouldn't be changed without lots of pixel testing. Please compare screen 3 and the bottom right panel of screen 5 of these dev versions: Adding blocks-publication label. |
Can you post screenshots @chrisklus ? I don't see any changes in screen 3, or bottom right panel of screen 5 |
It's easiest to compare if you click on each of these to open in their own tab. Most notably, the new font doesn't vertically center symbols like <, = , and >. It looks like number characters are slightly lower too, causing misalignment with the arrow buttons in the second screenshot. before: after: before: after: |
This is happening on my system, with the "Helvetica Neue" font on macOS. It does NOT happen with Arial. Perhaps we should choose another common font? |
I'm seeing this in phetsims/qa#838 (Win 11 Chrome). It also seems that this can throw off icons such as those in the nav bar. @samreid let me know if you want this as a separate issue for the GaO rc. |
Yes, a sim-specific issue would be great so we can track cherry-picking & maintenance, thanks! |
Probably not related to phetsims/gravity-and-orbits#448 |
@marlitas and I reviewed this today in the context of the Gravity and Orbits RC.1 for phetsims/qa#838. It seems the title font is corrected by the new font, and the problem @chrisklus pointed out mainly affects mathematical symbols which do not appear in Gravity and Orbits. We reproduced the problem in number play and confirmed those math symbols do have incorrect looking bounds: |
In discussion with @marlitas and @arouinfar, we think this font change may have also caused phetsims/scenery#1458 |
Should we potentially revert the font change? Are we able to use the query parameter to figure out what might work in all of these cases? |
Should those math symbols be translatable? Maybe sims should be using |
@chrisklus can you comment on the blocking status of this issue? |
@kathy-phet, "I would say this is high priority because it is blocking number play." @kathy-phet: "Is it just the math symbols that are off center?" We are not sure. We will reach out to @chrisklus. |
Sorry - it is math symbols most noticeably, but numbers and regular text are sitting a little low, too. Compare the two Compare screen screenshots from #645 (comment) and you'll see the math symbols are most noticeably off, but the numbers in the total accordion boxes are a bit low and no longer vertically centered with the buttons. Also notice the comparison statement and sim title are a little bit lower. For this screen of Number Play, I think just the math symbols and total numbers are blocking, but given that general text is low too, I have to think there are plenty of pixel-perfect text alignments in many other sims that are now a little off in a noticeable way. Should we close this issue and open a side issue for the alignment problems? |
That would be very helpful! Can you please mark as high priority and assign to KP and JO? |
Thanks! Sure thing, I opened phetsims/scenery-phet#785. Closing! |
Found during phetsims/qa#514. pH issue made in phetsims/ph-scale#184.
This issue seems to be independent of platform. When strings are long, the title text on the home screen seems to be further to the left than center. Unsure if this ended up in any published sims.
Assigning @samreid due to recent Joist work. Please reassign as appropriate.
The text was updated successfully, but these errors were encountered: