Steps to reproduce:
- Enable desired font and add some css within Google fonts module interface;
- Disable this font

Current behavior:
/sites/default/files/google_fonts.css still is not removed which causes browser to load system serif font.

Expected behavior:
/sites/default/files/google_fonts.css removed to prevent browser attempt to load disabled font.

Comments

BarisW’s picture

Status: Active » Closed (fixed)

Thanks for reporting. Good catch!
I've added it to the module. It now deletes the CSS file when the CSS Code box is empty or when there are no fonts left enabled.

http://drupal.org/commitlog/commit/14382/3fd67ab4aa99c249558bb49b342b4d2...

Added to 7.x-2.x-dev and will be part of the 7.x-2.4 on the next release.