fgl_report_configureSVGDevice

Configure the SVG output.

Syntax

fgl_report_configureSVGDevice(
  antialiasFonts BOOLEAN,
  antialiasShapes BOOLEAN,
  embedFonts BOOLEAN,
  charsetToEmbed STRING )
  1. antialiasFonts - Configures whether fonts should be rendered using antialiasing. The default value is false.
  2. antialiasShapes - Configures whether shapes should be rendered using antialiasing. The default value is false.
  3. embedFonts - Controls whether fonts are embedded within the document. The default value is true.
  4. 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 (indicated by passing a null value). If the SVG document should be written to a file, the general function fgl_report_setOutputFileName and fgl_report_selectPreview are available for this purpose.

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.