Closed (fixed)
Project:
Facelift Image Replacement Integration
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2009 at 04:36 UTC
Updated:
17 May 2010 at 10:40 UTC
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
Comment #1
j0rd commentedI 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.
Comment #2
j0rd commentedA 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
to
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.
Comment #3
stefan81 commentedThanks for your input.
but after doing so I get an error:
Comment #4
j0rd commentedThe only thing you should be adding is
I'm pretty sure this compiles, so you've probably done something wrong.
Comment #5
stefan81 commentedyes, 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.
Comment #6
bigjim commentedit'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
Comment #7
hadsie commentedThe 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.