displaying font which is not defined on the client side , just on the server
I'm now building a new website that provides sms services using clickatell
.this site have many fonts famillies that are not defined on the client
side , for example if i open the site from other computer the font will
display as the default . I have learned the font-face in CSS ; but it is
not working > here is my simple test code :
<html>
<head></head>
<style>
@font-face {
font-family: 'oswald_stencilregular';
src: url('/protected/extensions/Fonts/oswald/Oswald-Light.otf');
font-weight: normal;
font-style: normal;
}
</style>
<body>
<div style='font-family:oswald_stencilregular'>
give me my font
</div>
</body>
</html>
see, it is simple code but the test "give me my font " will not be shown
with this type of font ; i have installed the font and i made a path to
the font as u can see from the code . I have tested the path from other
php file and it is working , I have made many researches but still the
same problem , which is why this declaration for this font is not working
, is there another way to declare a font on the server side so the client
will not care if he has this type of font and his computer and he will
display the font as declared on the server side ?
No comments:
Post a Comment