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
The Options class provides customization and configuration options for rendering SVG files. The main options have been documented in the README, but now we need to ensure they are all implemented.
Also, it would be ideal to allow the options to be defined as a dictionary as a possible style for passing the options, so either as a dictionary or instance of a proper Options class.
If there are parameters that are problematic to deal with, we may defer those until later. But, if they are trivial to address now, then we should knock them all out now.
Name
Purpose
Type
Allowed Values
Example
width
Defines the width of the output image in pixels
Integer
Positive integers (1 and above)
options.width = 300
height
Defines the height of the output image in pixels
Integer
Positive integers (1 and above)
options.height = 200
fit_to
Controls how the SVG should be scaled to fit the output
The
Options
class provides customization and configuration options for rendering SVG files. The main options have been documented in the README, but now we need to ensure they are all implemented.Also, it would be ideal to allow the options to be defined as a dictionary as a possible style for passing the options, so either as a dictionary or instance of a proper
Options
class.If there are parameters that are problematic to deal with, we may defer those until later. But, if they are trivial to address now, then we should knock them all out now.
options.width = 300
options.height = 200
options.fit_to = ("width", 300)
None
options.background = "#FFAABB"
options.dpi = 96.0
systemLanguage
attributeoptions.languages = ["en", "fr", "es"]
options.shape_rendering = "optimizeSpeed"
options.text_rendering = "optimizeLegibility"
options.image_rendering = "optimizeQuality"
True
orFalse
options.skip_system_fonts = True
options.font_size = 14.0
options.font_family = "Arial"
options.font_path = "path/to/font.ttf"
The text was updated successfully, but these errors were encountered: