All fonts available for a SlideDeck to use are passed through this filter to allow content sources and lenses to add their own set of fonts to the available selection.
To modify the available fonts array, hook into the filter with the following code:
<?php add_filter( 'slidedeck_get_font', 'my_function_name', 10, 2 ); ?>
The slidedeck_get_font filter receives two parameters:
(array) An array of font descriptors for the SlideDeck to use. Font entries are keyed off a font identifier slug and have an associative array value with three values: label, stack and weight. The label value is the label that will be displayed in the drop-down in the SlideDeck options interface. The stack value is the CSS font stack that will be applied to the title or body of the SlideDeck. The weight option specifies the font-weight of the applied font.
(array) The SlideDeck descriptor array
Return an associative array of fonts available to the SlideDeck for selection
Located In File: