Read the statement by Michael Teeuw here.
compliments font problem
-
hi guys. here is my custom css, but it dosent work, plz help!
@font-face {
font-family: nazanin;
src:local (“nazanin”),
url(“/home/pi/MagicMirror/fonts/nazanin/nazanin.woff”)format(“WOFF”);
font-weight: 100;
font-style: normal;}
.compliments {
font-family: nazanin;
} -
@mizban In your custom.css put the following line with your font as the first line of the custom.css.
When there is a space in the filename replace it with a ´+'./* Font for compliments, needs to be the first line !!! */ @import url('https://fonts.googleapis.com/css?family=Allerta+Stencil');In the settings for your compliments, in the custom.css, set the fonts with the following line, together with other settings like font-size etc.
font-family : 'Allerta Stencil', serif;Thats how I do it with a google font.
-
@pjkoeleman said in compliments font problem:
@import url(‘https://fonts.googleapis.com/css?family=Allerta+Stencil’);
i tried below, result: it works only for calendar not for newsfeed and compliments??? why?
@import url(‘https://fonts.googleapis.com/css?family=Allerta+Stencil’);
body{
margin: 20px;
position: absolute;
height: calc(100% - 20px);
width: calc(100% - 20px);
line-height: 1.5em;
-webkit-font-smoothing: antialiased;
}
.calendar {
font-family: ‘allerta stencil’, serif;
}
.compliments {
font-family: ‘allerta stencil’, serif;
}
.newsfeed {
font-family: ‘allerta stencil’, serif;
} -
@mizban When you want your compliments in this font try;
/* Compliments */ .compliments .xlarge { font-family : 'Allerta Stencil', serif; }This works for me
-
thank you very much pjkoeleman, for help! i tried:
.compliments div {…} and it works.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login