GithubHelp home page GithubHelp logo

fitfrontdemo's Introduction

FitFrontDemo

FitFrontDemo 项目字号适配

原理:利用runtime交换了原来的系统的设置font的方法,通过添加系统方法的分类实现,demo中只写了两个方法的分类 需要的时候可自行添加。

这样的实现有一个很大的弊端就是切换字号设置之后,已创建过的控件字号不会自动改变,进入新页面不会有问题,所以已创建的所有页面都要刷新一遍font才会生效; 还有就是字号变大之后 很多地方的控件尺寸容不下大号字体显示不全,这个要注意

我这个是对于已有项目的字号切换方案, 如果你有更好的实现方法欢迎交流 QQ 1131991303

效果预览

fitfrontdemo's People

Contributors

lypcliuli avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.