Skip to content

servoshell (FreeBSD): Fix build failure and add CJK fonts for egui#44514

Merged
jdm merged 1 commit into
servo:mainfrom
nortti0:freebsd-servoshell-gui-fonts
Apr 27, 2026
Merged

servoshell (FreeBSD): Fix build failure and add CJK fonts for egui#44514
jdm merged 1 commit into
servo:mainfrom
nortti0:freebsd-servoshell-gui-fonts

Conversation

@nortti0

@nortti0 nortti0 commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

Build on FreeBSD failed since no implementation of configure_fonts() in ports/servoshell/desktop/gui.rs was enabled.

Add the font locations on FreeBSD to the Linux implementation, and allow using it also when target_os = "freebsd".

Testing: Viewed the same test file as in 2124599 (servoshell (Linux): Add CJK fonts for egui (#44138), 2026-04-13) with servoshell on FreeBSD.

Before: Servoshell fails to build
After: Tab title displays correctly

Build on FreeBSD failed since no implementation of configure_fonts() in
ports/servoshell/desktop/gui.rs was enabled.

Add the font locations on FreeBSD to the Linux implementation, and allow
using it also when target_os = "freebsd".

Testing: Viewed the same test file as in 2124599 (servoshell
(Linux): Add CJK fonts for egui (servo#44138), 2026-04-13) with servoshell on
FreeBSD.

Before: Servoshell fails to build
After: Tab title displays correctly

Signed-off-by: Juhani Krekelä <juhani@xn--krekel-gua.fi>
@nortti0 nortti0 requested a review from atbrakhi as a code owner April 26, 2026 17:17
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 26, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 27, 2026
@jdm jdm added this pull request to the merge queue Apr 27, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 27, 2026
@yezhizhen

Copy link
Copy Markdown
Member

Didn't realise freebsd has a separate target_os env

Merged via the queue into servo:main with commit 333cedf Apr 27, 2026
33 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 27, 2026
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.

4 participants