Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compass font-face outputs wrong path to font file

@font-face {
  font-family: "HelveticaNeueLTStd-Lt";
  src: url('/css/fonts/HelveticaNeueLTStd-Lt.otf') format('opentype');
}

That is the output of my compass code:

@include font-face('HelveticaNeueLTStd-Lt', font-files('HelveticaNeueLTStd-Lt.otf'));

I can't seem to get the output url to be either just 'Helvetica......otf' or just 'fonts/Helvetica......otf'.

My directory assets are as followed:

http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "fonts"

I have tried taking off fonts_dir and changing it to "" with no luck

like image 422
Adrian Elder Avatar asked Nov 03 '12 01:11

Adrian Elder


1 Answers

Set http_fonts_path or :relative assets, true. :)

like image 111
sam Avatar answered Sep 21 '22 14:09

sam