Hi I am using visual web developer 2010 express.
However when I implement my code, the font that display on my browser is display differently with my visual web developer.
here is what I tried.
1)I tried to refresh page (probably it is cache issue ) not working.
2) the font has been pointed correctly , so please do not judge this as the fail to point to correct font.
The attachment and the code has been attach as below.
This is sample project.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="Styles/StyleSheet.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Font-Bold="True"
Font-Names="AvenirNext LT Pro Regular" Text="I love you" />
</div>
</form>
</body>
</html>
css file
body
{
}
@font-face
{
font-family: AvenirNext LT Pro Regular;
src: url(../font/AvenirNextLTPro-Regular.otf);
}
picture attached,