Skip to content

text-freetype2: Bundle JetBrainsMono Nerd Font and make it the default face on every OS #1012

Closed

Description

@zackees

Maintainer request: the Text (FreeType 2) source defaults to JetBrainsMono Nerd Font everywhere, bundled with the plugin so it never depends on installed fonts.

Today the default face is per OS (#936): Arial on Windows, Helvetica on macOS, Sans Serif on Linux.

Plan:

  • plugins/text-freetype2/data/fonts/: JetBrainsMono Nerd Font Regular, Bold, Italic and Bold Italic from the pinned Nerd Fonts v3.4.0 release (JetBrainsMono.zip, sha256 76f05ff3…c493c), plus its OFL.txt. The font is under the SIL Open Font License 1.1 (redistribution with software allowed, license text shipped alongside).
  • ft2_platform_default_face() returns "JetBrainsMono Nerd Font" on every OS.
  • load_bundled_fonts(dir) at plugin load: FcConfigAppFontAddDir on Linux; on Windows and macOS each bundled face joins the plugin's font list (build_font_path_info).
  • Tests: a cmocka test that the face resolves to the bundled file on a machine without it installed (the Tier 2 container), and test_text_freetype2_platform updated to the new default.

Existing sources keep their saved font; only new sources and missing-face fallbacks change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimedenhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions