SpreadJS Documentation
GC.Spread.Sheets.PDF Namespace / PDFFontsManager type / registerFont Method
The font name.
The font object.
The normal font file in base64 string or ArrayBuffer.
The bold font file in base64 string or ArrayBuffer.
The italic font file in base64 string or ArrayBuffer.
The boldItalic font file in base64 string or ArrayBuffer.
In This Topic
    registerFont Method
    In This Topic
    Register a Font for export PDF.
    Syntax
    var value; // Type: any
    value = GC.Spread.Sheets.PDF.PDFFontsManager.registerFont(name, font, font.normal, font.bold, font.italic, font.boldItalic);
    function registerFont( 
       name : string,
       (optional) font : Object,
       (optional) font.normal : undefined,
       (optional) font.bold : undefined,
       (optional) font.italic : undefined,
       (optional) font.boldItalic : undefined
    ) : any;

    Parameters

    name
    The font name.
    font
    The font object.
    font.normal
    The normal font file in base64 string or ArrayBuffer.
    font.bold
    The bold font file in base64 string or ArrayBuffer.
    font.italic
    The italic font file in base64 string or ArrayBuffer.
    font.boldItalic
    The boldItalic font file in base64 string or ArrayBuffer.
    See Also