You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SourceEditorConfiguration.Appearance.font configures the editor text font, but the line-number gutter replaces it with font.rulerFont in didSetOnController. There is currently no public API for choosing the exact font and point size used by line numbers.
A use case is an editor configured with Monaco 12 pt that should also render its line numbers in Monaco 12 pt. At present, this requires maintaining a fork and changing:
Making GutterView.font public. Keeping the option in Appearance seems preferable because it avoids exposing the view implementation.
Always using Appearance.font for the gutter. This would change the existing default appearance, so an optional override is safer.
Additional Context
This request is different from #58 and #157: those issues addressed the default ruler font appearance and proportional scaling. This request is specifically about allowing API consumers to override that default.
I'd like to work on this. I'll submit a small backward-compatible PR adding an optional lineNumberFont configuration while preserving the current ruler font as the default, with tests for both paths.
Activity
gerardp commentedon Aug 31, 2026
I'd like to work on this. I'll submit a small backward-compatible PR adding an optional lineNumberFont configuration while preserving the current ruler font as the default, with tests for both paths.