profile
viewpoint

Ask questionsChanging font family can result in "multiple" for font weight

Bug Description

Sometimes when changing the font family, "multiple" is shown as the font weight even if multiple font weights haven't been defined within the text.

It might be that the new font family doesn't have the font weight assigned and that causes it but this needs verifying. <!-- A clear and concise description of what the bug is. -->

Expected Behaviour

  • No input field for a single selected element should ever have a "multiple" value.

Display the closest available font weight? TBD by UX

Note: whatever is chosen should be displayed in the design panel and also for the text itself, too -- meaning applying it to the element content. <!-- Please describe clearly and concisely what the expected behaviour should be. -->

Steps to Reproduce

  1. Add text element
  2. Assign font family Open Sans Condendsed, font weight Light
  3. Now change the font family to Playball
  4. See "multiple" as the font weight. <!-- Please provide detailed steps on how to reproduce the bug. -->

Screenshots

Screenshot 2020-05-20 at 17.23.11.png <!-- If applicable, please add screenshots to help explain your problem. Bonus points for videos! -->

Additional Context

<!-- Please complete the following information. -->

  • Plugin Version:
  • Operating System:
  • Browser:

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance Criteria

<!-- One or more bullet points for acceptance criteria. -->

Implementation Brief

<!-- One or more bullet points for how to technically implement the feature. -->

google/web-stories-wp

Answer questions pbakaus

/cc @o-fernandez

My vote goes to allowing 'faux bold' (system level bolding) as fallback for when there's no bold variant.

useful!

Related questions

No questions were found.
Github User Rank List