You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-infrastructureB-feature-trackingThis issue tracks a particular high-level featureB-high-valueRepresents work that would have a big impactE-very-complexVery difficult. Do not attempt without significant relevant experience and motivation.P-windowsAny version of Windows capable of running Servo
We'd need to make Hyper and Servo SSL-backend-agnostic then, which sounds like more work.
Besides, the handling of cookies depends on libcrypto. If we get openssl on msys2 that should be enough, otherwise it's not too hard to just build it (we do this for Android already)
Native windows methods sound good. Even better if we can wrap it in an API that's like fontconfig or something.
I would like to volunteer fontconfig-rs for cross-platform font location. It doesn't technically have OS X or Windows support yet but it's really just a matter of having it pass a custom config to fontconfig that tells it where the fonts live on those platforms, though fontconfig itself would have to be built for Windows. GIMP is already doing it.
I'm considering having fontconfig-rs pull in the source for fontconfig and build it on Windows platforms so the user doesn't have to bother fetching it.
@retep998 Has winapi-rs touched those font APIs yet?
For fontconfig, is what's needed just font selection, which is then passed to Skia for shaping and rasterization? Win32 fontconfig already exists as part of the win32 gtk+ port as was mentioned above, so it may be possible to just use that along with fontconfig-rs. Bundling all these DLLs (openssl, fontconfig, etc.) together in a "servo-win32-support" package would probably be helpful so that people don't have to download everything individually.
I can help with the GL texture sharing cross context/process stuff.
Note that I think that it's acceptable to have an initial Servo-on-Windows have dependencies such as: requires msys2/mingw64 build env; requires clang-cl (or real msvc) to build some modules; etc. We can then remove them over time but at least we have something that can be hacked on.
Writing the code is the super easy part of all this. I will happily write code all day long. It's fighting with build system cruft that's the painful bit..
Note that we'll need some kind of ipc-channel port now.
Windows' named pipes? They aren't very secure (if you know the name of the pipe, you can read stuff off of it, essentially) but they're tried, true, and fast.
My current plan is to get things compiling, stubbing out as necessary along
the way even if the final result doesn't work. Then it will be much easier
to parallelize getting things to work, since people won't be fighting the
build the entire time. I hope to have things compiling in the next day or
two, then a day of submitting PRs and replicating the work from scratch.
On Sep 7, 2015 5:08 PM, "Manish Goregaokar" [email protected]
wrote:
Someone can always go write a Rust library around DirectWrite, especially since there are raw bindings to it.
FWIW, I really do not like the way Chrome (at least) looks with DirectWrite turned on. Maybe that's Chrome's fault and not DirectWrite, but I prefer Firefox's font rendering on Windows by a lot. Ubuntu's default font rendering settings surpass it by a lot, though.
A-infrastructureB-feature-trackingThis issue tracks a particular high-level featureB-high-valueRepresents work that would have a big impactE-very-complexVery difficult. Do not attempt without significant relevant experience and motivation.P-windowsAny version of Windows capable of running Servo
Activity
Ms2ger commentedon Jun 5, 2014
Windows might not be so happy about the 80 -L arguments we pass to rustc.
Manishearth commentedon Feb 10, 2015
Going to use this as a tracking issue
Manishearth commentedon Feb 10, 2015
Status
Native bindings:
Bindings that need to be written:
OpenGL stuff: I don't know what the status on this is.
Build system: Since Rust only supports MinGW, we'll stick to that.
machis not cygpath friendlyCI: To be looked into later. Much later. Appveyor may work for deps but it's hard getting the env set u
Other blockers:
In the longer term we'd need to add VS support to Rust, which mainly consists of getting
librustc_backto support other linkers.Manishearth commentedon Feb 10, 2015
cc @klutzy @retep998
Manishearth commentedon Feb 10, 2015
Makefile notes (servo/rust-harfbuzz#36, servo/mozjs#27):
Check for Windows (
ifeq (windows,$(findstring windows,$(TARGET)))), then do the following:OUT_DIR:=$(shell cygpath "$(OUT_DIR)")ifeq (cc,$(CC)), setCC = gcc,CPP = gcc -Eretep998 commentedon Feb 10, 2015
On Windows we can abandon OpenSSL and use WinHTTP which is a native system library. It is what Cargo uses on Windows. But since MSYS2 can provide us with an OpenSSL package, it isn't too much of a hassle.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa382925%28v=vs.85%29.aspx
As for font loading, use the native Windows methods?
https://msdn.microsoft.com/en-us/library/dd162620%28v=vs.85%29.aspx
https://msdn.microsoft.com/en-us/library/dd183499%28v=vs.85%29.aspx
Manishearth commentedon Feb 10, 2015
We'd need to make Hyper and Servo SSL-backend-agnostic then, which sounds like more work.
Besides, the handling of cookies depends on libcrypto. If we get openssl on msys2 that should be enough, otherwise it's not too hard to just build it (we do this for Android already)
Native windows methods sound good. Even better if we can wrap it in an API that's like fontconfig or something.
tomaka commentedon Feb 10, 2015
The Windows implementation of glutin is actually the one that I trust the most. I think you can check this box.
abonander commentedon Feb 11, 2015
I would like to volunteer fontconfig-rs for cross-platform font location. It doesn't technically have OS X or Windows support yet but it's really just a matter of having it pass a custom config to fontconfig that tells it where the fonts live on those platforms, though fontconfig itself would have to be built for Windows. GIMP is already doing it.
I'm considering having
fontconfig-rspull in the source forfontconfigand build it on Windows platforms so the user doesn't have to bother fetching it.@retep998 Has
winapi-rstouched those font APIs yet?retep998 commentedon Feb 11, 2015
@cybergeek94 No but I can easily add any methods needed.
vvuk commentedon Feb 11, 2015
For fontconfig, is what's needed just font selection, which is then passed to Skia for shaping and rasterization? Win32 fontconfig already exists as part of the win32 gtk+ port as was mentioned above, so it may be possible to just use that along with fontconfig-rs. Bundling all these DLLs (openssl, fontconfig, etc.) together in a "servo-win32-support" package would probably be helpful so that people don't have to download everything individually.
I can help with the GL texture sharing cross context/process stuff.
36 remaining items
vvuk commentedon Aug 13, 2015
Note that I think that it's acceptable to have an initial Servo-on-Windows have dependencies such as: requires msys2/mingw64 build env; requires clang-cl (or real msvc) to build some modules; etc. We can then remove them over time but at least we have something that can be hacked on.
pcwalton commentedon Aug 13, 2015
Note that we'll need some kind of
ipc-channelport now.vvuk commentedon Aug 13, 2015
Writing the code is the super easy part of all this. I will happily write code all day long. It's fighting with build system cruft that's the painful bit..
waddlesplash commentedon Aug 13, 2015
Windows' named pipes? They aren't very secure (if you know the name of the pipe, you can read stuff off of it, essentially) but they're tried, true, and fast.
jasonwilliams commentedon Sep 7, 2015
is there any low-hanging-fruit i can help with?
Manishearth commentedon Sep 7, 2015
Not that I know of, though @vvuk might have some tasks he can delegate
retep998 commentedon Sep 8, 2015
Someone can always go write a Rust library around DirectWrite, especially since there are raw bindings to it.
vvuk commentedon Sep 8, 2015
My current plan is to get things compiling, stubbing out as necessary along
the way even if the final result doesn't work. Then it will be much easier
to parallelize getting things to work, since people won't be fighting the
build the entire time. I hope to have things compiling in the next day or
two, then a day of submitting PRs and replicating the work from scratch.
On Sep 7, 2015 5:08 PM, "Manish Goregaokar" [email protected]
wrote:
waddlesplash commentedon Sep 8, 2015
FWIW, I really do not like the way Chrome (at least) looks with DirectWrite turned on. Maybe that's Chrome's fault and not DirectWrite, but I prefer Firefox's font rendering on Windows by a lot. Ubuntu's default font rendering settings surpass it by a lot, though.
retep998 commentedon Sep 8, 2015
Firefox also uses DirectWrite on Windows. There's a ton of tweaking you can do to adjust how text is rendered.
Use OS-agnostic filesystem paths in Python
Auto merge of #7568 - frewsxcv:os-agnostic-paths, r=jdm
waddlesplash commentedon Oct 6, 2015
#7878.
larsbergstrom commentedon Jan 27, 2016
Landed in #9385!