restores Helder in all its glory

This commit is contained in:
2026-09-28 11:34:49 +02:00
parent c2b38b853c
commit 1d29d0952d
280 changed files with 29205 additions and 7 deletions
@@ -0,0 +1,26 @@
import AppKit
import HelderUI
import Testing
@Suite struct FontRegistryTests {
@Test func bundledPlexFacesRegister() {
let names = FontRegistry.registerBundledFonts()
for face in PlexFace.allCases {
#expect(names.contains(face.rawValue), "missing \(face.rawValue)")
#expect(NSFont(name: face.rawValue, size: 12) != nil)
}
}
@Test func typeRolesResolveToPlex() {
FontRegistry.registerBundledFonts()
#expect(Typography.code.nsFont.fontName == "IBMPlexMono-Regular")
#expect(Typography.row.nsFont.fontName == "IBMPlexSans-Regular")
}
}
@Suite struct CommitLabelTests {
@Test func theCommitLabelIsPlexSansSemiBold() {
FontRegistry.registerBundledFonts()
#expect(Typography.commitButton.nsFont.fontName == "IBMPlexSans-SemiBold")
}
}