私はdafont.comからこれはフォントが見えるようになっている方法ですしまったことCGF Locustの抵抗フォントを使用しています:http://www.dafont.com/cgf-locust-resistance.font、これはそれが私のWebページ上でどのように見えるかです:https://postimg.org/image/r2a1xcxun/フォントが違って見えるのはなぜですか?
あなたは手紙を見て見ることができるように特に「F」、「A」、「E」で目立つようになりました。ここに私のCSSとHTMLコードです。誰がなぜこれのような理由を知っている?
HTML:
<html>
<head>
<meta charset="UTF-8">
<title>Gears Of War</title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<header>
<h1>GEARS OF WAR</h1>
</header>
<body>
<?php
// put your code here
?>
</body>
</html>
CSS:
body {
background-color: #1a1a1a;
}
header {
font-family: CGF Locust Resistance;
letter-spacing: 30px;
text-align: center;
font-size: 28px;
color: lightgray;
text-shadow:
-1.5px -1.5px 0 black,
1.5px -1.5px 0 black,
-1.5px 1.5px 0 black,
1.5px 1.5px 0 black;
}
フォントフェイス宣言:
@font-face {
font-family: cgf_locust_resistanceregular;
src: url('Downloads/cgf_locust_resistance-webfont.woff2') format('woff2'),
url('Downloads/cgf_locust_resistance-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
フォント自体やブラウザがフォントをレンダリングする方法に問題がある可能性があります。 FFやSafariでは、ここでは大丈夫ですが、Chromeではそうは見えません。 –
FFで試してみましたが、私にとっては同じように見えます – Cian
あなたのフォントフェイス宣言を投稿できますか? –