windows xp2-对号怎么打
![regular字体](/uploads/image/0123.jpg)
2023年4月6日发(作者:右下角没有小喇叭)
iOS字体(纤细体极细体细体常规体中粗体中⿊体...)
extensionUIFont{
/**
*PingFangThin苹⽅-简纤细体字体样式
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyle_Thin(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"PingFangSC-Thin",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".PingFangSC-Thin",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
/**
*PingFangUltraLight苹⽅-简极细体字体样式
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyle_UltraLight(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"PingFangSC-UltraLight",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".PingFangSC-UltraLight",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
/**
*PingFangLight苹⽅-简细体字体样式
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyle_Light(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"PingFangSC-Light",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".PingFangSC-Light",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
/**
*PingFangRegular苹⽅-简常规体字体样式
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyle_Regular(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"PingFangSC-Regular",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".PingFangSC-Regular",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
/**
*PingFangSemibold苹⽅-简中粗体字体样式
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyle_Semibold(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"PingFangSC-Semibold",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".PingFangSC-Semibold",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
/**
*PingFangMedium苹⽅-简中⿊体字体样式
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyle_Medium(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"PingFangSC-Medium",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".PingFangSC-Medium",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
/**
*FontSizeStyleDIN_Bold数字字体
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyleDIN_Bold(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"DIN-Bold",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".DIN-Bold",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
/**
*FontSizeStyleDINAlternate_Bold数字字体
*size字体⼤⼩
*/
openopenclassclassfuncfuncFontSizeStyleDINAlternate_Bold(size:CGFloat)->UIFont{
//字体
ifif#available#available(iOSiOS11.0,*){
ififletletfont=UIFont(name:"DINAlternate-Bold",size:size){
returnreturnfont
}
Font(ofSize:size)
}elseelse{
ififletletfont=UIFont(name:".DINAlternate-Bold",size:size){
returnreturnfont
}
Font(ofSize:size)
}
}
}
更多推荐
regular字体
发布评论