[Post] SVG and Chinese fonts-Ryan technology-from the east, Enze world

Source: Internet
Author: User

Guidance:

What is SVG? Scalable Vector

Graphics (SVG for short) refers to "Scalable Vector Graphics. SVG is an open standard developed by W3C to describe 2D vector diagrams Based on Extensible Markup Language (XML.

SVG strictly complies with the XML syntax. SVG describes the image content in descriptive language of the text format. Therefore, SVG is a vector graphics format unrelated to the image resolution.

SVG allows you to design a webpage with more excellent and meticulous usage of simple text commands, SVG supports various common image effects, such as linear color changes, paths, custom fonts, transparent effects, and filter effects.



You can use the Chinese font for writing in SVG. Label. Meanwhile, SVG documents are stored in UTF-8 format.

Svgviewer is a plug-in that enables SVG to be displayed in a browser. To display Chinese fonts in svgviewer, the Chinese font name must be "internationalized", that is, the Chinese font

Change the name to an English name. For example, change "" to "simsun", and change "" to "simhei". The following lists some fonts for comparison:

English name localized name

Simsun

Simhei

Fangsong_gb2312 _ gb2312

Kaiti_gb2312 _ gb2312

Youyuan

Stsong 文

Stzhongsong 文中

Stkaiti 文

Stfangsong 文

Stxihei 文

Stliti 文

Stxingkai

Stxinwei 文

Sthupo 文

Stcaiyun 文

Fzyaoti founder Yao simplified

Fzshuti 正 simplified

Nsimsun

Lisu statement

----- Remarks -------------------

The font name is optional, but must be enclosed by quotation marks, as shown in figure

Font-family = ''

----- Remarks -------------------

Instance:

This is an example!

This article is transferred from

Http://hi.baidu.com/rayen/blog/item/313d1a24a47c712fd40742f0.html

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.