From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/font-synthesis/index.html | 111 +++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 files/ja/web/css/font-synthesis/index.html (limited to 'files/ja/web/css/font-synthesis/index.html') diff --git a/files/ja/web/css/font-synthesis/index.html b/files/ja/web/css/font-synthesis/index.html new file mode 100644 index 0000000000..c9d84d2d59 --- /dev/null +++ b/files/ja/web/css/font-synthesis/index.html @@ -0,0 +1,111 @@ +--- +title: font-synthesis +slug: Web/CSS/font-synthesis +tags: + - CSS + - CSS Fonts + - CSS Property + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/font-synthesis +--- +
{{CSSRef}}
+ +

font-synthesisCSS のプロパティで、太字やイタリックの字体がない場合に、ブラウザーが合成してよいかどうかを制御します。

+ +
{{EmbedInteractiveExample("pages/css/font-synthesis.html")}}
+ + + +

構文

+ +

このプロパティは以下の形のうちの一つを取ることができます。

+ + + +

+ +
+
none
+
太字およびイタリックの字体を合成しないことを示すキーワードです。
+
weight
+
必要であれば、太字の字体を合成してよいことを示すキーワードです。
+
style
+
必要であれば、イタリックの字体を合成してよいことを示すキーワードです。
+
+ +

解説

+ +

ほとんどの標準的な欧文フォントにはイタリック体や太字の変化形が含まれていますが、多くのノベルティフォントには含まれていません。中国語、日本語、韓国語、その他の表語文字に使用されているフォントは、これらの変化形を含まない傾向があり、それらを合成するとテキストの可読性が損なわれる可能性があります。このような場合には、ブラウザーの既定のフォント合成機能をオフにしたほうがよいかもしれません。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

フォント合成の無効化

+ +

HTML

+ +
<em class="syn">Synthesize me! 站直。</em>
+<br/>
+<em class="no-syn">Don't synthesize me! 站直。</em>
+
+ +

CSS

+ +
em {
+  font-weight: bold;
+}
+.syn {
+  font-synthesis: style weight;
+}
+.no-syn {
+  font-synthesis: none;
+}
+
+ +

結果

+ +

{{ EmbedLiveSample('Disabling_font_synthesis', '', '50') }}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Fonts', '#propdef-font-synthesis', 'font-synthesis')}}{{Spec2('CSS3 Fonts')}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("css.properties.font-synthesis")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf