Heiti SC at a glance
| Category | World Scripts |
|---|---|
| Styles on iOS | 2 (Light, Medium) |
| First on iPhone | iOS 3.0 |
| First on iPad | iOS 4.3 |
| Family name | Heiti SC |
| Default PostScript name | STHeitiSC-Medium |
PostScript names for every Heiti SC style
iOS looks fonts up by their PostScript name, not the friendly family name. Use the names below exactly as written — they are case-sensitive.
| Style | PostScript name | iPhone | iPad |
|---|---|---|---|
| Light | STHeitiSC-Light | 3.0 | 4.3 |
| Medium | STHeitiSC-Medium | 3.0 | 4.3 |
How to use Heiti SC in code
SwiftUI
Text("Hello, world")
.font(.custom("STHeitiSC-Medium", size: 17, relativeTo: .body))UIKit
let base = UIFont(name: "STHeitiSC-Medium", size: 17)!
label.font = UIFontMetrics(forTextStyle: .body).scaledFont(for: base)
label.adjustsFontForContentSizeCategory = trueObjective-C
label.font = [UIFont fontWithName:@"STHeitiSC-Medium" size:17];CSS for Safari on iPhone and iPad
.headline {
font-family: "Heiti SC", sans-serif;
font-weight: 500;
}Wrapping the font in UIFontMetrics, or passing relativeTo: in SwiftUI, lets Heiti SC grow and shrink with the user’s Dynamic Type setting. Read the custom fonts guide for the full checklist, or the San Francisco guide if you want Apple’s system font instead.
Frequently asked questions
What is the PostScript name of Heiti SC on iOS?
Use “STHeitiSC-Medium” with UIFont(name:size:) or SwiftUI’s Font.custom(_:size:). The family has 2 styles: Light, Medium.
Which iOS version added Heiti SC?
According to the iOS Fonts availability data, Heiti SC first shipped on iPhone in iOS 3.0 and on iPad in iOS 4.3.
Can I use Heiti SC on a website?
Safari on iPhone and iPad can render installed system fonts, so a CSS stack such as font-family: "Heiti SC", sans-serif; will use Heiti SC on Apple devices and fall back elsewhere. Embedding the font files on a server requires a separate web licence from the foundry.