> 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/overleaf-learn-latex-pt/fontes/02-font-typefaces.md).

# Tipos de letra

## Introdução

Por padrão, o LaTeX compõe documentos usando a $$\text{Computer Modern}$$ família de tipos de letra, mas você pode usar pacotes LaTeX para utilizar fontes diferentes de acordo com suas necessidades ou preferências.

## Alterando as fontes padrão do documento

Por exemplo, ao adicionar `\usepackage{tgbonum}` ao preâmbulo do documento, o LaTeX usará a família de fontes TEX Gyre Bonum para compor o seu documento:

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

\begin{document}
Este documento é um documento de exemplo para testar fontes
e tipos de letra.

Este texto usa um tipo de letra diferente
\end{document}
```

[Abra este exemplo no 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)

A imagem a seguir mostra a saída produzida pelo exemplo acima:

![FontTypefacesEx1OLV2.png](/files/4d86166081854ffe21ca72b170070a683faa0bb0)

## Alterando o tipo de letra padrão

A fonte também pode ser alterada para um elemento específico no documento.

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

\begin{document}
Este documento é um documento de exemplo para
testar fontes e tipos de letra.

{\fontfamily{qcr}\selectfont
Este texto usa um tipo de letra diferente
}
\end{document}
```

[Abra este exemplo no 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)

A imagem a seguir mostra a saída produzida pelo exemplo acima:

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

O comando `\fontfamily{qcr}\selectfont` definirá a *TeX Gyre Cursor* tipo de letra, cujo código de fonte é `qcr`, para o texto dentro das chaves. Há muitos mais tipos de letra LaTeX disponíveis, veja o [guia de referência](#reference-guide).

Os tipos de letra populares do LaTeX têm origem em quatro famílias:

* *Computer Modern* (padrão nas classes padrão do LaTeX): CM Roman, CM Sans Serif, CM Typewriter
* *Latin Modern*: LM Roman, LM Sans Serif, LM Typewriter, LM Dunhill
* *Fontes PostScript*: Times, Utopia/Fourier, Palatino, Bookman, Helvetica, Courier
* *TeX Gyre*

## Guia de referência

**tipos de letra Roman, Sans Serif e Typewriter**

| Fonte                        | "nome do pacote da fonte" | "código da fonte" | Exemplo                                                               |
| ---------------------------- | ------------------------- | ----------------- | --------------------------------------------------------------------- |
| Computer Modern Roman        |                           | `cmr`             | ![Typeface-cmr.png](/files/0a18cc64dd40c32ccfdd2887bc7f7a6fe0851c7a)  |
| Latin Modern Roman           | `lmodern`                 | `lmr`             | ![Typeface-lmr.png](/files/75033c4c331707d842d28f9f5b0bc51de8c74c07)  |
| Latin Modern Dunhill         | `lmodern`                 | `lmdh`            | ![Typeface-lmdh.png](/files/fe4cf580c9b6a09439e8bea8cca9cb573dd2d8ff) |
| TeX Gyre Termes              | `tgtermes`                | `qtm`             | ![Typeface-qtm.png](/files/510fd17f8dc9c2a26bf4029222fa31131aadf95a)  |
| TeX Gyre Pagella             | `tgpagella`               | `qpl`             | ![Typeface-qpl.png](/files/c5533706a3b30cecff12ed32804c4d31171884b5)  |
| TeX Gyre Bonum               | `tgbonum`                 | `qbk`             | ![Typeface-qbk.png](/files/8d80954dbd1660fae94b7ab88f122c433b86c73b)  |
| TeX Gyre Schola              | `tgschola`                | `qcs`             | ![Typeface-qsc.png](/files/7dc512359b5e50db8583d500043f7bfbd052ccb1)  |
| Times                        | `mathptmx`                | `ptm`             | ![Typeface-ptm.png](/files/622249674938c965eab27e843fa598837bdac496)  |
| Utopia / Fourier             | `utopia` / `fourier`      | `put`             | ![Typeface-put.png](/files/56943780f02f275ec126b5686f0a4447f5481fd1)  |
| Palatino                     | `palatino`                | `ppl`             | ![Typeface-ppl.png](/files/079334a3513059cfd204e129657662d0dec7b658)  |
| Bookman                      | `bookman`                 | `pbk`             | ![Typeface-pbk.png](/files/28c5deac2feaf32e6a46ff89efb4a7c98f2b241c)  |
| Charter                      | `charter`                 | `bch`             | ![Typeface-bch.png](/files/92285254e978387caa7979243056f6776fda6869)  |
| Computer Modern Sans Serif   |                           | `cmss`            | ![Typeface-cmss.png](/files/50d01e59afd4cb4aae185a67768be66a0ec7be8c) |
| Latin Modern Sans Serif      | `lmodern`                 | `lmss`            | ![Typeface-lmss.png](/files/27f26233f78c0d01f57eade3b0a60c2e60856e7e) |
| TeX Gyre Adventor            | `tgadventor`              | `qag`             | ![Typeface-qag.png](/files/9d7604cf86a4fb8f13d9529380a94e410b5255fd)  |
| TeX Gyre Heros               | `tgheros`                 | `qhv`             | ![Typeface-qhv.png](/files/4b613eadcfb70b59cbae6964b582296ae1caa2e1)  |
| Helvetica                    | `helvet`                  | `phv`             | ![Typeface-phv.png](/files/0e2356b8e572c12bfbde6e9e6acb1b00fbcfc1d6)  |
| Computer Modern Typewriter   |                           | `cmtt`            | ![Typeface-cmtt.png](/files/2de35a171b78092b117e583d808fcd06214a07bb) |
| Latin Modern Sans Typewriter | `lmodern`                 | `lmtt`            | ![Typeface-lmtt.png](/files/4af82e5f49cfa6edb1b9bbbdd703cb44f7a2df21) |
| TeX Gyre Cursor              | `tgcursor`                | `qcr`             | ![Typeface-qcr.png](/files/8d99477b70309871fdaa7871e8cbeadfb6f25017)  |
| Courier                      | `courier`                 | `pcr`             | ![Typeface-pcr.png](/files/d1f9051ee30beff6121fac58dff59e902b000ae5)  |

Veja também [Catálogo de Fontes do LaTeX](https://tug.org/FontCatalogue/), embora observe que nem todas as fontes listadas no catálogo são distribuídas com uma licença que permita que sejam distribuídas como parte do TeX Live e, portanto, nem todas essas fontes estão disponíveis no Overleaf.

## Leitura adicional

Para mais informações, consulta:

* [Catálogo de Fontes do LaTeX](https://tug.org/FontCatalogue/).
* [Negrito, itálico e sublinhado](/latex/overleaf-learn-latex-pt/nocoes-basicas-de-latex/03-bold-italics-and-underlining.md)
* [Tamanhos, famílias e estilos de fonte](/latex/overleaf-learn-latex-pt/fontes/01-font-sizes-families-and-styles.md)
* [Suporte a fontes modernas com XeLaTeX](/latex/overleaf-learn-latex-pt/fontes/03-xelatex.md)
* [Formatação de parágrafos](/latex/overleaf-learn-latex-pt/formatacao/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Quebras de linha e espaços em branco](/latex/overleaf-learn-latex-pt/formatacao/05-line-breaks-and-blank-spaces.md)
* [Múltiplas colunas](/latex/overleaf-learn-latex-pt/formatacao/09-multiple-columns.md)
* [Documentos de uma face e de dupla face](/latex/overleaf-learn-latex-pt/formatacao/08-single-sided-and-double-sided-documents.md)
* [Gestão num grande projeto](/latex/overleaf-learn-latex-pt/estrutura-do-documento/07-management-in-a-large-project.md)
* [Projetos LaTeX com vários ficheiros](/latex/overleaf-learn-latex-pt/estrutura-do-documento/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/overleaf-learn-latex-pt/fontes/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.
