Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
Jump To Section

Description #description

This function allows you to delete any installed custom PDF fonts using code. It accepts a single argument: the font name.

Version #version

This method was introduced in Gravity PDF 4.1.

Parameters #parameters

font_name | string | required
The name of the custom PDF font to delete

Return #return

boolean | WP_Error
Returns true if the font is installed correctly, or WP_Error on failure

Usage #usage

    /* This should be used in a one-time filter or action */
    $results = GPDFAPI::delete_pdf_font( 'Brandon Grotesque' );

    if ( ! is_wp_error( $results ) ) {
       /* Successfully deleted */
    }

Source Code #source-code

This method is located in api.php.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Scroll To Top

Choose your currency:

Close
Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)