Solved

Using custom fonts

Posted on 2012-03-24
1
219 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now