Skip to content

Overwriting fonts_dir #70

angeliquejw opened this Issue Oct 27, 2012 · 2 comments

3 participants


New to Scout, Compass & SCSS, so this is a query not necessarily a bug:

Default assignment of fonts directory for @include font-face appears to be "stylesheets/fonts;" my fonts are actually in "includes/fonts."

I created a config.rb file, pointed Scout to it and included the following:

fonts_dir = "includes/fonts"

Now, when I compile the code, I get the following error:

>>> Change detected at 12:42:05 to: style.scss
error style.scss (Line 105: different prefix: "C:\\" and "C:/pathto" for `font-files')

What am I doing wrong and how can I set up my fonts directory as needed? All my other directories have been declared using the Scout GUI.

chrysos commented Dec 4, 2012

Tive o mesmo problema, mas foi ao gerar o sprite, resolvi assim:

http_path = "./"
relative_assets = false

Espero que ajude :)


I had the same issue just today and it was driving me insane - only for me it was "different prefix "" "

I found a workaround: set your "http_fonts_path" to the path that would lead from the stylesheet to the font files and don't use "relative_assets"

in my case, this was

http_fonts_path = "../../lib/font"

because my CSS directory lives two directories below the root path.

this isn't an elegant solution to be sure, but still better than using absolute URLs which would obviously break the whole thing once it is put at its destination.

It would be nice if this issue was resolved soon, though. Scout is great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.