中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
中文標準web字體

標準的簡體中文web字體:

WindowsOS X
黑體:SimHei冬青黑體: Hiragino Sans GB [NEW FOR SNOW LEOPARD]
宋體:SimSun華文細黑:STHeiti Light [STXihei]
新宋體:NSimSun華文黑體:STHeiti
仿宋:FangSong華文楷體:STKaiti
楷體:KaiTi華文宋體:STSong
仿宋_GB2312:FangSong_GB2312華文仿宋:STFangsong
楷體_GB2312:KaiTi_GB2312 
微軟雅黑體:Microsoft YaHei [as of Win7] 

在css中使用中文字體地良好習(xí)慣:

同時使用中文字體的中文名和英文名 

當(dāng)聲明一個中文字體的時候,同時聲明中文字體的拉丁文名字和中文名字。

這樣做的好處是不管你的中文字體是是以拉丁文名還是中文名存儲的,你都可以使用中文字體。

font-family: Tahoma, Helvetica, Arial, "Microsoft Yahei","微軟雅黑", STXihei, "華文細黑", sans-serif;

 

英文字體的聲明放在中文字體聲明之前 

這不是官方的規(guī)則,只是我得個人偏好,為什么我要這樣做呢?因為英文字形總是不包括中文字體,但是中文字體卻包含a-Z單詞,所以,如果你先聲明中文字體的話,后面聲明的英文字體就不會被執(zhí)行。

所以,如果你先聲明英文字體的話,對于英文字母會先執(zhí)行英文字體,對于不能解析的中文字才會嘗試著使用回退字體(也就是英文字體后面聲明的字體)。

例如下面:

代碼示例:

font-family: Georgia, "Times New Roman", "Microsoft YaHei", "微軟雅黑", STXihei, "華文細黑", serif;

 

聲明 MICROSOFT字體以及 MAC 字體

就像英語字體一樣,你至少要聲明適用于windows的字體和適用Mac的中文字體。至于哪個應(yīng)該先聲明,你要看你針對的平臺是什么。

我需要用引號來引中文字體么?

你不需要如下的做法:

font-family: Georgia, "Times New Roman", "Microsoft YaHei", "微軟雅黑", STXihei, "華文細黑", serif;

你應(yīng)該這樣做:

font-family: Georgia, "Times New Roman", "Microsoft YaHei", 微軟雅黑, STXihei, 華文細黑, serif;

主要的中文字體

宋體12號 – SIMSUN 12PT FONT

font-family: Arial, Helvetica, tahoma, verdana, 宋體, SimSun, 華文細黑, STXihei, sans-serif;

微軟雅黑 – MICROSOFT YAHEI

font-family: Tahoma, Arial, Helvetica, "Microsoft YaHei New", "Microsoft Yahei", "微軟雅黑", 宋體, SimSun, STXihei, "華文細黑", sans-serif;

仿宋 – FANGSONG

font-family: Georgia, "Times New Roman", "FangSong", "仿宋", STFangSong, "華文仿宋", serif;

楷體 – KAITI

font-family: Georgia, "Times New Roman", "KaiTi", "楷體", STKaiti, "華文楷體", serif;

 

處理中文的 @FONT-FACE?

考慮到很多的中文字體文件很大,并且包含至少3000個基本的字形,所以中文對于@font-face支持度不是很好。

我許多的非標準中文字大于5MB,Considering that most Chinese font files are kinda ginormous and typically include at least 3000 base glyphs, Chinese doesn’t lend itself very well to @font-face embedding. Many of my non-standard Chinese fonts run upwards of 5MB, and the @font-face generator over at Font Squirrel has a 2MB file size limit. So, while it’s impractical on a CMS platform where you’re dealing with a bunch of user-generated data, that’s not to say it can’t be done.

You can use the CodeAndMore fontface generator to skip over Font Squrrel’s file size limit if you’re so inclined.

TYPEKIT-STYLE SYSTEMS FOR CHINESE FONTS

[November 15, 2013 UPDATE:] There is another way. I just found out about a company called JustFont based out of Taiwan that offers a Typekit-style font hosting for Chinese @font-face style fonts. They’ve got a decent library of font options, both for simplified and traditional Chinese characters (less for Simplified characters, but that may change in time). Problem: they don’t have an English-language interface, so if you can’t work in Chinese, you’ll have a problem using the site. They do, however, offer Facebook sign-up, so you’ll be able to get that far at least.

[Sept 5, 2014 UPDATE:] Aaaand another one: Youziku.com. This one is awesome – they have a much bigger font library than JustFont. My shop has tested these guys out, and for the most part, everything works well. They offer three embedding methods for their fonts, but only the webservice script really gives you similar usage freedom to @font-faceTwo issues that I’ve found: extra-thin fonts displayed at small sizes come out looking super ragged to the point of being unusable. And two, if you use their hosted service, there’s a little jump on page load – the page loads the content first then applies the font to it, so you see unstyled characters for a split second before the font settles into place.

WHAT’S UP WITH THE NEW FREE FONT, SOURCE HAN SANS?

So, Adobe, who put out Source Sans (English) font a few years ago, teamed up with Google in summer 2014 to releaseSource Han Sans, the best thing to happen to Chinese web fonts basically ever. Though these fonts are not yet available as hosted fonts on English servers (desktop version only on Typekit and Google as of Dec 2014), the font is hosted on Youziku.com, under its Chinese font name, 思源黑體.  Best thing about this is that unlike most Chinese fonts, this one comes in 7 weights all the way from Extralight to Heavy – yeah, baby. I hope to see this on Google / Typekit as a hosted option soon.

AND WHAT ABOUT NOTO SANS HANS?

Google is currently (Dec. 2014) working on a free font called “Noto Sans” (here’s the project page), which aims to support all the world’s languages. There are Chinese versions available for download, but these are not hosted on Google webfonts yet. The font’s lovely, though – you should get it. Google does offer an “Early Access Webfonts” page, where you can snag embedding code for experimental fonts. There are a couple of Traditional Chinese fonts there, but no Simplified fonts yet. A few versions of Noto Sans also support Pinyin.

WHAT’S THE DEAL WITH GOOGLE FONTS AND CHINA?

Mainland Chinese internet users are no longer able to connect to the Google Font API since the government blocked access to Google. Having a Google webfont on your Chinese website basically hangs the loading process for ages for users based in China as the site tries to render the font. Sometimes it works, mostly it fails. No one ever said life was fair.

[December 12, 2014 UPDATE:] So, Qihoo 360 is hosting a Google webfont mirror for Chinese users. If your site is only targeting China, you can use the Qihoo 360 mirror to load Google webfonts. If your site is targeting both China-based and non-China-based users, the recommendation is to load a script that decides which webfont source to use based on the user’s IP. Get the details on SEO Shifu.

NEED A CUSTOM CHINESE FONT OR LOGOTYPE MADE?

Makefont.com: These guys are hot-shit design-y Chinese typographers. And buy their ready-made fonts, they’re really cool.

WHAT’S THE DIFFERENCE BETWEEN BIG5 AND GB2312 CHINESE FONTS?

Quick history lesson: About 50 years ago, Chairman Mao controlled mainland China. And he decided that literacy rates were super low because Chinese characters were crazy complicated to write. So he decided to “Simplify” the whole written language. He hired some linguists, they came up with a writing system that removed a ton of the strokes from many of the characters, reducing the complexity of written Chinese.

Problem: Mao’s little plan only effected the people in Mainland China. That means that all the Chinese people living outside of Mao’s sphere of influence – people in Taiwan and Hong Kong, and Chinese immigrants to the U.S. and abroad – didn’t adopt the new system at all. So now, Chinese characters can be written two ways. One way is the old way, “traditional characters”. Or, as we call it in fonts on the web, Big5. The other way is the new way, used only in China proper, “simplified characters”, or GB2312.

If you are choosing fonts for a site that targets mainland China, choose GB2312. If you are targeting Hong Kong, China towns abroad and immigrant communities, Taiwan, etc., use Big5. Most Chinese websites offer both on multi-lingual platforms. The fonts on this page are all GB2312, but most have Big5 versions.

(Dear type-A devs: yup, I know. I know what an encoding is. It’s just easier to explain this way, kthxbye.)

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
HTML CSS 好看常用的中文字體
網(wǎng)頁中、英文安全字體選擇及設(shè)置
CSS里面定義中文字體
給Keynote、Pages增加中文字體(iOS7、iPad Air)
在ubuntu10.04下安裝中文字體
WIndows 中文字體類型對應(yīng)的文件名稱
更多類似文章 >>
生活服務(wù)
熱點新聞
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服