Hello, I am having trouble including a custom font in my Rails application. I am currently using Rails 2.3.8.
I have placed my font folder in the public folder and below is my CSS code. However, it seems to not be working. Can anyone provide some assistance?
Here is my CSS:
@font-face {
font-family: 'Conv_code128';
src: url('fonts/code128.eot');
src: local('☺'), url('fonts/code128.woff') format('woff'), url('fonts/code128.ttf') format('truetype'), url('fonts/code128.svg') format('svg');
font-weight: normal;
font-style: normal;
}
View page:
<div style= "float:left;
font-family:'Conv_code128';
font-size:25px;
margin-left:50px;">
<%= hai %>
</div>