Skip to content

Fix font loading issue on macOS - #2

Merged
Kromtec merged 1 commit into
Kromtec:mainfrom
logkirk:main
Mar 9, 2026
Merged

Fix font loading issue on macOS#2
Kromtec merged 1 commit into
Kromtec:mainfrom
logkirk:main

Conversation

@logkirk

@logkirk logkirk commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

This fixes an issue preventing the app from building on macOS. It was trying to load the font Consolas, which is not shipped with macOS. I changed the font loading logic to differentiate between macOS and Linux. On macOS, PT Mono will be loaded instead. Should close #1.

All tests passed:

❯ dotnet test
Restore complete (0.6s)
  Vivarium net10.0 succeeded (2.3s) → src/Simulation/bin/Debug/net10.0/Vivarium.dll
  Vivarium.Tests net10.0 succeeded (0.3s) → src/Tests/bin/Debug/net10.0/Vivarium.Tests.dll
  Vivarium.Tests test net10.0 succeeded (0.6s)

Test summary: total: 212, failed: 0, succeeded: 212, skipped: 0, duration: 0.6s
Build succeeded in 4.0s

Font screenshots

pt_mono_1 pt_mono_2 pt_mono_3 pt_mono_4

@Kromtec
Kromtec merged commit f5bcbc3 into Kromtec:main Mar 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS support?

2 participants