Skip to content


Browse files Browse the repository at this point in the history
Fix font metrics and switch to windows subsystem
Currently fonts are using incorrect metrics and the app uses the console
subsystem. This patch adds aliases so that font metrics are found and
instructs the linker to use the windows subsystem.
  • Loading branch information
metajack committed Jul 26, 2016
1 parent d6266c7 commit ca8b375
Show file tree
Hide file tree
Showing 2 changed files with 737 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/servo/
Expand Up @@ -236,6 +236,9 @@ def build(self, target=None, release=False, dev=False, jobs=None,

cargo_binary = "cargo" + BIN_SUFFIX

if sys.platform == "win32" or sys.platform == "msys":
env["RUSTFLAGS"] = "-C link-args=-Wl,--subsystem,windows"

status = call(
[cargo_binary, "build"] + opts,
env=env, cwd=self.servo_crate(), verbose=verbose)
Expand Down

0 comments on commit ca8b375

Please sign in to comment.