-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract the FemtoVG renderer into a separate crate
This will be needed for a future experiment. Unlike the Skia renderer, which operates on raw window handles, the FemtoVG renderer exposes a different interface where it assumes that the caller takes care of the OpenGL context state. This means more boilerplate remains in the winit backend, including the glutin dependency. The upside is that it will allow using the FemtoVG renderer in environments without glutin. In order to work in an environment without fontconfig or memmap, the crate has two features: - fontconfig (set when we anticipate fontconfig to be available at run-time and libloading being available at compile time). - diskfonts (set when we want to be able to load fonts from disk) The winit crate enables fontconfig on "Linux" and diskfonts on !wasm.
- Loading branch information
Showing
18 changed files
with
670 additions
and
479 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.