> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ja/xiang-xi-ji-shi/38-step-2-an-introduction-to-latex-fonts.md).

# ステップ 2: LaTeX フォント入門

[はじめに](https://www.overleaf.com/learn/latex/Articles/How_to_use_OpenType_variable_fonts_with_LaTeX?preview=true) [ステップ 1](https://www.overleaf.com/learn/latex/Articles/Step_1:_Setting_up_an_Overleaf_project_to_use_variable_fonts?preview=true) [ステップ 2](https://www.overleaf.com/learn/latex/Articles/Step_2:_An_introduction_to_LaTeX_fonts?preview=true) [ステップ 3](https://www.overleaf.com/learn/latex/Articles/Step_3:_Replacing_LaTeX’s_default_fonts_with_variable_fonts?preview=true) [ステップ 4](https://www.overleaf.com/learn/latex/Articles/Step_4:_How_to_configure_an_italic_variable_font_using_fontspec?preview=true) [ステップ 5](https://www.overleaf.com/learn/latex/Articles/Step_5:_LaTeX_font_weights_and_named_instances_of_variable_fonts?preview=true) [ステップ 6](https://www.overleaf.com/learn/latex/Articles/Step_6:_Using_variable_fonts_to_add_bold_fonts_to_an_Overleaf_project?preview=true) [ステップ 7](https://www.overleaf.com/learn/latex/Articles/Step_7:_Using_Noto_Sans_and_Roboto_Mono_variable_fonts_with_LaTeX?preview=true) [ステップ 8](https://www.overleaf.com/learn/latex/Articles/Step_8:_How_to_create_a_simple_LaTeX_package_to_configure_your_variable_fonts?preview=true) [例とプロジェクト](https://www.overleaf.com/learn/latex/Articles/Overleaf_projects_showing_how_to_use_variable_fonts_with_LaTeX?preview=true)

このステップでは、LaTeX のデフォルトフォントを紹介し、フォントの属性を分類して「フォントシェイプ」を定義するために LaTeX が使うフォント選択方式の概要を示します。この記事で扱うトピックは、このチュートリアルの残り全体を通して参照されます。このページを数分かけて読んでおくと、チュートリアルシリーズを最大限に活用できます。

### LaTeX のデフォルトの文書本文フォント

LaTeX は、どの文書の本文を組版するにも 3 種類のフォント群を使用します。これらのフォント群は次のようにも呼ばれます *文書用フォントファミリ*。各ファミリは、共通のデザイン特性を持つフォントの مجموعهから成ります:

* **本文用ファミリ**：主文書の本文に使われるフォントで、通常は [セリフ体デザイン](https://en.wikipedia.org/wiki/Serif).
* [**サンセリフ**](https://en.wikipedia.org/wiki/Sans-serif) **のファミリ**：セクション見出しやその他の目立つテキストの組版によく使われるフォントです。
* [**等幅**](https://en.wikipedia.org/wiki/Monospaced_font) **のファミリ**：通常、コンピュータコードやそれに類する内容の組版に使われるフォントです。

既定では、LaTeX は次のフォントファミリを使用します。 [Computer Modern](https://en.wikipedia.org/wiki/Computer_Modern)系列（pdfLaTeX の場合）または [Latin Modern](https://tug.org/FontCatalogue/latinmodernroman/) 系列（XeLaTeX と LuaLaTeX の場合）。

### LaTeX がフォントをどのように分類（整理）するか

テキストの組版に使えるフォントは非常に多く、特定の組版上の目的に合わせて作られた多彩なデザインがあります。この多様さに対応するには、柔軟で論理的なフォント選択 प्रक्रियाに、デザイン上の特徴に基づいてフォントを整理・分類する、よく構成された仕組みが必要です。LaTeX は、新しいフォント選択方式（New Font Selection Scheme）、現在は NFSS2 と呼ばれるものを使ってこの課題に対処しており、各テキストフォントを次の 5 つのパラメータで分類します: *エンコーディング*, *のファミリ*, *シリーズ*, *シェイプ*、そして *サイズ*.

以下に、その 5 つのパラメータの概要を示します。

* **エンコーディング**：テキストファイルに保存された整数（文字コード）値と、それが表すことを意図した文字との対応付けです。LuaLaTeX と可変フォントでは Unicode エンコーディングを使い、LaTeX ではこれを「TU」と表します。
* **ファミリ**：共通のデザインを持つフォント群に与えられた名前です。fontspec で可変フォントを設定する際に、フォントファミリを詳しく見ていきます。
* **シリーズ**：シリーズ値は、フォントの太さ（boldness）と幅（圧縮度）を表します。LaTeX の各フォントシリーズ値は、次の `⟨太さ⟩⟨幅⟩` の組み合わせとして定義されます。 *ただし* 、太さと幅の両方が中程度の場合を除いて m は省略され、その場合は 1 つの `m` が使われます。

次の表は、LaTeX の標準的な幅および太さの識別子を示しています。

|              |           |              |       |                           |
| ------------ | --------- | ------------ | ----- | ------------------------- |
| **太さ**       | **幅**     |              |       |                           |
| *LaTeX の識別子* | *名前*      | *LaTeX の識別子* | *名前*  | *「通常」幅に対する割合*<sup>†</sup> |
| ul           | ウルトラライト   | uc           | 極端に圧縮 | 50%                       |
| el           | エクストラライト  | ec           | 超圧縮   | 62.5%                     |
| l            | ライト       | c            | 圧縮    | 75%                       |
| sl           | セミライト     | sc           | やや圧縮  | 87.5%                     |
| m            | ミディアム（標準） | m            | ミディアム | 100%                      |
| sb           | セミボールド    | sx           | やや拡張  | 112.5%                    |
| b            | ボールド      | x            | 拡張    | 125%                      |
| eb           | エクストラボールド | ex           | 超拡張   | 150%                      |
| ub           | ウルトラボールド  | ux           | 極端に拡張 | 200%                      |

<sup>†</sup>公式の LaTeX ドキュメントで示されているように（ `[fntguide.pdf](https://ctan.org/pkg/fntguide?lang=en)`).

以下にフォントシリーズの例をいくつか示します:

* **m**：中程度の太さで中程度の幅。
* **b**：太字の太さで中程度の幅。これは「本来は」書くべきです **bm** しかし **m** （中程度の幅用の）m が省略されます。
* **c**：中程度の太さで圧縮幅。これは「本来は」書くべきです **mc** しかし **m** （中程度の太さ用の）m が省略されます。
* **sb**：やや太字の太さで中程度の幅。これは「本来は」書くべきです **sbm** しかし **m** （中程度の幅用の）m が省略されます。
* **bx**：太さ **b** （太字）と幅 **x** （拡張）を組み合わせます。これは、現在のフォントファミリの太字拡張フォント（そのようなフォントが存在する場合）を選択するために使われます。
* **sbc**：太さ **sb** （やや太字）と幅 **c** （圧縮）を組み合わせます。これは、現在のフォントファミリのやや太字圧縮フォント（そのようなフォントが存在する場合）を選択するために使われます。
* **シェイプ**：このパラメータは、イタリック、斜体、スモールキャップス、スワッシュキャップスなどのフォントの形（シェイプ）を選びます。LaTeX は標準シェイプの集合を定義しています:

|             |                       |
| ----------- | --------------------- |
| **シェイプ識別子** | **シェイプ名**             |
| n           | 標準シェイプ（立体）            |
| it          | イタリック体シェイプ            |
| sl          | 斜体（オブリーク）シェイプ         |
| sw          | スワッシュ文字シェイプ           |
| ui          | 立体イタリックシェイプ（まれ／珍しいもの） |
| sc          | スモールキャップスシェイプ         |
| scit        | イタリックスモールキャップスシェイプ    |
| scsl        | 斜体スモールキャップスシェイプ       |

* **サイズ**：フォントを使っているサイズです。LaTeX には、 `\tiny`, `\small`, `\normalsize`, `\large`, `\Large`などの、あらかじめ定義されたサイズコマンドがいくつかあります。また、次を使って特定のフォントサイズを定義することもできます `\fontsize{size}{baselineskip}` ここで `サイズ` はフォントサイズであり `baselineskip` は行間です。

### （任意の読み物）特殊なシリーズとシェイプ

この節は最初の読みでは飛ばしてもかまいません。Overleaf は、 [これらの特殊なシリーズとシェイプを示すプロジェクトを作成しました](https://www.overleaf.com/1941895198cqjzyhzvxhwz#794ae2) （組版された文書の第 6 節を参照）。

#### シリーズ識別子: m? と ?m

各シリーズ識別子は `⟨太さ⟩⟨幅⟩` 組で定義されることを思い出すと、LaTeX ではフォントの太さと幅を選ぶ際に使う追加の識別子が 2 つ用意されています:

* `m?` は、中程度の太さを選び、現在の幅設定は変更しないことを意味します。
* `?m` は、現在の太さは変更せず、中程度の幅を選ぶことを意味します。

#### 「仮想」シェイプ

LaTeX は、いわゆる「仮想」シェイプを 2 つサポートしています。「仮想」という用語は、これらが単に `\fontshape` コマンドに適用するためのパラメータとしてのみ意図されていることを表しています。—これらのシェイプは実際のフォントとしては存在しません。

| **仮想シェイプ識別子** | **動作**               | **コマンド**        | **宣言**      | **注記**                                                                                                                |
| ------------- | -------------------- | --------------- | ----------- | --------------------------------------------------------------------------------------------------------------------- |
| `up`          | 立体シェイプに戻ります。         | `\textup{...}`  | `\upshape`  | シェイプを立体に変更しますが、スモールキャップスシェイプは保持されます。たとえば、up は次の `scit` シェイプを `sc`に変更します。奇妙な点：現在のシェイプが `sc` の場合、up は通常シェイプに変更します（`n`). |
| `ucl`         | 大文字/小文字の文字シェイプに戻ります。 | `\textulc{...}` | `\uclshape` | フォントシェイプを大文字/小文字に変更しますが、イタリック、斜体、またはスワッシュのシェイプは変更しません。                                                                |

## 次のステップで

ステップ 3 では、LaTeX のデフォルトフォントを可変フォントに置き換える方法を示します。

[はじめに](https://www.overleaf.com/learn/latex/Articles/How_to_use_OpenType_variable_fonts_with_LaTeX?preview=true) [ステップ 1](https://www.overleaf.com/learn/latex/Articles/Step_1:_Setting_up_an_Overleaf_project_to_use_variable_fonts?preview=true) [ステップ 2](https://www.overleaf.com/learn/latex/Articles/Step_2:_An_introduction_to_LaTeX_fonts?preview=true) [ステップ 3](https://www.overleaf.com/learn/latex/Articles/Step_3:_Replacing_LaTeX’s_default_fonts_with_variable_fonts?preview=true) [ステップ 4](https://www.overleaf.com/learn/latex/Articles/Step_4:_How_to_configure_an_italic_variable_font_using_fontspec?preview=true) [ステップ 5](https://www.overleaf.com/learn/latex/Articles/Step_5:_LaTeX_font_weights_and_named_instances_of_variable_fonts?preview=true) [ステップ 6](https://www.overleaf.com/learn/latex/Articles/Step_6:_Using_variable_fonts_to_add_bold_fonts_to_an_Overleaf_project?preview=true) [ステップ 7](https://www.overleaf.com/learn/latex/Articles/Step_7:_Using_Noto_Sans_and_Roboto_Mono_variable_fonts_with_LaTeX?preview=true) [ステップ 8](https://www.overleaf.com/learn/latex/Articles/Step_8:_How_to_create_a_simple_LaTeX_package_to_configure_your_variable_fonts?preview=true) [例とプロジェクト](https://www.overleaf.com/learn/latex/Articles/Overleaf_projects_showing_how_to_use_variable_fonts_with_LaTeX?preview=true)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ja/xiang-xi-ji-shi/38-step-2-an-introduction-to-latex-fonts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
