Repository navigation
text-freetype2: Default to the bundled JetBrainsMono Nerd Font - #1016
Conversation
|
Local Tier 2 (Docker harness) on GREEN 1856644:
RED 94be809 on the same harness: both font tests fail ( |
|
Added |
Pull request was closed
df0be84 to
8c71aa5
Compare
…ng Qt (#1046) The Fast Gate's "Build Touched Linux Targets" step configured the tree without Qt, but plugins/frontend-tools is a core module that calls find_package(Qt6 REQUIRED Widgets). So every PR that touched a plugin failed at configure (#1031, #1037, #1016). Install the distro Qt packages for that step so configure passes. Only the touched non-Qt targets are built, and the Qt build and tests stay in the path-scoped Qt lane.
Pull request was closed
…ix) (obs-rust#1045) * test: Qt plugins opt out before requiring Qt (RED) The Fast Gate (obs-rust#1013) configures the touched Linux targets with no Qt. frontend-tools calls find_package(Qt6 REQUIRED) unconditionally, so that configure fails on every PR that builds C (obs-rust#1016, obs-rust#1031, obs-rust#1037). * frontend-tools: Skip the plugin when the frontend is off (GREEN) frontend-tools is frontend UI and requires Qt. Return before find_package(Qt6) when ENABLE_FRONTEND is OFF, as the AJA, DeckLink, VST and websocket plugins do with their own options, so the Fast Gate's Qt-free configure succeeds.
8c71aa5 to
f595f58
Compare
…(RED, Refs #1012) Bundles JetBrainsMono Nerd Font Regular, Bold, Italic and Bold Italic (Nerd Fonts v3.4.0, SIL OFL 1.1, OFL.txt alongside) in the plugin's data/fonts. test_text_freetype2_bundled_font expects the default face to be JetBrainsMono Nerd Font and each style to resolve to its bundled file without the font installed; test_text_freetype2_platform expects the new default. Fails: load_bundled_fonts is a stub and the default is still Sans Serif.
…1012) The default face is JetBrainsMono Nerd Font on every OS (FT2_DEFAULT_FACE) instead of Arial, Helvetica or Sans Serif. load_bundled_fonts makes the plugin's data/fonts findable without installing them: fontconfig's FcConfigAppFontAddDir on Linux, and on Windows and macOS each bundled face joins the plugin's font list. test-appimage.sh checks the AppImage ships the four styles and OFL.txt.
f595f58 to
95e4a36
Compare
|
With #1047 merged, the AppImage now builds. The new packaging check from this PR fails on Arch and Debian: So the fonts aren't in the AppImage. That's the check doing its job, and it's a real GREEN gap. What I've ruled out:
Worth checking next: whether |
…ata (Refs #1012) Plugin data sits at $PACKAGE_DATA/obs-modules/core/<plugin>/, not obs-plugins/<plugin>/. The check looked in the wrong place and reported all five files missing although the AppImage ships them (usr/share/obs-studio-rust/obs-modules/core/text-freetype2/fonts/).
|
The AppImage distro tests flagged the bundled fonts as missing. That was my check's path ( The distro tests' other failure, |
Fixes #1012 (maintainer request).
The Text (FreeType 2) source now defaults to JetBrainsMono Nerd Font on every OS (Omarchy's terminal and bar font), bundled with the plugin, so it works without the font installed. Before: Arial on Windows, Helvetica on macOS, Sans Serif on Linux (#936). Existing sources keep their saved font.
plugins/text-freetype2/data/fonts/: Regular, Bold, Italic and Bold Italic from the pinned Nerd Fonts v3.4.0 release (JetBrainsMono.zip, sha25676f05ff3ace48a464a6ca57977998784ff7bdbb65a6d915d7e401cd3927c493c), about 9.9 MB, plusOFL.txt. It's SIL Open Font License 1.1, so redistribution with software is allowed with the license alongside.FT2_DEFAULT_FACEintext-freetype2-platform.h, returned by all three OS files.load_bundled_fonts(dir), called at plugin load withobs_module_file("fonts"). On Linux it's fontconfig'sFcConfigAppFontAddDir; on Windows and macOS every face of every.ttf/.otfin the folder joins the plugin's font list (build_font_path_info).test-appimage.shfails when the AppImage lacks any of the four styles orOFL.txtunderobs-plugins/text-freetype2/fonts/.Tests:
test_text_freetype2_bundled_font(Linux, the realfind-font-unix.c+ fontconfig): the default face isJetBrainsMono Nerd Font, and Regular, Bold, Italic and Bold Italic each resolve to their bundled file on a machine without the font (the Tier 2 container).test_text_freetype2_platform(text-freetype2: Move the platform defaults behind text-freetype2-platform-<os>.c #936) is updated to expect the new default. Its existing"Sans Serif"assertion pinned the old per-OS default; this is a deliberate default change, not a port, so the expectation changes with it.RED 94be809, local Tier 2 OFF build: both tests fail,
"Sans Serif" != "JetBrainsMono Nerd Font"and the path check2 != 0(resolved outside the bundled folder; stub registers nothing).GREEN 1856644, local Tier 2 OFF build: 256/256 passed, including both. ON build running locally; result in a comment. clang-format and gersemi pass.
PR CI defers Tier 2 to master pushes (#993), so the local runs above are this PR's Tier 2 evidence. The Windows and macOS code path compiles only there (macOS/Windows jobs).