font size setting

This commit is contained in:
Ian Gulliver
2026-10-20 19:32:27 -07:00
parent f2188c53eb
commit adb9424e66
9 changed files with 95 additions and 4 deletions
+3
View File
@@ -277,10 +277,12 @@ struct DiagramLayout {
let size: CGSize
}
@MainActor
private var labelFont: CTFont {
Fonts.ns(13) as CTFont
}
@MainActor
private var edgeFont: CTFont {
Fonts.ns(12) as CTFont
}
@@ -296,6 +298,7 @@ func textSize(_ text: String, _ font: CTFont) -> CGSize {
return CGSize(width: ceil(width), height: ceil(lineHeight * CGFloat(lines.count)))
}
@MainActor
func layoutFlowchart(_ chart: Flowchart) -> DiagramLayout {
let ids = chart.order
var succ: [String: [String]] = [:]