Repository navigation
text-freetype2: Move the platform defaults behind text-freetype2-platform-<os>.c - #936
Merged
Merged
Conversation
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 16, 2026
zackees
force-pushed
the
facade/863-text-freetype2
branch
from
October 16, 2026 02:21
8d580ee to
30ae742
Compare
This was referenced Oct 16, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 16, 2026
zackees
force-pushed
the
facade/863-text-freetype2
branch
from
October 16, 2026 05:20
30ae742 to
832b16e
Compare
zackees
enabled auto-merge
October 16, 2026 05:20
…form-<os>.c The source's Windows-only OBS_SOURCE_DEPRECATED flag and the per-OS default face (Arial / Helvetica / Sans Serif) move from #ifdefs in text-freetype2.c into ft2_platform_source_flags() and ft2_platform_default_face(), one dependency-free file per OS picked by CMake. A static initializer cannot call a function, so obs_module_load ORs the flags in before registering the source: the registered flags are unchanged. text-freetype2.c has no platform conditionals left; the Linux/BSD values. Refs #863
zackees
force-pushed
the
facade/863-text-freetype2
branch
from
October 16, 2026 06:08
832b16e to
b74301a
Compare
Member
Author
|
Rebased onto master after #981 merged: replaced head |
This was referenced Oct 16, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #863 (part of #847).
The 3 platform conditionals in
plugins/text-freetype2/text-freetype2.cmove behind two functions declared intext-freetype2-platform.h, one dependency-free implementation per OS that CMake picks like thefind-font-*files:ft2_platform_source_flags()ft2_platform_default_face()text-freetype2-platform-windows.cOBS_SOURCE_DEPRECATED(Windows has the GDI+ text source)Arialtext-freetype2-platform-cocoa.cHelveticatext-freetype2-platform-unix.cSans SerifA static initializer cannot call a function, so
obs_module_loadORs the flags intofreetype2_source_info_v2before registering it: the registered flags are unchanged. Not placed infind-font-*(as #863 suggested) because those pull in fontconfig/Cocoa/GDI, and these are pure constants worth unit-testing alone.text-freetype2.chas no platform conditionals left;ci/platform-ifdef-baseline.jsondrops it.test_text_freetype2_platformpins the Linux/BSD values (built from that file alone).tests.d/test_text_aa_file.cmake, which compiles the plugin's sources into its test, also buildstext-freetype2-platform-unix.c(build wiring only, the test code is unchanged).Local: ratchet ok,
./lintok; Tier 2 OFF:test_text_aa_fileandtest_text_freetype2_platformpass. That run hittest_async_delay_audio(the real-time audio flake, #838), so the harness stopped before the ON build. PR CI runs both;ci-fullis set so the Windows and macOS plugin builds compile the other two files.