Ive googled alot trying to figure out how to embed fonts on a webpage. As i understand it you should upload the fonts to your webpage in .ttf and .eot formats. and the use @font-face in a stylesheet.
I have placed the Kingthings_Italique.eot and Kingthings_Italique.ttf in the root of my webpage.
Createt a stylesheet like this.
.MyStyle
{
/* For IE */
@font-face
{
font-family: 'Kingthings Italique';
src: url('Kingthings_Italique.eot');
}
/* For Other Browsers */
@font-face
{
font-family: 'Kingthings Italique';
src: local('Kingthings Italique Regular'),
local('KingthingsItalique-Regular'),
url('Kingthings_Italique.ttf') format('truetype');
}
}
First i refer to it like this
<head runat="server">
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
And the i try to use it like this
<asp:Label ID="lbl" runat="server" Font-Bold="True"
Font-Size="30pt" Text="TEST123" CssClass="MyStyle"></asp:Label>
But no matter if i use ie8 or chrome2 the font isnt changed.
If I understand http://randsco.com/?p=680&more=1&c=1 correct it should be possible
If I open the source in ie8 should I then be able to see the font name? because if I search for king through the ie8 code i find nothing