win电脑上有适配生僻字的字体库,而mac没有所以需要单独引入字体库解决生僻字问题
@font-face { font-family: 'SIMSUNB'; src: url('/static/fonts/SIMSUNB.TTF') format('opentype'); font-weight: 400; font-style: normal; font-display: swap;}@font-face { font-family: 'SIMSUNEXTG'; src: url('/static/fonts/SIMSUNEXTG.TTF') format('opentype'); font-weight: 400; font-style: normal; font-display: swap;}body { font-family: 'SIMSUNB', 'SIMSUNEXTG'; line-height: 1.42857143; background-color: #f7f8fd; -webkit-font-smoothing: subpixel-antialiased;}
经过调研发现win电脑适配生僻字主要是因为这两个字体库的原因,所以引入项目的body中就可解决。
字体文件包: