DS.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / FontWriter Class / CompactFonts Method
The list of source font subsets.
OUT: an array of indices mapping source font indices to merged font indices. 0 indicates non-merged fonts.
OUT: an array containing binary data of merged fonts. mergedFonts[0] is always a null reference (Nothing in Visual Basic).
Font serialization flags.

In This Topic
CompactFonts Method
In This Topic
Merges matching TrueType font subsets and serializes the merged subsets to byte arrays.
Syntax
'Declaration
 
Public Function CompactFonts( _
   ByVal fonts As System.Collections.Generic.List(Of Font), _
   ByRef indices() As System.Integer, _
   ByRef mergedFonts() As System.Byte, _
   ByVal subsetFlags As FontSubsetFlags _
) As System.Boolean
 

Parameters

fonts
The list of source font subsets.
indices
OUT: an array of indices mapping source font indices to merged font indices. 0 indicates non-merged fonts.
mergedFonts
OUT: an array containing binary data of merged fonts. mergedFonts[0] is always a null reference (Nothing in Visual Basic).
subsetFlags
Font serialization flags.

Return Value

true if some fonts were merged, false otherwise.
See Also