Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GcsSloop/FontsManager

Repository files navigation

FontsManager

You Dai Zhong Gou

Zi Ti Guan Li Qi ,Fang Bian Kuai Su De Wei Ying Yong Nei Suo You Zu Jian Geng Huan Zi Ti .

Zuo Zhe Wei Bo : @GcsSloop

DemoYan Shi

Ru He Tian Jia

1.Zai ProjectDe build.gradleZhong Tian Jia Cang Ku Di Zhi

allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}

2.Zai ModuleMu Lu Xia De build.gradleZhong Tian Jia Yi Lai

dependencies {
compile 'com.github.GcsSloop:FontsManager:v1.0.0'
}

Shi Yong Wen Dang

Chu Shi Hua

PS: Chu Shi Hua Fang Shi Ren Xuan Qi Yi Ji Ke ,Bing Qie Chu Shi Hua Han Shu Zhi Xu Yao Diao Yong Yi Ci .

FontsManager.init(typeface); //Chuan Ru Yi Ge typefaceChu Shi Hua
FontsManager.initFormAssets(context, fontPath); //Chuan Ru Shang Xia Wen He Zi Ti Bao Lu Jing (Zi Ti Wen Jian Zai AssetsZhong )
FontsManager.initFormFile(fontFile); //Chuan Ru Yi Ge Zi Ti Bao Wen Jian
FontsManager.initFormFile(fontFilePath); //Chuan Ru Yi Ge Zi Ti Bao Wen Jian Lu Jing

Gai Bian Yi Ge activityDe Zi Ti

FontsManager.changeFonts(activity);

Gai Bian Yi Ge viewDe Zi Ti

FontsManager.changeFonts(view);

Gai Bian Yi Ge ViewGroupDe Zi Ti

FontsManager.changeFonts(viewGroup);

Shi Li

@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
FontsManager.initFormAssets(this, "fonts/sao.ttf"); //Chu Shi Hua
FontsManager.changeFonts(this); //Jin Xing Ti Huan
}

Geng Xin Shuo Ming

Ban Ben Hao Geng Xin Nei Rong
v1.0.0 Cong Bintray Qian Yi Dao JitPack.

About Me

Zuo Zhe Wei Bo : @GcsSloop

Kai Yuan Xie Yi

Copyright (c) 2015 GcsSloop

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

help you change the module font easily.(Fang Bian Kuai Su De Wei Ying Yong Nei Suo You Zu Jian Geng Huan Zi Ti )

Resources

Readme

License

EPL-1.0 license

Stars

Watchers

Forks

Packages

Contributors

Languages