タイトルと同じように、私はこれらのカスタムフォントを数時間稼働させようと努力してきましたが、他の多くの答えや他のチュートリアルに従っています。カスタムフォントがレールで動作しない
home.scss
@font-face {
font-family: 'audimatregular';
src:url('audimatregular.otf');
src:url('audimat.eot?#iefix') format('otf'),
url('audimatbold.svg#audimat') format('otf'),
url('audimatbolditalic.woff') format('otf'),
url('audimatitalic.ttf') format('otf');
font-weight: normal;
font-style: normal;
}
.section1 {
font-family: "audimatregular";
}
フォルダツリー
/app
+---assets
| +---fonts
| | audimatbolditalic.otf
| | audimatitalic.otf
| | audimatbold.otf
| | audimatregular.otf
| +---images
| +---javascripts
| +---stylesheets
レールバージョン
0123を作業編集:サーバーのログ
Started GET "/" for 127.0.0.1 at 2017-08-21 21:13:09 -0400
(0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/application
Rendered home/index.html.erb within layouts/application (781.9ms)
Completed 200 OK in 879ms (Views: 869.2ms | ActiveRecord: 0.0ms)
助けのための高度でのおかげで、これは非常にイライラされています。
彼らはどのように「機能しませんか」?特定の他の回答やチュートリアルを見てきたので、既に試したことは何も繰り返されません。他に何を試しましたか? –
彼らはちょうど私たちが動作していない平らな、サーバーは通常のように起動コンソールログに何も変わって表示されない、それは彼らがフォントファミリを取っているインスペクタを示しています: "audimatregular" 。 – firewire167