Hi
I have a problem with font-face routes on the server,when I open the
site in windows, when I do with linux, works . both use chrome latest
version.
-the fonts are in /assets/fonts/
-in /assets/stylesheets/fonts.css.scss
@font-face
{
font-family: ''OswaldLight'';
src: url (''/assets/Oswald-Light-webfont.eot'');
src:
url (''/assets/Oswald-Light-webfont.eot?#iefix'')
format(''embedded-opentype''),
url (''/assets/Oswald-Light-webfont.woff'')
format(''woff''),
url (''/assets/Oswald-Light-webfont.ttf'')
format(''truetype''),
url
(''/assets/Oswald-Light-webfont.svg#OswaldLight'')
format(''svg'');
font-weight: normal;
font-style: normal;
}
@font-face
{
font-family: ''OswaldBook'';
src: url (''/assets/Oswald-Regular-webfont.eot'');
src:
url (''/assets/Oswald-Regular-webfont.eot?#iefix'')
format(''embedded-opentype''),
url (''/assets/Oswald-Regular-webfont.woff'')
format(''woff''),
url (''/assets/Oswald-Regular-webfont.ttf'')
format(''truetype''),
url
(''/assetsOswald-Regular-webfont.svg#OswaldBook'')
format(''svg'');
font-weight: normal;
font-style: normal;
}
@font-face
{
font-family: ''TeXGyreAdventorBoldItalic'';
src: url
(''/assets/texgyreadventor-bolditalic-webfont.eot'');
src:
url
(''/assets/texgyreadventor-bolditalic-webfont.eot?#iefix'')
format(''embedded-opentype''),
url
(''/assets/texgyreadventor-bolditalic-webfont.woff'')
format(''woff''),
url
(''/assets/texgyreadventor-bolditalic-webfont.ttf'')
format(''truetype''),
url
(''/assets/texgyreadventor-bolditalic-webfont.svg#TeXGyreAdventorBoldItalic'')
format(''svg'');
font-weight: normal;
font-style: normal;
}
in /assets/stylesheets/application.css
/*
*= require reset
*= require fonts
*= require bootstrap.min
*= require style
*/
in /assets/stylesheets/style.css
use the font ASI
.ac_menu > ul > li a{
margin-top:60px;
opacity:0;
display:block;
height:90px;
padding:0px 10px;
text-align:center;
line-height:90px;
outline:none;
font-family:''OswaldBook'',Georgia,serif;
font-weight:normal;
font-style:italic;
font-size:14px;
}
in app/views/layouts/application.html.erb
<%= stylesheet_link_tag "application" %>
thanks for the help.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.