Skip to content

Fonts: theme font family missing when editing individual blocks #55011

Closed

Description

@annezazu

Using WP 6.4-beta1-56757 and GB 16.7, the theme provided fonts disappear post uploading a custom font. Here are steps to replicate:

  1. Select a block to edit
  2. Add the “Font Family”
  3. Open the dropdown, and verify all the theme fonts are there
  4. Open the Font Library modal
  5. Upload and install the new font
  6. Go back to edit a block
  7. Open the dropdown again, and verify the theme fonts disappear

Video displaying this:

missing.all.font.family.mov

Activity

  1. added
    [Type] Bug
    [Feature] Typography
    on Oct 3, 2023
  2. moved this to Needs Dev / Todo in WordPress 6.4 Editor Taskson Oct 3, 2023
  3. arthur791004 commented on Oct 5, 2023

    @arthur791004
    Contributor

    The block settings only pick font families from one of the below in order from the global styles settings

    • custom
    • theme
    • default

    But I cannot figure out why as I assume we can simply merge them 🤔

  4. moved this from Needs Dev / Todo to Punted to 6.5 in WordPress 6.4 Editor Taskson Oct 5, 2023
  5. matiasbenedetto commented on Oct 10, 2023

    @matiasbenedetto
    Contributor

    This was caused by a problem not specific to the font library but the global styles/settings. This PR should solve it: #55219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Typography[Type] Bug

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions