Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

DM Sans font italicizes all bold text #100

Closed
justintadlock opened this issue Aug 23, 2022 · 2 comments · Fixed by #81
Closed

DM Sans font italicizes all bold text #100

justintadlock opened this issue Aug 23, 2022 · 2 comments · Fixed by #81

Comments

@justintadlock
Copy link

When bolding text either through a fontWeight definition in theme.json or via the editor (<strong> wrapper), the included DM Sans font also applies an italic style to the text. This is not an issue with other font-families registered in the theme.

dm-sans-strong

Steps to reproduce:

Seting the fontFamily for anything to var( --wp--preset--font-family--dm-sans ). The following sets the body style to use it:

{
	"styles": {
		"typography": {
			"fontFamily": "var( --wp--preset--font-family--dm-sans )",
		}
	}
}

Then, test by bolding some text in the editor. Example block code:

<!-- wp:paragraph -->
<p>No, Corin, being old, <strong>thou canst not guess</strong>, Though in thy youth thou wast as true a lover As ever sigh'd upon a midnight pillow. A miserable world! As I do live by food, I met a fool, Who laid him down and bask'd him in the sun, And rail'd on Lady Fortune in good terms, In good set terms- and yet a motley fool. </p>
<!-- /wp:paragraph -->
@mikachan
Copy link
Member

Thanks! This should be fixed by: #81

@bgardner
Copy link

Circling back to verify this has been fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants