I have this font:
app/assets
├── fonts
│ └── Reckless-Medium.otf
and I have this css.scss
:
@font-face {
font-family: 'Reckless-Medium';
src: url('/assets/fonts/Reckless-Medium.otf') format('opentype');
font-weight: normal;
font-style: normal;
font-color: orange;
}
$reckless-medium: 'Reckless-Medium';
.results-list {
display: block;
font-family: $reckless-medium;
max-width: 400px;
but the font is not working. A few questions:
- What am I missing?
- I don't have a good eye for font... what's a good way to tell if this is working or not? Do I have a problem with my css? I guess I can just stick in like font-color: to see if the css is working? Is there a better way?
If this is on production server on Digital Ocean, what do I need to do to make these fonts work?