Answer the question
In order to leave comments, you need to log in
How to connect a font for iOS?
One of the projects uses the Futuris Light Cyrillic font.
It connects like this:
@font-face {
font-family: "FuturisLightC";
src: local('☺'), /* IE trick */
url('../images/FUTURILC.TTF') format('truetype'), /* Opera, Safari */
url('../images/FUTURILC.svg#font') format('svg'); /* iOS */
}
font-family: "FuturisLightC", Helvetica, Geneva, sans-serif;
Answer the question
In order to leave comments, you need to log in
You don't have a font in the format these browsers need.
I will give an example that I use myself.
There is no need to be afraid of a large number of files, the browser loads only one of them - the first one that can display.
@font-face {
font-family: 'Room';
src: url('../fonts/Room.eot');
src: local('☺'),
url('../fonts/Room.woff') format('woff'),
url('../fonts/Room.ttf') format('truetype'),
url('../fonts/Room.svg') format('svg');
font-weight: normal;
font-style: normal;
}
Use fontsquirrel to generate fonts in all required formats. It also shows how to connect everything. www.fontsquirrel.com/tools/webfont-generator
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question