CSSTidy が font-face 宣言を壊すという問題があり、何が問題なのかわかりません。もともと私はサーバー側で圧縮していましたが、テストのためにオンライン ユーティリティで実行してみました。どちらも同じ出力を持ち、最初の宣言のみが含まれます。
また、元の CSS (入力) は正常に機能し、圧縮しようとしているだけであることも強調しておく必要があります。
入力:
@font-face {
font-family: 'FuturaBT-Light';
src: url('26A674_0_0.eot');
src: url('26A674_0_0.eot?#iefix') format('embedded-opentype'),
url('26A674_0_0.woff') format('woff'),
url('26A674_0_0.ttf') format('truetype');
}
@font-face {
font-family: 'FuturaBT-Book';
src: url('26A674_1_0.eot');
src: url('26A674_1_0.eot?#iefix') format('embedded-opentype'),
url('26A674_1_0.woff') format('woff'),
url('26A674_1_0.ttf') format('truetype');
}
@font-face {
font-family: 'FuturaBT-Medium';
src: url('26A674_2_0.eot');
src: url('26A674_2_0.eot?#iefix') format('embedded-opentype'),
url('26A674_2_0.woff') format('woff'),
url('26A674_2_0.ttf') format('truetype');
}
@font-face {
font-family: 'FuturaBT-Bold';
src: url('26A674_3_0.eot');
src: url('26A674_3_0.eot?#iefix') format('embedded-opentype'),
url('26A674_3_0.woff') format('woff'),
url('26A674_3_0.ttf') format('truetype');
}
出力:
@font-face
{
font-family:FuturaBT-Bold;
src:url(26A674_3_0.eot?#iefix) format(embedded-opentype), url(26A674_3_0.woff) format(woff), url(26A674_3_0.ttf) format(truetype);
}