- Posts: 4
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic");
If you want to add the font files in your theme for more privacy, just copy them in the CSS directory of your theme (for example mytheme/css/fonts/myfont.eot , mytheme/css/fonts/myfont.woff etc), and call them from your css file with the usual fontface definition.
/* miIconFont */ @font-face { font-family: 'miiconfont'; font-style: normal; font-weight: 400; src: url('../mi-rot/css/fonts/miiconfont.eot'); /* IE9 Compat Modes */ src: local('miiconfont'), url('../mi-rot/css/fonts/miiconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../mi-rot/css/fonts/miiconfont.woff') format('woff'), /* Super Modern Browsers */ url('../mi-rot/css/fonts/miiconfont.woff') format('woff'), /* Modern Browsers */ url('../mi-rot/css/fonts/miiconfont.ttf') format('truetype'), /* Safari, Android, iOS */ url('../mi-rot/css/fonts/miiconfont.svg#svgFontName') format('svg'); /* Legacy iOS */ }
The simple option page simply fills in the advanced form inputs.
<body class=" ... font-{{ aSurveyInfo.options.font }} ... " ... >
.font-miiconfont{ font-family: 'miiconfont'; }
<font>noto</font>
<font>miiconfont</font>