typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.54k stars 56 forks source link

Font style doesn't render on Ubuntu #2268

Open keyile opened 5 years ago

keyile commented 5 years ago
  1. I found that some font styles aren't displayed correctly. Here is the test: Not work: bold, Italy Work well: underline, delete line, code
  2. I found that some with some themes I can escape from this issue: themes that renders well: night, whitey that have this bug: github, newsprint, pixyll
  3. Ubuntu version: 18.10 typora version: 0.9.66

Cause font style is a very basic feature, hope you will figure it out soon. :smiley_cat:

StefanTT commented 5 years ago

I have the same issue on ArchLinux with Gnome. Installing Open Sans (via package ttf-opensans) did not fix the problem.

After some trial and error I found out that on my system the font is named "Open Sans Regular" and not "Open Sans".

Changing the body block in Typora's github.css fixed it for me:

body {
    font-family: "Open Sans Regular","Open Sans","Clear Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    color: rgb(51, 51, 51);
    line-height: 1.6;
}