SwiftUI ⟩ controls ⟩ Text ⟩ Font ⟩ custom font
let avenir17 = Font.custom("AvenirNextCondensed-Regular", size:17.0) Text("Hello").font(avenir17)
👉 工具:iFont (iPad app)
在這個 app 裡面有可以直接套用的程式碼。
SwiftUI ⟩
Font ⟩ .custom(_:size:)
Text input and output ⟩ Applying custom fonts to text
ChatGPT ⟩ SwiftUI 指定字體
iFont
Last updated 7 months ago
Was this helpful?