Skip to content

Swarkin/egui-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

egui-svg

a collection of crates that allow you to export a static, noninteractive svg from the output of egui.

egui egui-svg
egui egui-svg

notes

  • when adding new features, most are trivial to implement using native svg features, some require converting elements into paths and a small portion arent possible at all.
  • your svg renderer, for example your browser, must support custom fonts.

known issues

  • text support is very primitive
  • rounding cannot be different per corner
  • textures arent supported
    • images arent supported
    • textured meshes arent supported
  • clipping is not supported
  • some elements are half a pixel off
  • the default fonts i included are pretty big (~400kb) and its currently not possible to switch them out dynamically

example usage (html file)

  • run the simple example
  • paste the resulting egui.svg into the included html file's body
  • open the html file in your browser

About

export a svg file from egui output

Resources

License

Stars

Watchers

Forks

Releases

No releases published