Closed Dothion closed 5 years ago
.slide
selector is only for outdated Marp app. Instead, Marp Next must use section
selector.
<style>
section {
font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}
</style>
See also the document of theme CSS in Marpit framework.
Incidentally, Gaia has already defined sans-serif font in theme CSS so I think rendering with serif font is unexpected behavior. I was going to consider CJK rendering well because I'm Japanese, but the result in Chinese fonts is interesting for me.
It's working well. Thanks a lot.
Serif Chinese font isn't a good choice in slides, so I tried this, but font didn't change.
I didn't try it with html output because html version without
<style>
worked well with a sans serif font. So is there any way to change font without editing theme files?btw Microsoft YaHei might not be a good default font because it is not a free font. Sarasa Gothic may be a good alternative.