Solved

Using custom fonts

Posted on 2012-03-24
1
221 Views
Last Modified: 2012-03-25
How can I access custom fonts on from my asp.net site. I've upload the .tff files.
0
Comment
Question by:thenrich
1 Comment
 
LVL 16

Accepted Solution

by:
Vikram Singh Saini earned 500 total points
ID: 37761967
Let us assume that you have uploaded .tff files in Fonts folder in root folder. To use them in your site, declare follow in .css as :

/* Font family for child contents*/
@font-face
{
    font-family: Colaborate-Regular;
    src: url('Fonts/ColabReg.ttf');
}

.pageHeader
{
    font-family: Colaborate-Regular,Calibri,Candara;
    font-size: 1.8em;
    padding: 3px 0 10px 2px;
    color: #463E3F;
    font-weight: bold;
}

Open in new window


But there are some limitations too.  Check out link: http://www.font-face.com/ for more details.

You can get custom font files free from http://www.font-squirrel.com/
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question