> 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/fonto/02-font-typefaces.md).

# フォント書体

## はじめに

デフォルトでは、LaTeX は文書を次のフォントで組版します。 $$\text{Computer Modern}$$ 書体ファミリーですが、必要や好みに応じて別のフォントを使うために LaTeX パッケージを利用できます。

## デフォルトの文書フォントの変更

たとえば、 `\usepackage{tgbonum}` を文書のプリアンブルに追加すると、LaTeX は TEX Gyre Bonum フォントファミリーを使って文書を組版します。

```latex
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tgbonum}

\begin{document}
この文書は、フォント
ファミリーとフォント書体をテストするためのサンプル文書です。

このテキストは別のフォント書体を使っています
\end{document}
```

[この例をOverleafで開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Change+LaTeX+fonts\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BT1%5D%7Bfontenc%7D%0A%5Cusepackage%7Btgbonum%7D%0A%0A%5Cbegin%7Bdocument%7D%0AThis+document+is+a+sample+document+to+test+font+%0Afamilies+and+font+typefaces.%0A%0AThis+text+uses+a+different+font+typeface%0A%5Cend%7Bdocument%7D)

次の画像は、上の例で生成された出力を示しています。

![FontTypefacesEx1OLV2.png](/files/6f5f01237a71e807f4c5e85f0afe09da35bd4ae4)

## デフォルトのフォント書体の変更

文書内の特定の要素に対してもフォントを変更できます。

```latex
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tgbonum}

\begin{document}
この文書は、
フォントファミリーとフォント書体をテストするためのサンプル文書です。

{\fontfamily{qcr}\selectfont
このテキストは別のフォント書体を使っています
}
\end{document}
```

[この例をOverleafで開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Change+LaTeX+fonts\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BT1%5D%7Bfontenc%7D%0A%5Cusepackage%7Btgbonum%7D%0A%0A%5Cbegin%7Bdocument%7D%0AThis+document+is+a+sample+document+to+%0Atest+font+families+and+font+typefaces.%0A%0A%7B%5Cfontfamily%7Bqcr%7D%5Cselectfont%0AThis+text+uses+a+different+font+typeface%0A%7D%0A%5Cend%7Bdocument%7D)

次の画像は、上の例で生成された出力を示しています。

![FontTypefacesEx2.png](/files/bc8095984c99cd6d92d8f2dbd9ef488113bef04c)

コマンド `\fontfamily{qcr}\selectfont` は、 *TeX Gyre Cursor* フォント書体を設定します。このフォントコードは `qcr`で、波括弧内のテキストに適用されます。さらに多くの LaTeX フォント書体が利用可能です。 [リファレンスガイド](#reference-guide).

一般的な LaTeX のフォント書体は、次の 4 つのファミリーに由来します。

* *Computer Modern* （標準的な LaTeX クラスのデフォルト）：CM Roman、CM Sans Serif、CM Typewriter
* *Latin Modern*：LM Roman、LM Sans Serif、LM Typewriter、LM Dunhill
* *Post Script Fonts*：Times、Utopia/Fourier、Palatino、Bookman、Helvetica、Courier
* *TeX Gyre*

## リファレンスガイド

**Roman、Sans Serif、Typewriter の書体**

| フォント                         | 「フォントパッケージ名」         | 「フォントコード」 | 例                                                                     |
| ---------------------------- | -------------------- | --------- | --------------------------------------------------------------------- |
| Computer Modern Roman        |                      | `cmr`     | ![Typeface-cmr.png](/files/da45e4af7cedecbced0b8463cc7713ddcf55362b)  |
| Latin Modern Roman           | `lmodern`            | `lmr`     | ![Typeface-lmr.png](/files/978555640628d28f5242d65e7715a36572f601ed)  |
| Latin Modern Dunhill         | `lmodern`            | `lmdh`    | ![Typeface-lmdh.png](/files/2c15ecd9e9c12bb65da114c73a20fea6c70b696d) |
| TeX Gyre Termes              | `tgtermes`           | `qtm`     | ![Typeface-qtm.png](/files/089ec184ba18333eb888ccfafe38805cde3bae57)  |
| TeX Gyre Pagella             | `tgpagella`          | `qpl`     | ![Typeface-qpl.png](/files/9ca72fe6a5354d086fb959b5428bcf9a4a9ef7f5)  |
| TeX Gyre Bonum               | `tgbonum`            | `qbk`     | ![Typeface-qbk.png](/files/085c7ebc3a624365d0c2745a901451456704018b)  |
| TeX Gyre Schola              | `tgschola`           | `qcs`     | ![Typeface-qsc.png](/files/b9df5c57fa44e2bfab455f5ce0399180ed89a306)  |
| Times                        | `mathptmx`           | `ptm`     | ![Typeface-ptm.png](/files/ecbb5b72da7954f1abf5a05cb665a1d0adcbce50)  |
| Utopia / Fourier             | `utopia` / `fourier` | `put`     | ![Typeface-put.png](/files/733d3eddbb23a0591d33d3badad0e1e43b1956b0)  |
| Palatino                     | `palatino`           | `ppl`     | ![Typeface-ppl.png](/files/62e56cecd50ea674a082be0358e722faec4aa12a)  |
| Bookman                      | `bookman`            | `pbk`     | ![Typeface-pbk.png](/files/e08c2502ffb7561acb25ff27d4078c5d12167d9e)  |
| Charter                      | `charter`            | `bch`     | ![Typeface-bch.png](/files/5c100418f1ea279d71fbf5c3486a6bbcea33c5a5)  |
| Computer Modern Sans Serif   |                      | `cmss`    | ![Typeface-cmss.png](/files/aca8700f2518c5e896907f89f4648458e07ff56f) |
| Latin Modern Sans Serif      | `lmodern`            | `lmss`    | ![Typeface-lmss.png](/files/5a8796dbab3fb4635ec0e6a4ba6aa7f7dbbda225) |
| TeX Gyre Adventor            | `tgadventor`         | `qag`     | ![Typeface-qag.png](/files/6639eb36e129a3378679b987869175d89395500e)  |
| TeX Gyre Heros               | `tgheros`            | `qhv`     | ![Typeface-qhv.png](/files/42e9a9cdeea1fa39ae110f3c6c7241384e3e59af)  |
| Helvetica                    | `helvet`             | `phv`     | ![Typeface-phv.png](/files/735e66456b644022550123601eafa6bb26644a7b)  |
| Computer Modern Typewriter   |                      | `cmtt`    | ![Typeface-cmtt.png](/files/0bb0721c451918be49602ff8618ea45beb068efa) |
| Latin Modern Sans Typewriter | `lmodern`            | `lmtt`    | ![Typeface-lmtt.png](/files/4c6cf1f3c04207dbedc7b62c1ce62861cddc657a) |
| TeX Gyre Cursor              | `tgcursor`           | `qcr`     | ![Typeface-qcr.png](/files/271ff143d06126727bf83cb7c244fc36cf9da00f)  |
| Courier                      | `courier`            | `pcr`     | ![Typeface-pcr.png](/files/593fcf928f2f7140fc38e3d7d9688bb00eea49d8)  |

こちらも参照 [The LaTeX Font Catalogue](https://tug.org/FontCatalogue/)。ただし、カタログに掲載されているフォントのすべてが TeX Live の一部として配布できるライセンスで配布されているわけではないため、それらのフォントのすべてが Overleaf で利用できるわけではありません。

## 参考文献

詳細は以下を参照してください:

* [The LaTeX Font Catalogue](https://tug.org/FontCatalogue/).
* [太字、斜体、下線](/latex/ja/latexno/03-bold-italics-and-underlining.md)
* [フォントサイズ、ファミリー、スタイル](/latex/ja/fonto/01-font-sizes-families-and-styles.md)
* [XeLaTeX で現代的なフォントをサポートする](/latex/ja/fonto/03-xelatex.md)
* [段落の書式設定](/latex/ja/shu-shi-she-ding/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [改行と空白](/latex/ja/shu-shi-she-ding/05-line-breaks-and-blank-spaces.md)
* [複数列](/latex/ja/shu-shi-she-ding/09-multiple-columns.md)
* [片面印刷と両面印刷の文書](/latex/ja/shu-shi-she-ding/08-single-sided-and-double-sided-documents.md)
* [大規模プロジェクトでの管理](/latex/ja/wen-shu-gou-zao/07-management-in-a-large-project.md)
* [複数ファイルの LaTeX プロジェクト](/latex/ja/wen-shu-gou-zao/08-multi-file-latex-projects.md)


---

# 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/fonto/02-font-typefaces.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.
