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 retrieve an associative PHP array with all available fonts.

Version #version

This method was introduced in Gravity PDF 4.3.

Parameters #parameters

This method accepts no parameters.

Return #return

array
A multi-dimensional array, with the list of installed fonts grouped together.

Usage #usage

    $fonts_list = GPDFAPI::get_pdf_fonts();

    foreach( $fonts_list as $group_name => $group ) {
       foreach( $group as $font_id => $font_name ) {
           //do something with the font name / ID
       }
    }

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 (¥)