Git Product home page Git Product logo

Comments (2)

simonsmh avatar simonsmh commented on July 29, 2024 1

MIUI sucks. 因为有MIUI主题适配原因,字体其实是不方便修改的。
将就用用吧。MIUI国际版是正常的。

from notocjk.

moposx avatar moposx commented on July 29, 2024

因为MIUI国内版的fonts.xml添加了小米兰亭的配置,如果你想用新字体全局替换掉小米兰亭,就需要去掉这段配置。

    <!-- MIUI ADD: Begin /-->
    <family name="miui">
        <font weight="100" style="normal">Miui-Thin.ttf</font>
        <font weight="300" style="normal">Miui-Light.ttf</font>
        <font weight="400" style="normal">Miui-Regular.ttf</font>
        <font weight="700" style="normal">Miui-Bold.ttf</font>
    </family>

    <alias name="miui-thin" to="miui" weight="100" />
    <alias name="miui-light" to="miui" weight="300" />
    <alias name="miui-bold" to="miui" weight="700" />

    <family name="miuiex">
        <font weight="400" style="normal">MiuiEx-Regular.ttf</font>
        <font weight="700" style="normal">MiuiEx-Bold.ttf</font>
    </family>
    <family name="miuiex-light">
        <font weight="300" style="normal">MiuiEx-Light.ttf</font>
    </family>
    <!-- MIUI ADD: End /-->

此外,对于自带应用,不少自带都带有自己的字体,无法保证在这些app中正常显示你希望替换的字体(不过这类自带大都是体积很小的字体,用以显示总数量较少的数字和字母等部分字符)。但是,MIUI论坛app自带了全量的小米兰亭regular字重的字体,因此替换字体不会对这个app生效。

from notocjk.

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.