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

Add bold, italics, bold-itlatics, and monospaced font #1

Closed
ianyepan opened this issue Dec 12, 2019 · 1 comment · Fixed by #2
Closed

Add bold, italics, bold-itlatics, and monospaced font #1

ianyepan opened this issue Dec 12, 2019 · 1 comment · Fixed by #2

Comments

@ianyepan
Copy link
Contributor

ianyepan commented Dec 12, 2019

The CMU font package actually comes with all these fonts. We'd love to have them included so Typora doesn't use its default bold/italics rendering.

@ianyepan
Copy link
Contributor Author

ianyepan commented Dec 12, 2019

@font-face {
  font-family: "Computer Modern";
  font-style: normal;
  font-weight: normal;
  src: url('./paper/cmunrm.ttf');
}

@font-face {
  font-family: "Computer Modern";
  font-style: italic;
  font-weight: normal;
  src: url('./paper/cmunti.ttf');
}

@font-face {
  font-family: "Computer Modern";
  font-style: normal;
  font-weight: bold;
  src: url('./paper/cmunbx.ttf');
}

@font-face {
  font-family: "Computer Modern";
  font-style: italic;
  font-weight: bold;
  src: url('./paper/cmunbi.ttf');
}

I managed to put the ttf files in my local machine and tweaked the css. It worked -- please consider pushing a commit to enhance the feature.

shreyasminocha added a commit to shreyasminocha/paper that referenced this issue Jan 29, 2020
Resolves IagoLast#1

Co-authored-by: Ian Y.E. Pan <ianpan870102@gmail.com>
IagoLast pushed a commit that referenced this issue Jan 31, 2020
Resolves #1

Co-authored-by: Ian Y.E. Pan <ianpan870102@gmail.com>

Co-authored-by: Ian Y.E. Pan <ianpan870102@gmail.com>
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 a pull request may close this issue.

1 participant