CSS - Unable to use downloaded fonts -
there 2 particular fonts pre-installed. render fine in chrome, not in firefox. included fonts using @font-face downloaded.
css:
@font-face { font-family:elephant; src:url('/styles/fonts/elephant.ttf'); font-family:harrington; src:url('/styles/fonts/harrington.ttf'); } .title { font-family:elephant; } .title2 { font-family:harrington; } they still don't work in firefox. need do?
the main problem need have separate @font-face rule each font import/download use in css:
@font-face { font-family: "elephant"; src: url("/styles/fonts/elephant.ttf"); } @font-face { font-family: "harrington"; src: url("/styles/fonts/harrington.ttf"); }
Comments
Post a Comment