iOS 글꼴의 시각적 목록?
iOS 7 용 iOS 글꼴 목록을 찾고 있습니다. Apple 개발자 사이트에서 목록을 찾았습니다. 각 글꼴 이름이 서체에 입력 된 시각적 목록을 아는 사람이 있는지 궁금합니다. 이전에 한두 번 본 적이 있지만 가장 최근에 본 것은 iOS 5 였고 그 이후로 훨씬 더 많은 것이 추가되었습니다.
iOS 글꼴 을 사용해 보셨습니까 ?
이렇게하면 사용 가능한 모든 글꼴을 시각적으로 볼 수 있으며 텍스트 문자열을 입력하여 어떻게 보이는지 확인할 수 있습니다.
이것은 iOS 7에서 업데이트 된 것 같지 않지만 iOS 6 이후에 추가 된 추가 글꼴을 알지 못합니다.
이 글꼴 목록은 Xcode 7 및 iOS 9로 작성되었습니다.
이 중 하나를 프로그래밍 방식으로 설정하고 글꼴 이름이 필요한 경우 다음을 수행 할 수 있습니다.
print(UIFont.familyNames)
// ["Copperplate", "Heiti SC", "Iowan Old Style", "Kohinoor Telugu", "Thonburi", "Heiti TC", "Courier New", "Gill Sans", "Apple SD Gothic Neo", "Marker Felt", "Avenir Next Condensed", "Tamil Sangam MN", "Helvetica Neue", "Gurmukhi MN", "Times New Roman", "Georgia", "Apple Color Emoji", "Arial Rounded MT Bold", "Kailasa", "Kohinoor Devanagari", "Kohinoor Bangla", "Chalkboard SE", "Sinhala Sangam MN", "PingFang TC", "Gujarati Sangam MN", "Damascus", "Noteworthy", "Geeza Pro", "Avenir", "Academy Engraved LET", "Mishafi", "Futura", "Farah", "Kannada Sangam MN", "Arial Hebrew", "Arial", "Party LET", "Chalkduster", "Hoefler Text", "Optima", "Palatino", "Lao Sangam MN", "Malayalam Sangam MN", "Al Nile", "Bradley Hand", "PingFang HK", "Trebuchet MS", "Helvetica", "Courier", "Cochin", "Hiragino Mincho ProN", "Devanagari Sangam MN", "Oriya Sangam MN", "Snell Roundhand", "Zapf Dingbats", "Bodoni 72", "Verdana", "American Typewriter", "Avenir Next", "Baskerville", "Khmer Sangam MN", "Didot", "Savoye LET", "Bodoni Ornaments", "Symbol", "Menlo", "Bodoni 72 Smallcaps", "Papyrus", "Hiragino Sans", "PingFang SC", "Euphemia UCAS", "Telugu Sangam MN", "Bangla Sangam MN", "Zapfino", "Bodoni 72 Oldstyle"]
And if you need the name of a particular bold/italic/etc style, you can get it like this:
for familyName in UIFont.familyNames {
print(UIFont.fontNames(forFamilyName: familyName))
}
(Original answer in ObjC) You can get a list at run-time:
// available fonts listed in xcode output
for (id familyName in [UIFont familyNames]) {
NSLog(@"%@", familyName);
for (id fontName in [UIFont fontNamesForFamilyName:familyName]) NSLog(@" %@", fontName);
}
(Added: Swift one liner):
UIFont.familyNames.forEach{ print($0); UIFont.fontNames(forFamilyName: $0).forEach{ print(" ", $0) } }
This will spit out:
Thonburi
Thonburi-Bold
Thonburi
Thonburi-Light
Snell Roundhand
SnellRoundhand-Black
SnellRoundhand-Bold
SnellRoundhand
...
I have also made a small app that can be used to browse through all the available fonts. Check it out here.
Here's a visual list of fonts in iOS 7.
I don't know of such a tool, but there's a workaround.
- You can list the standard fonts in Xcode. Create a xib (or storyboard), add a label and change its font. There you can see the list of all fonts.
- On your OSX computer, you have a "Font Book" application, where you can view each font.
Also remember that you are not limited to the system fonts if you're building an application. You can provide yours as well.
iOS 글꼴 목록을 확인하십시오 . 새롭고 다른 사이트보다 몇 가지 더 많은 기능이 있습니다. 또한 다른 사이트에서 언급하지 않은 다운로드 가능한 글꼴도 포함되어 있습니다.
신속한 구현 :
// Available fonts (console output)
for familyName in UIFont.familyNames() {
print(familyName)
for fontName in UIFont.fontNamesForFamilyName(familyName) {
print(fontName)
}
}
참고 URL : https://stackoverflow.com/questions/20125129/visual-list-of-ios-fonts
'program story' 카테고리의 다른 글
std :: hash를 전문화하는 방법 (0) | 2020.08.27 |
---|---|
자바 스크립트의 다른 배열에 배열 추가 (0) | 2020.08.27 |
React 컴포넌트에서 HTML 문자열을 실제 HTML로 렌더링 (0) | 2020.08.27 |
Typescript es6 가져 오기 모듈 "파일이 모듈 오류가 아닙니다." (0) | 2020.08.27 |
사용자 암호 정리 (0) | 2020.08.27 |