Skip to content

feat(fonts): bundle JetBrains Mono in the default font library (@since 1.7.0)#132

Open
DemchaAV wants to merge 1 commit into
developfrom
feat/font-jetbrains-mono
Open

feat(fonts): bundle JetBrains Mono in the default font library (@since 1.7.0)#132
DemchaAV wants to merge 1 commit into
developfrom
feat/font-jetbrains-mono

Conversation

@DemchaAV
Copy link
Copy Markdown
Owner

@DemchaAV DemchaAV commented Jun 4, 2026

Summary

Adds JetBrains Mono to the built-in font catalog — additive, @since 1.7.0.

  • FontName.JETBRAINS_MONO registered in DefaultFonts; Regular / Bold / Italic / Bold-Italic faces bundled under fonts/google/jetbrainsmono/ (OFL-1.1, license included).
  • Usable via any DocumentTextStyle.fontName(FontName.JETBRAINS_MONO); the font showcase lists it automatically.
  • Standard JetBrains Mono (not the no-ligature NL fork) — the PDF renderer applies no OpenType shaping, so base glyphs render either way; bundling the standard family keeps the recognizable name.

Tests

./mvnw verify -pl . green — 1111 tests. FontLibraryIntegrationTest now asserts the family loads (PdfFont + WordFont); the fonts/available_fonts_preview layout snapshot was regenerated to include the new section. Visual check: all four faces render monospaced in the showcase.

…1.7.0)

- Adds FontName.JETBRAINS_MONO and registers it in DefaultFonts, with the
  Regular / Bold / Italic / Bold-Italic faces bundled under
  fonts/google/jetbrainsmono/ (OFL-1.1).
- FontLibraryIntegrationTest asserts the family loads (PdfFont + WordFont);
  the font showcase picks it up automatically; the available-fonts layout
  snapshot is regenerated to include the new JetBrains Mono section.
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.

1 participant