fgl_report_configureSVGDevice
Configure the SVG output.
Syntax
fgl_report_configureSVGDevice(
antialiasFonts BOOLEAN,
antialiasShapes BOOLEAN,
embedFonts BOOLEAN,
charsetToEmbed STRING )
- antialiasFonts - Configures whether fonts should be rendered using
antialiasing. The default value is FALSE. Note: To specify a BOOLEAN value, enter TRUE or FALSE without quotation marks.
- antialiasShapes - Configures whether shapes should be rendered using antialiasing. The default value is FALSE.
- embedFonts - Controls whether fonts are embedded within the document. The default value is TRUE.
- charsetToEmbed - SVG offers the possibility to embed fonts within the
document. Documents with embedded fonts are slightly larger, but they offer the advantage of exact
reproduction. Normally one would embed exactly those characters that were used throughout the
document, but that would require reading the entire document before creating any SVG output. This
attribute provides a solution that does not compromise streaming. The characters in the specified
character set are embedded, not requiring all of them to have been used. Note that the character
sets are neither restricted to 255 characters, nor is there any restriction on which unicode
characters are used. Furthermore, an entry in the character set can be a sequence of unicode
characters, thus allowing for ligatures. Valid values are:
- DEFAULT - embeds all characters from the code pages iso-8859-1 through iso-8859-10 (about 600 characters).
- ISO-8859-15 - embeds all characters from the named code page (about 200 characters).
- ALL - embeds all characters available in the selected fonts. This option should only be used when Asian characters are needed, since the size of the glyph definitions will significantly grow the document size.
Usage
Function to configure the SVG output.
This function is applicable when SVG output has been selected by a call to the function fgl_report_selectDevice
. All arguments to this function are optional; pass a
value of NULL if you don't want to set a value. To write the SVG document to a file, use the general function fgl_report_setOutputFileName
and fgl_report_selectPreview
.
For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.