Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7885417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:03:53+00:00 2026-06-03T05:03:53+00:00

how to emebed a font using @font-face on rails: my fonts are located in:

  • 0

how to emebed a font using @font-face on rails:

my fonts are located in:

/vendor/assets/stylesheets/fonts/custom-font-lists-here.eot

my stylesheet that contain a @font-face is inside:

/vendor/assets/stylesheets/fonts.css

I am using this right now

@font-face {
    font-family: 'ArimoRegular';
    src: url('<%= asset_path('fonts/arimo-regular-webfont.eot') %>');
    src: url('<%= asset_path('fonts/arimo-regular-webfont.eot') %>'+'?#iefix') format('embedded-opentype'),
         url('<%= asset_path('fonts/arimo-regular-webfont.woff') %>') format('woff'),
         url('<%= asset_path('fonts/arimo-regular-webfont.ttf') %>') format('truetype'),
         url('<%= asset_path('fonts/arimo-regular-webfont.svg') %>#ArimoRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}

I wonder if this is right,

Any suggestion are welcome,
Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:03:55+00:00Added an answer on June 3, 2026 at 5:03 am

    You shouldn’t need the fonts/ portion of the file path. The app/assets/fonts directory should already be included in asset_path, so you should be able to use this:

    <%= asset_path('arimo-regular-webfont.eot') %>
    

    I don’t know why this happens, but I’ve heard of people having issues with the assets/fonts directory not being in the asset pipeline so you have to add it manually. If the above doesn’t work for you, try added the directory manually by putting the following in config/application.rb:

    config.assets.paths << "#{Rails.root}/app/assets/fonts"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made a website with custom fonts embedded on the website using font-face. The
I am using an own custom font which I embed like this: @font-face{font-family:myFont;src:url(css/fonts/myFont.woff);} @font-face{font-family:myBoldFont;src:url(css/fonts/myBoldFont.woff);}
I am using the following code to embed Arial into my application: [Embed(source='../assets/fonts/Arial.ttf',fontFamily='CustomFont',fontWeight='regular', unicodeRange='U+0020-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+0080-U+00FF,U+0100-U+017F,U+0400-U+04FF,U+0370-U+03FF,U+1E00-U+1EFF,U+2022,U+2219,U+20AC-U+21AC',
IE9 won't render @font-face truetype fonts though all other browsers do. I'm getting the
I am using FontSquirrel font generator to try to generate the embedded font files
I'm testing some font embedding in Flex 4. Using the tutorial below (modified a
I'm using a font which, for some reason, floats above the baseline compared to
I'm writing a Pure AS3 app, embedding a font using the Embed metatag like
Is there a way to create embedded pure as3 swf fonts using compc (without
Possible Duplicate: Can I embed a custom font in an iPhone application? How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.