From progpapa via email:

I think I've managed to trace this down and it seems to be a minor issue in the fontyourface module:

1. To get all fonts on a page, functions use this:
$fonts = fontyourface_font_registry() + fontyourface_get_fonts();
(fontyourface_preprocess_html, fontyourface_generate_css)

2. fontyourface_font_registry() fills the $fonts array like this:
$fonts[$font->fid] = $font; // keyed by the font id

3. fontyourface_get_fonts fills the array like this:
$fonts[] = $result; // just adds an entry, key is most likely not the font id

4. This means that if you go to a font edit page (appearance/fontyourface/edit/%) and enter a css selector that applies to an element that appears on that page (e.g.:.fieldset-title), then both functions above will be called and chances are the font will appear twice in the $fonts array, so the same row appears twice in the font.css file.

I've attached a simple patch that fixes this.
Since this could only happen on the font edit page and on the preview page, I don't think it's a serious issue. Probably the only advantage would be is that the font.css file doesn't get regenerated because of the duplicate entries.

CommentFileSizeAuthor
patch1.txt425 bytessreynen

Comments

Drave Robber’s picture

Priority: Normal » Minor
Status: Needs review » Reviewed & tested by the community

Reproduced both the bug and the fix. Even if this is an edge case, it's always nice to have some consistency. :)

Drave Robber’s picture

Status: Reviewed & tested by the community » Fixed

This has been committed to -dev.

Status: Fixed » Closed (fixed)

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