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

Assignment of fonts after installation of a font with Heading (All) incorrect #60245

Open
hagege opened this issue Mar 27, 2024 · 2 comments
Open
Labels
[Feature] Typography Font and typography-related issues and PRs [Type] Bug An existing feature does not function as intended

Comments

@hagege
Copy link

hagege commented Mar 27, 2024

Description

I have uploaded fonts and use the font type (Font Handle in the example) for the headings. However, I have noticed that H2 is displayed correctly with the font, but H3 is not, although I have specified "All". This does not seem to be correct.

Step-by-step reproduction instructions

  1. Apperance
  2. Editor
  3. Styles
  4. Typography
  5. Fonts
  6. Choose uploaded Font (in this example Handlee)
  7. Headings, choose "All"
  8. H1 an H2 are ok, but H3 has the font "Instrument Sans"

Screenshots, screen recording, code snippet

issue_font_library_header

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@hagege hagege added the [Type] Bug An existing feature does not function as intended label Mar 27, 2024
@creativecoder
Copy link
Contributor

If I'm following the screen capture correctly, what I'm seeing is that the H3 block has a block level setting that uses the "Instrument Sans" font.

A block level setting will override global styles settings. If you remove the block font family setting, it should then use the global styles setting for the "Handlee" font.

@hagege
Copy link
Author

hagege commented Mar 27, 2024

If I'm following the screen capture correctly, what I'm seeing is that the H3 block has a block level setting that uses the "Instrument Sans" font.

That is correct. But this is a fresh WordPress instance with TT4. Then I suspect that this setting is related to TT4. I think, at least in this case (and probably also with other block themes) this may be an unexpected behavior for the user.

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
None yet
Development

No branches or pull requests

3 participants