The bar code control developer IDAutomation teaches you how to use the bar code font that supports WOFF (web page open font format) to html code.

Source: Internet
Author: User

WOFF is a web font format recommended by W3C of the World Wide Web alliance. It is compatible with the latest Internet Explorer, Firefox, Google, apple, Opera, and many other browsers. Webpage fonts allow website-related personnel to build website-based applications, such as bar code, MICR, and OCR, without installing fonts on terminal machines. BecauseBar Code fontThe flexibility of web pages.

IDAutomation's barcode fonts include WOFF fonts, and EOT and SVG fonts to be compatible with older browsers. How can I use these bar code fonts on a webpage? Note that the font of a webpage is automatically downloaded when the user browses the webpage, and is discarded after the user leaves the webpage. Therefore, these fonts cannot be used for any other purpose. Next we will teach you how to use it in HTMLWOFF barcode font format:

  1. Upload the font to your CSS folder or the same directory. Most browsers, including IE and Firefox, require that their domain names contain fonts.

  2. In CSS @ font-face declaration, define the font in the form of a complete URL corresponding to a specific font file, as shown below:

    <STYLE TYPE="text/css">    <!-- /* include the idautomation.com Code39 WOFF Font -- */    @font-face {    font-family: IDAutomationHC39M;      url(http: //www.idautomation.com/barcode-fonts/woff-web-fonts/IDAutomationHC39M.woff);    }    -->    </STYLE>
  3. Reference Font:

    <font face="IDAutomationHC39M">(WOFF-FONT)</font>


  4. Domain Name restrictions are imposed, and fonts appear in the browser.

  5. According to the above method, the following bar code will appear in the browser. If not, it indicates that your browser does not support WOFF bar code font.

This article is from the bar code technology blog, please be sure to keep this source http://7805785.blog.51cto.com/7795785/1287748

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.