[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.CompactFonts

CompactFonts Method

CompactFonts(List<Font>, out int[], out byte[][], FontSubsetFlags)

Merges matching TrueType font subsets and serializes the merged subsets to byte arrays.

Declaration
public bool CompactFonts(List<Font> fonts, out int[] indices, out byte[][] mergedFonts, FontSubsetFlags subsetFlags)
Public Function CompactFonts(fonts As List(Of Font), ByRef indices As Integer(), ByRef mergedFonts As Byte()(), subsetFlags As FontSubsetFlags) As Boolean
Parameters
Type Name Description
List<Font> fonts

The list of source font subsets.

int[] indices

OUT: an array of indices mapping source font indices to merged font indices. 0 indicates non-merged fonts.

byte[][] mergedFonts

OUT: an array containing binary data of merged fonts. mergedFonts[0] is always null.

FontSubsetFlags subsetFlags

Font serialization flags.

Returns
Type Description
bool

true if some fonts were merged, false otherwise.