Not really sure why this isn't already there... But why not allow setting options for cufon selectors from the admin interface? The module already provides a way to set the selector, but adding options would be useful.

I personally have to write a custom cufon extra module for every site I use cufon on:

// $Id$

/**
 * Implementation of hook_init().
 *
 * Just adding in our cufon definitions.
 */
function add_cufon_init() {
  $settings = array(
    array(
      'selector' => '#superfish-1 > li > a',
      'options' => array(
        'fontFamily' => 'Arial',
        'fontWeight' => 900,
        'textShadow' => '0px 2px #151515',
      ),
    ),
  );
  drupal_add_js(array('cufonSelectors' => $settings), 'setting');
}

Why not just allow setting all the options in https://github.com/sorccu/cufon/wiki/API as well? Could be a simple text area or even ahah enabled select boxes/textfields. I can write a patch for this if you feel it would be a worthy addition.

Comments

troky’s picture

textShadow option has been added to 7.x version. Also, admin interface is adjusted to accept more configuration options in the future.

It would be nice if someone could backport it to D6.

troky’s picture

Status: Active » Closed (won't fix)