enable
enable copied to clipboard
Enable: low-level drawing and interaction
I am trying to render an image to an array with antialiasing and interpolation turned off using the agg backend. From some experimentation and going through the code, it appears...
Needs to be more easily accessible and documented.
Pre-release --- - [x] Backport PRs that have been merged to ``main`` to the maintenance branch. Use the "need backport ..." tag if there is one (but don't rely 100%...
Currently Kiva does not use Traits except for the font trait and editor - everything else is plain-old-python. It would be nice to remove the dependency on Traits, even if...
Two issues with `Font` class validation: - When given invalid values, the `Font` class raises `RuntimeError`. `ValueError` likely makes more sense. - the validation only checks types, but many of...
Currently a font can only have one face name. This means that if that exact font isn't available, it will fail over to a default font. Other font specification systems...
The `sys_window` color is initialized once when the `enable.color` module is imported, and isn't updated after that. If the dark mode changes, this won't be updated dynamically. This is probably...
The custom `AggFontType` doesn't have an attribute to hold the `weight` of the `Font` it is shadowing. As a result changing to a font with a different weight but everything...
These are integration tests from TraitsUI that use Enable and Kiva. Having them here makes more sense than in TraitsUI in terms of test dependencies.
When rendering with the QPainter backend, or other backends like the PDF backend, scaling is applied to rendered lines, so they get wider (seed the PDF below, which the rectangle...