Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

Fix #33 - stop registering CeolKit fonts - #34

Merged
sbeitzel merged 3 commits into
mainfrom
fix/33_font_registration
Sep 15, 2026
Merged

sbeitzel merged 3 commits into
mainfrom
fix/33_font_registration

Conversation

@sbeitzel

Copy link
Copy Markdown
Owner

Closes #33

Summary

The preview renders with CeolKit's default TextRendering.outlines. That writes every glyph into the SVG as a <path>, so SVGKit never looks up Bravura or Libertinus Serif by name. Registering the fonts with the process has no effect.

  • Remove CeolKitFonts.register() and its outdated comment from ScoreEditApp.init(), and remove the CeolKitSVGRenderer import there, which nothing else used.
  • Remove the register call from the ScorePreviewView #Preview.
  • Drop libertinusSerifIsAvailableAfterRegistration, which only existed because the app registered the fonts at startup. Rename the remaining suite FontRegistrationTests → PreviewFontIndependenceTests. Its two tests (previewOutputCarriesNoFontDependency, renderedPageRasterizesToDrawnGeometry) are unchanged.

This branch also includes two earlier commits from local main that hadn't been pushed yet:

  • 0928e16 Pull in some CeolKit fixes and some logging fixes.
  • 9585ff7 Tidy up dependencies in build

Test plan

  • tuist generate and xcodebuild -workspace ScoreEdit.xcworkspace -scheme ScoreEdit test: 88 tests in 10 suites passed. That's one fewer test than before (the removed registration test), with the same number of suites.

🤖 Generated with Claude Code

sbeitzel and others added 3 commits September 15, 2026 12:04
The preview renders with CeolKit's default TextRendering.outlines, which
writes glyphs into the SVG as paths, so SVGKit never resolves a font by
family name and process font registration has no effect.

Remove the CeolKitFonts.register() calls from app startup and the
ScorePreviewView preview, and drop the test that only checked the
registration. The remaining tests, which guard the preview's font
independence, move to PreviewFontIndependenceTests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sbeitzel
sbeitzel merged commit 17f5600 into main Sep 15, 2026
1 check passed
@sbeitzel
sbeitzel deleted the fix/33_font_registration branch September 15, 2026 19:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop registering CeolKit fonts now that the preview renders outlines

1 participant