SvgRenderOptions Class
The options of SvgSceneRenderer.
public sealed class SvgRenderOptionsConstructors
| Name | Description |
|---|---|
| SvgRenderOptions() |
SvgRenderOptions()
SvgRenderOptions.cspublic SvgRenderOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| EmbedFonts | Gets or sets a value that indicates whether the fonts of the scene (Scene.Fonts) are embedded in the SVG, as @font-face rules, so every viewer draws the texts with the fonts that measured them. Only the faces that draw a character of a text are embedded, whole; the faces of font collections (.ttc, .otc) are not embedded. The default is false. |
| IdPrefix | Gets or sets the prefix of the identifiers of the gradients and clip paths. Give each drawing of an HTML page its own prefix, so the identifiers do not collide. The default is scene. |
| IncludeNamespace | Gets or sets a value that indicates whether the xmlns attribute is written. Turn it off for SVG inlined in HTML. The default is true. |
| Precision | Gets or sets the number of decimals of the coordinates, from 0 to 15. The default is 2. |
EmbedFonts
SvgRenderOptions.csGets or sets a value that indicates whether the fonts of the scene (Scene.Fonts) are embedded in the SVG, as @font-face rules, so every viewer draws the texts with the fonts that measured them. Only the faces that draw a character of a text are embedded, whole; the faces of font collections (.ttc, .otc) are not embedded. The default is false.
public bool EmbedFonts { get; set; }Property value
IdPrefix
SvgRenderOptions.csIncludeNamespace
SvgRenderOptions.csPrecision
SvgRenderOptions.csGets or sets the number of decimals of the coordinates, from 0 to 15. The default is 2.
public int Precision { get; set; }