Fork me on GitHub

#1 2015-10-21 21:01:44

lavvaf
Member
Registered: 2015-10-09
Posts: 29

Embeded new font

Dear All,
I try to add new font to oneye by adding this code in system.css (system_xxxxxxxx/extern/apps/eyeX/css/system.css):

@font-face {
  font-family: 'bkoodak';
  src: url('fonts/BKoodakBold.eot?#') format('eot'),  /* IE6–8 */
       url('fonts/BKoodakBold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
       url('fonts/BKoodakBold.ttf') format('truetype');  /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */
}

Also I create a new folder (fonts) in the path and copy new fonts. Then add this font to body in system.css, but unfortunately it's not work!
Please help me to do it.

Thanks

Offline

#2 2015-10-25 18:59:10

lavvaf
Member
Registered: 2015-10-09
Posts: 29

Re: Embeded new font

No any answer?????
Please help me to embedded new fonts in oneye.

Offline

#3 2015-10-26 15:39:29

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 730
Website

Re: Embeded new font

Where did you place that "fonts" folder? I recommend you to use either "system/extern/apps/eyeX/themes/[THEME_NAME]/fonts" or "system/extern/apps/eyeX/fonts".

That first one could be linked using "index.php?theme=USERTHEME&extern=fonts/[...]", the second one using "index.php?extern=apps/eyeX/fonts/[...]".


Best regards,
Lars Knickrehm

The oneye project.

Offline

#4 2015-10-28 20:56:12

lavvaf
Member
Registered: 2015-10-09
Posts: 29

Re: Embeded new font

Thanks Lars,
It'work, as you said addressing is the problem. i used index.php?theme=USERTHEME&extern=fonts/[...] for addressing my fonts in system.css.

Offline

Board footer

Powered by FluxBB