文件名称:FontTest
介绍说明--下载内容均来自于网络,请自行研究使用
在iPhone上测试iOS字体;主要是通过UIFont类来获得当前iPhone系统的字体。
NSArray *familyNames = [UIFont familyNames]
for( NSString *familyName in familyNames ){
//printf( "Family: s \n", [familyName UTF8String] )
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName]
for( NSString *fontName in fontNames ){
//printf( "\tFont: s \n", [fontName UTF8String] )
[mListFontName addObject:fontName]
}
}
-Test iOS fonts on iPhone, use UIFont class to get all fonts in current iPhone iOS.
NSArray*familyNames = [UIFont familyNames]
for( NSString*familyName in familyNames ){
//printf( "Family: s \n", [familyName UTF8String] )
NSArray*fontNames = [UIFont fontNamesForFamilyName:familyName]
for( NSString*fontName in fontNames ){
//printf( "\tFont: s \n", [fontName UTF8String] )
[mListFontName addObject:fontName]
}
}
NSArray *familyNames = [UIFont familyNames]
for( NSString *familyName in familyNames ){
//printf( "Family: s \n", [familyName UTF8String] )
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName]
for( NSString *fontName in fontNames ){
//printf( "\tFont: s \n", [fontName UTF8String] )
[mListFontName addObject:fontName]
}
}
-Test iOS fonts on iPhone, use UIFont class to get all fonts in current iPhone iOS.
NSArray*familyNames = [UIFont familyNames]
for( NSString*familyName in familyNames ){
//printf( "Family: s \n", [familyName UTF8String] )
NSArray*fontNames = [UIFont fontNamesForFamilyName:familyName]
for( NSString*fontName in fontNames ){
//printf( "\tFont: s \n", [fontName UTF8String] )
[mListFontName addObject:fontName]
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FontTest
........\Classes
........\.......\FontTestAppDelegate.h
........\.......\FontTestAppDelegate.m
........\.......\RootViewController.h
........\.......\RootViewController.m
........\FontTest-Info.plist
........\FontTest.xcodeproj
........\..................\project.pbxproj
........\FontTest_Prefix.pch
........\main.m
........\MainWindow.xib
........\RootViewController.xib
........\Classes
........\.......\FontTestAppDelegate.h
........\.......\FontTestAppDelegate.m
........\.......\RootViewController.h
........\.......\RootViewController.m
........\FontTest-Info.plist
........\FontTest.xcodeproj
........\..................\project.pbxproj
........\FontTest_Prefix.pch
........\main.m
........\MainWindow.xib
........\RootViewController.xib