Reputation: 1
Here is the issue in the screenshot
I have tried multiple things:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
body {
font-family: 'Noto Sans JP', sans-serif;
}
</style>
</head>
<body>
<%= yield %>
</body>
</html>
@font-face {
font-family: 'Noto Sans CJK';
src: url('<%= asset_path("NotoSansCJK-wght-400-900.ttf.woff2") %>') format('woff2'),
url('<%= asset_path("NotoSansCJK-wght-400-900.ttf.ttc") %>') format('truetype- collection');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Noto Serif CJK';
src: url('<%= asset_path("NotoSerifCJK-wght-400-900.ttf.woff2") %>') format('woff2'),
url('<%= asset_path("NotoSerifCJK-wght-400-900.ttf.ttc") %>') format('truetype-collection');
font-weight: 400;
font-style: normal;
}
Rails.application.config.assets.precompile += %w( bootstrap.min.js popper.js pdf.scss .woff2 .ttc .svg .eot .woff .ttf )
All these methods didn't work as expected in the production environment, using Ubuntu there.
Upvotes: 0
Views: 34