Page 1 of 1

Where is the "font" folder?

Posted: Sun Jan 10, 2016 4:42 pm
by Paul Medawar

Hi

I'm trying to add a ttf font file to the font folder but I can't find it.

I'm following

https://getsatisfaction.com/apperyio/...

which is saying that it should be in

source web_resources files views assets font

however i have no "files" folder in web_resources.

can you help?


Where is the "font" folder?

Posted: Mon Jan 11, 2016 10:34 am
by Evgene Karachevtsev

Hello Paul

Please create this "font" folder and in a separate CSS file add a @font-face rule, specifying the source (../fonts/..your font.ttf)

Then use simple css rule to apply it to whole project or whatever components you want


Where is the "font" folder?

Posted: Mon Jan 25, 2016 7:23 am
by Paul Medawar

Thanks Evgene,

1 Created a "font" folder in Source tab, under Web resources.

2 Uploaded my .otf fonts into that that folder

3 Added the following into a css file

@font-face {
font-family: MyriadPro-Regular;
src: url('../font/MyriadPro-Regular.otf');
}

@font-face {
font-family: MyriadPro-Bold;
src: url('../font/MyriadPro-Bold.otf');
}

@font-face {
font-family: MyriadPro-It;
src: url('../font/MyriadPro-It.otf');
}

@font-face {
font-family: MyriadPro-Semibold;
src: url('../font/MyriadPro-Semibold.otf');
}

4 Used the font wherever relevant using css

for example

.bigimagebutton {
height: 35px!important;
font-size:30px;
text-align:left;
background-color:#645F9C !important;
background-color: rgba(100, 95, 156, 0.85)!important;
font-family:"MyriadPro-Bold" !important;
}

Thanks for the help


Where is the "font" folder?

Posted: Mon Jan 25, 2016 7:00 pm
by Serhii Kulibaba

Thank you for update! Glad it works now!