3 replies [Last post]
boguz
boguz's picture
Offline
newbie
Last seen: 8 years 27 weeks ago
Timezone: GMT+1
Joined: 2012-09-12
Posts: 3
Points: 5

i am trying to use Bebas font in a website, but i think it's not working.
i see the website properly (but i have the local file) but i think other people don't...

in my css i have:

@font-face {
    font-family: 'BebasNeueRegular';
	src: url('/_fonts/bebas_neue/BebasNeue-webfont.eot');
	src: local('!'),
		 url('/_fonts/bebas_neue/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
		 url('/_fonts/bebas_neue/BebasNeue-webfont.woff') format('woff'),
		 url('/_fonts/bebas_neue/BebasNeue-webfont.ttf') format('truetype'),
		 url('/_fonts/bebas_neue/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}
 
and then, for instance:
p {
	font-family:BebasNeueRegular;
}

the webpage is here: http://dccf.site88.net/index.php
and the address (inside my root folder) for the font folder is: _fonts/bebas_neue/...

Why isn't it working? Any ideas?
Thank you

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 31 weeks 6 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

-

Ignore this please. I missed in my first reply that you are trying to use @font-face, and now of course I can't delete it. An 'orrible practice in my mind, which is why I know nothing at all about it.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 30 weeks 9 hours ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

It seems

I seem to be getting your desired font in both Firefox and Chrome, in both Win7 and my Linux boxes. It is a narrow, all caps font, no? Firebug says that's the font being used.

What makes you think it's not working?

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

boguz
boguz's picture
Offline
newbie
Last seen: 8 years 27 weeks ago
Timezone: GMT+1
Joined: 2012-09-12
Posts: 3
Points: 5

Hi, thank you! that are good

Hi, thank you! that are good news.

i thought it wasn't working because yesterday a friend showed me the website on his iPad and it was displaying a different font.
Also, when i test my site HERE or HERE i see a different font.
=/

What is the best way to see how the website displays to other people, on different browsers and OSs?