We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I followed the instruction in typora support for customizing font in css. It seems not work for me.
I opened the themes folder, and created 'base.user.css' file, the contents in it is as follows:
/* latin */ @font-face { font-family: 'SourceHan'; font-style: normal; font-weight: 400; src: local('SourceHan'), local('SourceHan-Medium'), url('./fonts/SourceHanSerifSC-Medium.otf') format('otf'); } /* latin */ @font-face { font-family: 'SourceHan'; font-style: normal; font-weight: 700; src: local('SourceHan Bold'), local('SourceHan-Bold'), url('./fonts/SourceHanSerifSC-Bold.otf') format('otf'); } body { font-family: 'SourceHan', sans-serif; }
I created the 'fonts' folder inside 'themes' and copied the SourceHanSerifSC-Medium.otf file for debugging.
I saved the css file, restart typora, but the Chinese font seems not changed.
Am I wrong in some steps? or can typora support these sorts of fonts? Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I followed the instruction in typora support for customizing font in css.
It seems not work for me.
step 1.
I opened the themes folder, and created 'base.user.css' file, the contents in it is as follows:
step 2.
I created the 'fonts' folder inside 'themes' and copied the SourceHanSerifSC-Medium.otf file for debugging.
result
I saved the css file, restart typora, but the Chinese font seems not changed.
Am I wrong in some steps? or can typora support these sorts of fonts? Thanks
The text was updated successfully, but these errors were encountered: