Monotype's Spark Engine
Introduction to Monotype’s Spark engine
The Spark engine is Monotype’s lightweight font engine, with a focus on devices with a limited feature set.
This is a powerful engine with many capabilities able to provide high quality font rasterization and shaping.
However, to support resource constrained devices, certain restrictions have been placed on the font forming.
For more details regarding the types of restrictions in place, please contact Monotype directly.
Integrating the Spark engine
Copy the source package provided by Monotype for the Spark engine to the following location,
The final folder’s substructure should be as follows,
Additional content may differ depending on the package received from Monotype.
By completing these steps, the Spark engine has now been integrated into CGI Studio.
Configuring the Spark engine
Configure the following entries within CMake as listed below,
However, this flag also creates instances of the engine, including caches. This will in turn lead to more memory usage. After making the stipulated updates, click the Generate button to complete the process.
The version of the Spark engine provided by Monotype must contain the MS_STORE_SOURCE_INDEX feature.
If this feature is not present, some text features may not work as intended, such as truncation.
Which versions of the Spark engine support this feature are listed in the “Versions” text file contained in the following file path: cgi_studio_3psw\src\Monotype\Versions.txt
By integrating the Spark engine into CGI Studio,
Updating the Spark engine configuration files
The following configuration flag must be present within the shaper’s configuration file (msconfig.h),
#define MS_STORE_SOURCE_INDEX
If this flag is not present, a warning message will be shown requesting that this flag be set.
General limitations
As a result of the Spark engine containing a minimal set of features, many optional features are not available. Some of these features include,
Another limitation arises when importing a Photoshop files using the Smart Importer or Import from Photoshop option. Due to a difference in how text positioning is calculated within the Spark engine and Photoshop, the positioning of the text within CGI Studio may differ from the original Photoshop file.