Git Product home page Git Product logo

Comments (3)

sujaypawar avatar sujaypawar commented on September 26, 2024

@March-happy - Astra by default offers System and Google fonts. You can read more about this in this article.

Did you want to suggest us to add some Chinese fonts built in? Could you name a few? Is there any other theme which has done this, just so I can take a reference and understand this better?

Other issue about style.css - could you please elaborate? Are you using a Child theme?

from astra.

Aster-the-Med-Stu avatar Aster-the-Med-Stu commented on September 26, 2024

I know that but Google Fonts' service is unstable in China Mainland. So I suggest that Astra adds Chinese font families built-in.

I am not using Astra Child. Only found copyright statement in style.css. Is it caused by the plugin WP Super Cache I am using?

In Chinese there are four font families that can be found on every computer (including Linux):
黑体Hei),楷体Kai),宋体Song),仿宋Fang Song
And there is someone made the CSS before (GitHub Repo Link,Final CSS) You can see the DEMO.

/*!
 *  Fonts.css -- Cross-platform Chinese fonts solution
 *
 *  Copyright (C) 2013-2015 Zeno Zeng
 *  Released under the MIT license
 *
 *  Github: https://github.com/zenozeng/fonts.css
 */
.font-hei {font-family: -apple-system, "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Source Han Sans SC", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;}
.font-kai {font-family: Baskerville, Georgia, "Liberation Serif", "Kaiti SC", STKaiti, "AR PL UKai CN", "AR PL UKai HK", "AR PL UKai TW", "AR PL UKai TW MBE", "AR PL KaitiM GB", KaiTi, KaiTi_GB2312, DFKai-SB, "TW\-Kai", serif;}
.font-song {font-family: Georgia, "Nimbus Roman No9 L", "Songti SC", STSong, "AR PL New Sung", "AR PL SungtiL GB", NSimSun, SimSun, "TW\-Sung", "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", PMingLiU, MingLiU, serif;}
.font-fang-song {font-family: Baskerville, "Times New Roman", "Liberation Serif", STFangsong, FangSong, FangSong_GB2312, "CWTEX\-F", serif;}

from astra.

sujaypawar avatar sujaypawar commented on September 26, 2024

Thanks for suggesting Fonts. We will try and include that CSS / support for Chinese Fonts in future release of Astra.

As for the CSS, I think it must be caused by the cache plugin. You may deactivate cache (and other plugins) temporarily and take a look.

from astra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.