Closed pwnjack closed 9 years ago
I would say the CSS file is correct this way. When someone installs/downloads this package, the fonts are indeed relative to the CSS file position at font/...
and not at ../font/...
. If one decides to move the CSS file, he has to manually adopt the paths. For the LESS and SCSS version this can be easily done by overriding the corresponding variable. Sadly, CSS does not provide such convenience...
Just to be clear.
I usually use:
root
|-- js
|-- css
|-- fonts
You are saying to use:
root
|-- js
|-- css
|-- |-- fonts
I've got it right?
I mostly see my situation. (Bootstrap etc.)
Anyway, it's just a suggestion.
btw, thanks for the package! ;)
I don't want to be opinionated one anyones project stucture at all. If one does bower install roboto-fontface
then this
project/
bower-components/
roboto-fontface/
fonts/
Roboto-Black.eot
...
roboto-fontface.css
...
...
is what you get. Hence if one includes the roboto-fontface.css
file from this location as style, then the paths are correct. And that is what counts for me: Installing via bower and including style from the default location must work out of the box.
If you choose to restructure the folder structure, then you have to adopt the CSS file.
Anyway, thx for your thanks :)
Clear! I got the point, Thanks for clarifying. We can close this.
Cheers! ;)
You're welcome!
As stated, when installing the package via Bower the fontface path points to font/path-to-font-file while usually the fontface css file is inside the css folder, so it should be ../font/path-to-font-file.
Just saying.