Skip to content
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

Fonts Manager: inconsistent results for installed fonts #54568

Closed
annezazu opened this issue Sep 18, 2023 · 9 comments
Closed

Fonts Manager: inconsistent results for installed fonts #54568

annezazu opened this issue Sep 18, 2023 · 9 comments
Labels
[Feature] Typography Font and typography-related issues and PRs [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

When testing out the fonts manager using the Gutenberg nightly plugin as part of the next call for testing for the FSE Outreach Program, I found that after installing two different fonts (Inclusive Sans and Poppins), the results for what's available in the font library varied from no new fonts added, one visible, and both visible. It seems to happen after I use one of the new fonts in Typography:

font.family.not.showing.up.mov

cc @matiasbenedetto @ironprogrammer

@annezazu annezazu added [Type] Bug An existing feature does not function as intended [Feature] Fonts API labels Sep 18, 2023
@matiasbenedetto
Copy link
Contributor

Hi @annezazu thanks for reporting this. This seems to be related to this issue: ( #54222 ). Do you remember doing something similar to what is described in the issue?

@annezazu
Copy link
Contributor Author

Thanks for following up! How do you see it as related? I am not quite following. To be clear, I spun up a new test site and went straight to add fonts before immediately noticing the inconsistencies (no revisions, no other actions taken).

@matiasbenedetto
Copy link
Contributor

Thanks for following up! How do you see it as related? I am not quite following. To be clear, I spun up a new test site and went straight to add fonts before immediately noticing the inconsistencies (no revisions, no other actions taken).

Sorry, I misinterpreted the video. After a re-watch, I think it's unrelated to the issue I pointed out.
I think that, for some reason, the list of installed fonts is not loading as expected in this case.

@bph
Copy link
Contributor

bph commented Sep 19, 2023

The Gutenberg nightly release asset of yesterday (9/18), might not have fully deployed to GitHub. There was an error message I missed on the deploy process.

Today's build went all the way through. @anne try it again.

--update: After some investigation, i found the error message was just about closing the SFTP connection from my script. The release asset should have deployed correctly.

@annezazu
Copy link
Contributor Author

annezazu commented Sep 19, 2023

Updated to the latest Gutenberg nightly and I'm still seeing issues, including not all fonts listed randomly, Poppins font not showing up correctly when selected, and when hitting "update" the saving happening in the background without clarity that saving has occurred in the modal:

font.test.mov

@annezazu
Copy link
Contributor Author

annezazu commented Sep 21, 2023

I can still replicate this with GB 16.7 RC1. It seems you need to upload some fonts and then use one in one of the top level typography options, in this case Headings:

fonts.inconsistent.mov

@ironprogrammer
Copy link
Contributor

I was also able to replicate this once using the Gutenberg nightly plugin referenced above. In my case NO custom fonts were displayed -- they ALL disappeared, compared to only some in @annezazu's recording.

However, using GB trunk, I was NOT able to repro the issue across Safari, Chrome,Firefox, or GB trunk Playground with lots of fiddling, including manually uploaded and Google fonts. This report looks really similar to issues reported for #53884 (merged last week). The above-mentioned nightly is from September 5, so it makes sense if similar issues were now resolved. But if @annezazu is still seeing it in 16.7 RC1...🤔 Would you be able to check if there are any errors in the JS console when the issue occurs?

When I tried recording the nightly build test, I couldn't get it to repro again 🤯, but here are the steps:

Test Report

Steps to Reproduce

  1. Using the font manager, upload a few custom fonts.
  2. Click outside the modal, which closes it.
  3. Re-open the font manager.
  4. Disable one of the custom font's variations.
  5. Click outside of the modal, which closes it.
  6. Select Headings.
  7. Assign a custom font.
  8. Return to the main Typography screen.
  9. Open the font manager.
  10. 👀 Observe the display of custom fonts in the Library tab.

Environment

  • OS: macOS 13.5.2
  • Browser: Safari 16.6, Google Chrome 117.0.5938.88, Mozilla Firefox 117.0.1
  • Server: nginx/1.25.2
  • PHP: 7.4.33
  • WordPress: 6.4-alpha-56267-src
  • Theme: twentytwentythree v1.2
  • Active Plugins:
    • gutenberg v16.7.0-rc.1 (trunk) and old nightly build

Actual Results

  • ✅ Able to repro using 16.8.-nightly.
  • ❌ Unable to repro on trunk (16.7.0-rc.1).

@annezazu
Copy link
Contributor Author

annezazu commented Sep 22, 2023

No errors in console! It's very strange. I also noticed that the Poppins font doesn't quite seem to be registered as the font looks quite off compared to this https://fonts.google.com/specimen/Poppins:

Screen Shot 2023-09-21 at 6 23 29 PM

Here's a shortened video using 6.4-alpha-56657 and GB 16.7 RC1. Super odd and very consistent. It only seems to happen after I apply a font:

can.t.replicate.mov

@annezazu annezazu added [Feature] Typography Font and typography-related issues and PRs and removed [Feature] Fonts API labels Sep 25, 2023
@annezazu
Copy link
Contributor Author

I can no longer replicate with GB 16.7 and 6.4 Beta 1:

Screen.Recording.2023-09-28.at.9.50.57.AM.mov

However, I can replicate this bug #54706 and a new one where the font description changes weight depending on which fonts you activate/deactivate (about to open).

Going to close this out but let's see make sure it doesn't return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Typography Font and typography-related issues and PRs [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants