If you upload local fonts with multiple files for style, weight, etc., give them all the same family name but specify different styles and/or weight, the module doesn't include the extra CSS files it creates.
For example, if I have SuperFontRegular and SuperFontBold, I would use the same 'font-family: SuperFont' for both and use 'font-weight: normal' and 'font-weight: bold' within their respective @font-face.
Being able to specify the style or weight is quite handy for those browsers that pick up the variants within the @font-face declaration instead of synthesizing them.
The module uploads the files into the same directory, writes separate CSS files for each variant, but doesn't include CSS for anything but the first.
Comments
Comment #1
sreynen commentedThanks for the detailed bug report. I'll try to get this fixed soon.
Comment #2
sreynen commentedI just committed a fix to the dev branch. Once that gets repackaged with tomorrow's date (2011-Jul-12), please download it and confirm it fixes the problem for you.
Comment #3
train commentedIt's not that it's overwriting anything, but it's not including the additional CSS files in the document.
So I guess either include the additional CSS or combine them all into one?
Comment #4
sreynen commentedWhat are the different CSS file names? It should only be writing one file named stylesheet.css.
Comment #5
train commentedI have stylesheet.css and stylesheet_0.css.
It looks like on line 324 of local_font.module (v2.6) the file_save_data function is auto-incrementing the file name when it goes to write the CSS and finds one there already.
Comment #6
sreynen commentedOkay, that second file shouldn't be there at all. The dev release should fix this problem. Please try it out and confirm.
Comment #7
train commentedAha! Works a charm!
Looks fantastic on my end, thank you!
If I haven't said so before, thanks for this module, saves me so much time.
Comment #8
sreynen commentedGreat, thanks for your help testing!
Comment #9
sreynen commentedI'm putting this in a release now, so marking it fixed.