BoostIO/BoostNote-Legacy

The way of solving incorrect font used for some Chinese characters

wu-yue-yu opened this issue · 2 comments

image

The character above is "分" rendered by previous area, and the character below is "分" rendered by text editor area (it correctly render by Source Han Sans CN Medium). There is slightly difference as the sreenshoot shown, but I have set the same font "Hack", "Source Han Sans CN Medium" for both Editor Font Family and Preview Font Family.

I have very little knowledge about web development. I think the reason is probably caused by the style sheet below

@font-face {
      font-family: 'OpenSans';
      src: url('../resources/fonts/Lato-Regular.woff2') format('woff2'), /* Modern Browsers */
      url('../resources/fonts/Lato-Regular.woff') format('woff'), /* Modern Browsers */
      url('../resources/fonts/Lato-Regular.ttf') format('truetype');
      font-style: normal;
      font-weight: normal;
      text-rendering: optimizeLegibility;
    }

Therefore, changing Previous Font Family in preferences doesn't take effect.

Originally posted by @hkunzhe in #3393 (comment)

Using this font, can deal with this problem. Consolas-with-Yahei
Could add this font to the software? This is the best way to maek Chinese characters and other characters compatible.
Thanks for reading this.

Using this font, can deal with this problem. Consolas-with-Yahei
Could add this font to the software? This is the best way to maek Chinese characters and other characters compatible.
Thanks for reading this.

The font includes boldItalic and bold Italic.