Ive googled alot is trying to figure out how to embed fonts on a web page. As I understand it, you should upload fonts to your web page in .ttf and .eot formats. and using @ font-face in the stylesheet.
I placed Kingthings_Italique.eot and Kingthings_Italique.ttf at the root of my web page.
Create a style sheet like this.
.MyStyle { @font-face { font-family: 'Kingthings Italique'; src: url('Kingthings_Italique.eot'); } @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 as follows
<head runat="server"> <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
And I'm trying 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 does not change.
If I understand http://randsco.com/?p=680&more=1&c=1 , it should be possible
If I open the source in ie8, should I see the font name? because if I search for a king through ie8 code, I find nothing
CruelIO
source share