DJHFontManager 0.0.6

DJHFontManager 0.0.6

Diyaa Hamza 维护。



  • Diyaa Hamza

DJHFontManager

传递您的字体,以更改所有 UILabel、UIButton、UITextView 和 UITextfield 的字体

安装

添加 pod 'DJHFontManager' 运行 pod 'install'

如何使用

在您的 AppDelegate 中 // 将字体名称更改为您的字体族名称或保持为空以使用当前字体 let fontConfig = DJHFontManager.DJHFotnConfigration.init(reqular: "更改到常规字体名称", bold: "更改到粗体字体名称", light: "更改到轻量级字体名称", italic: "更改到斜体字体名称", black: "更改到黑色字体名称") // 激活 DJHFontManager.shared.activate(config: fontConfig)

作者

MIT 许可协议

Copyright (c) 2018 Diyaa Hamza

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.