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

Normalize font-family for interfaces #241

Merged
merged 4 commits into from
Jul 9, 2020
Merged

Normalize font-family for interfaces #241

merged 4 commits into from
Jul 9, 2020

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jul 5, 2020

We've received a feedback about unexpected font of interface at marp-team/marpit#82 (comment): Presenter notes are rendering in serif font.

The root cause is the difference of the default font between browsers. Chrome and Firefox renders in Sans-serif font by default, and Safari renders in Serif font. So I've fixed CSS definitions to normalize font family for Marp interfaces: bespoke template's presenter view, and server index in server mode.

Must not define font-family in body because theme CSS may follow browser default CSS.

@yhatt yhatt merged commit 5188392 into master Jul 9, 2020
@yhatt yhatt deleted the sans-serif-font branch July 9, 2020 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant