Heiti TC 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 TC |
| Default PostScript name | STHeitiTC-Medium |
PostScript names for every Heiti TC 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 | STHeitiTC-Light | 3.0 | 4.3 |
| Medium | STHeitiTC-Medium | 3.0 | 4.3 |
How to use Heiti TC in code
SwiftUI
Text("Hello, world")
.font(.custom("STHeitiTC-Medium", size: 17, relativeTo: .body))UIKit
let base = UIFont(name: "STHeitiTC-Medium", size: 17)!
label.font = UIFontMetrics(forTextStyle: .body).scaledFont(for: base)
label.adjustsFontForContentSizeCategory = trueObjective-C
label.font = [UIFont fontWithName:@"STHeitiTC-Medium" size:17];CSS for Safari on iPhone and iPad
.headline {
font-family: "Heiti TC", sans-serif;
font-weight: 500;
}Wrapping the font in UIFontMetrics, or passing relativeTo: in SwiftUI, lets Heiti TC 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 TC on iOS?
Use “STHeitiTC-Medium” with UIFont(name:size:) or SwiftUI’s Font.custom(_:size:). The family has 2 styles: Light, Medium.
Which iOS version added Heiti TC?
According to the iOS Fonts availability data, Heiti TC first shipped on iPhone in iOS 3.0 and on iPad in iOS 4.3.
Can I use Heiti TC on a website?
Safari on iPhone and iPad can render installed system fonts, so a CSS stack such as font-family: "Heiti TC", sans-serif; will use Heiti TC on Apple devices and fall back elsewhere. Embedding the font files on a server requires a separate web licence from the foundry.