Skip to content

Fake bold/italic font styles #21

Closed
@johannschopplich

Description

@johannschopplich

Using asterisks or rather the bold/italic markdown syntax results in fake displayed fonts, because the real font styles are missing.

screenshot-2017-10-23 writing

I recommend implementing the missing styles like this:

@font-face {
  font-family: ComputerModern;
  src: url('ComputerModern-Regular.otf') format('otf');
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
}
@font-face {
  font-family: ComputerModern;
  src: url('ComputerModern-RegularItalic.otf') format('otf');
  font-weight: 400;
  font-style: italic;
  font-stretch: normal;
}
@font-face {
  font-family: ComputerModern;
  src: url('ComputerModern-Bold.otf') format('otf');
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
}
@font-face {
  font-family: ComputerModern;
  src: url('ComputerModern-BoldItalic.otf') format('otf');
  font-weight: 700;
  font-style: italic;
  font-stretch: normal;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions