Iam在ubuntu上做一個網站,並完成UI部分。在Ubuntu的一切工作順利,但當我打開窗戶時,所有的字體都失真了。我試了下面的代碼字體在窗口中看起來扭曲
@font-face {
font-family: 'garrisonsb';
src: url('../fonts/garrisons-bold.eot');
src: url('../fonts/garrisons-bold.eot?#iefix') format('embedded-opentype'),
url('../fonts/garrisons-bold.woff') format('woff'),
url('../fonts/garrisons-bold.ttf') format('truetype'),
url('../fonts/garrisons-bold.svg#garrison_sansbold') format('svg');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'garrisons';
src: url('../fonts/garrisons-regular.eot');
src: url('../fonts/garrisons-regular.eot?#iefix') format('embedded-opentype'),
url('../fonts/garrisons-regular.woff') format('woff'),
url('../fonts/garrisons-regular.ttf') format('truetype'),
url('../fonts/garrisons-regular.svg#garrison_sansregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'rupee';
src: url('../fonts/Rupee.eot');
src: url('../fonts/Rupee.eot?#iefix') format('embedded-opentype'),
url('../fonts/Rupee.woff') format('woff'),
url('../fonts/Rupee.ttf') format('truetype'),
url('../fonts/Rupee.svg#rupeeregular') format('svg');
font-weight: normal;
font-style: normal;
}
使用松鼠發電機生成指定的代碼。我嘗試將font-smooth屬性設置爲'always',同時將-webkit-font-smoothing設置爲antialiased,字體權重也指定爲700,而對於粗體則爲900,而不是'normal',但沒有任何效果。
請建議最佳解決方案......
您是否在談論Google Chrome? – 2013-03-06 15:34:44
問題在於所有瀏覽器。 – PRASANTH 2013-03-06 15:36:05
由於這是字體的視覺問題,因此應該包含您遇到的問題的圖片。 – Axel 2013-03-06 15:46:00