Generally, its a great module, because its so simple!

I applied flir to my navigation.
It happens that short words are rendered larger than longer words.

I wonder if there is a maxwidth setting somewhere.

Comments

j0rd’s picture

I have the same issue as well.

My longest title is replaced using a smaller font size and it make my website look in consistent. I'm curious why this is going on and how we can resolve this.

j0rd’s picture

A little more digging into this module and flir turns out that there's a bunch of flir options, which this module does not let you to configure. These flir specific options are quite in depth and are ment to be tied to your particular fonts. I believe they should be opened up on the configuration page for flir and have to be configured to each font that added.

The particular option which relates to the miss match font sizes, is the flir option called "mode". I believe by looking at the code flir mode options are infact modules and you can add new ones. Nifty. By default the flir module for drupal uses "progressive" and if you want your words to wrap you will have to use "wrap" mode.

In your flir.module you set this specifically by changing this around line 244

if($FLIR['output'] == 'auto')
    $FLIR['output'] = $FLIR['bkg_transparent'] ? 'png' : 'gif';

to

if($FLIR['output'] == 'auto')
    $FLIR['output'] = $FLIR['bkg_transparent'] ? 'png' : 'gif';

// Changing "mode" from default (progressive) to wrap.
    $FLIR['mode'] = 'wrap';

There's a bunch of flir options which you can play with. Here's some documentation, but I find it rather incomplete: http://facelift.mawhorter.net/doc/ . If you really what to know what your other options are take a look at the code.

stefan81’s picture

Thanks for your input.
but after doing so I get an error:

Parse error: syntax error, unexpected T_VARIABLE in (..)/sites/all/modules/flir/flir.module on line 244

j0rd’s picture

The only thing you should be adding is

$FLIR['mode'] = 'wrap';

I'm pretty sure this compiles, so you've probably done something wrong.

stefan81’s picture

yes, I only added that line.

But I gave up FLIR anyways, because I tested it on MS Explorer 5 & 6, and the module is not working there at all.

bigjim’s picture

it's alao worth noting that flir only supports pt and px, not em or % when applying font-size in css.

http://facelift.mawhorter.net/doc/flir-js-flirstyle-object-csssize

hadsie’s picture

Category: bug » support
Status: Active » Fixed

The flir mode setting should fix this. I think progressive will work for what you want. This is also now configurable in the current dev version of the module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.