How to display LED fonts on ASP. NET web pages

Source: Internet
Author: User

:

First, create a directory on the site, such as Fonts, to store these special Fonts, lcdd. ttf and lcdd. eot. These two files are actually just a font, but they have different extensions. Is to solve the problem that IE and non-IE browsers cannot be normally displayed.

CSS style:
Copy codeThe Code is as follows:
<Style type = "text/css">
/* IE browser */
@ Font-face {
Font-family: LcdD;
Src: url (Fonts/lcdd. eot) format ("truetype ");
}
/* Non-IE browser */
@ Font-face {
Font-family: LcdD;
Src: url (Fonts/lcdd. ttf) format ("truetype ");
}
P. insusfont {
Font-family: LcdD;
Font-size: 30px;
}
</Style>

Html:
Copy codeThe Code is as follows:
<P class = "insusfont">
<% = DateTime. Now. ToString () %>
</P>

In actual situations, you may only find the. ttf font and do not have the. eot font file. What should you do? At this point, you can try to use the following site for format conversion:

In this example, the fonts are from the internet. You can also download the fonts in The. ttf and. eot formats from the following link. The font is copyrighted. Do not use it for commercial purposes.

Download led_jb51.rar in led font

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.