> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/it/caratteri/02-font-typefaces.md).

# Famiglie di caratteri

## Introduzione

Per impostazione predefinita, LaTeX compone i documenti usando la $$\text{Computer Modern}$$ famiglia di caratteri tipografici, ma puoi usare i pacchetti LaTeX per utilizzare font diversi in base alle tue esigenze o preferenze.

## Cambiare i font predefiniti del documento

Ad esempio, aggiungendo `\usepackage{tgbonum}` al preambolo del documento, LaTeX userà la famiglia di font TEX Gyre Bonum per comporre il tuo documento:

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

\begin{document}
Questo documento è un documento di esempio per testare i font
famiglie e i caratteri tipografici.

Questo testo usa un carattere tipografico diverso
\end{document}
```

[Apri questo esempio in 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)

L'immagine seguente mostra l'output prodotto dall'esempio sopra:

![FontTypefacesEx1OLV2.png](/files/129947689f93d0051d7ecad45cccd38e60734ff5)

## Cambiare il carattere tipografico predefinito

Il font può essere cambiato anche per un elemento specifico del documento.

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

\begin{document}
Questo documento è un documento di esempio per
testare famiglie di font e caratteri tipografici.

{\fontfamily{qcr}\selectfont
Questo testo usa un carattere tipografico diverso
}
\end{document}
```

[Apri questo esempio in 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)

L'immagine seguente mostra l'output prodotto dall'esempio sopra:

![FontTypefacesEx2.png](/files/0b9779a68b67934bd1c61f860ae980dac17abe18)

Il comando `\fontfamily{qcr}\selectfont` imposterà il *TeX gyre cursor* carattere tipografico, il cui codice font è `qcr`, per il testo all'interno delle parentesi graffe. Sono disponibili molti altri caratteri tipografici LaTeX, vedi il [guida di riferimento](#reference-guide).

I caratteri tipografici LaTeX più popolari hanno origine da quattro famiglie:

* *Computer Modern* (predefinito nelle classi standard di LaTeX): CM Roman, CM Sans Serif, CM Typewriter
* *Latin Modern*: LM Roman, LM Sans Serif, LM Typewriter, LM Dunhill
* *Font PostScript*: Times, Utopia/Fourier, Palatino, Bookman, Helvetica, Courier
* *TeX Gyre*

## Guida di riferimento

**caratteri tipografici Roman, Sans Serif e Typewriter**

| Font                         | "nome del pacchetto font" | "codice font" | Esempio                                                               |
| ---------------------------- | ------------------------- | ------------- | --------------------------------------------------------------------- |
| Computer Modern Roman        |                           | `cmr`         | ![Typeface-cmr.png](/files/5245fc1db0fe46d6123a88dfb442240ee8e658df)  |
| Latin Modern Roman           | `lmodern`                 | `lmr`         | ![Typeface-lmr.png](/files/55f4153bb6993dc59da542b7a0bb69a0f56d04ec)  |
| Latin Modern Dunhill         | `lmodern`                 | `lmdh`        | ![Typeface-lmdh.png](/files/26f2c0231c88dc805af7ec71341e0da7430a25a2) |
| TeX Gyre Termes              | `tgtermes`                | `qtm`         | ![Typeface-qtm.png](/files/e7d3900e8e61f3b274d4702cfdef8f8cc0e34c90)  |
| TeX Gyre Pagella             | `tgpagella`               | `qpl`         | ![Typeface-qpl.png](/files/2165d70092a524f86cb1858d76bde4acae00e199)  |
| TeX Gyre Bonum               | `tgbonum`                 | `qbk`         | ![Typeface-qbk.png](/files/a06c7b0f37b96075ff45b6694885a52e858bb271)  |
| TeX Gyre Schola              | `tgschola`                | `qcs`         | ![Typeface-qsc.png](/files/6733503b508746cbd1d0e7550d522ffb782b8c59)  |
| Times                        | `mathptmx`                | `ptm`         | ![Typeface-ptm.png](/files/964bfdb2b11bdc56d958355bae395bd45b56aa0c)  |
| Utopia / Fourier             | `utopia` / `fourier`      | `put`         | ![Typeface-put.png](/files/7a1bde9cfd2997eaa9be8a5c9b582e07cedf57c1)  |
| Palatino                     | `palatino`                | `ppl`         | ![Typeface-ppl.png](/files/5a4d69ce656a38d365d9c6907c5d5f077a092b2b)  |
| Bookman                      | `bookman`                 | `pbk`         | ![Typeface-pbk.png](/files/27a427288924f553fb01381ddb9421770bfac7c3)  |
| Charter                      | `charter`                 | `bch`         | ![Typeface-bch.png](/files/1d14347307d9b42672e1bc941af881b175a69b68)  |
| Computer Modern Sans Serif   |                           | `cmss`        | ![Typeface-cmss.png](/files/963f5f05396a581c9ec49cdc33c5c16a63795ff5) |
| Latin Modern Sans Serif      | `lmodern`                 | `lmss`        | ![Typeface-lmss.png](/files/07e54eebf722e8e103df534efa0897268b17e8f4) |
| TeX Gyre Adventor            | `tgadventor`              | `qag`         | ![Typeface-qag.png](/files/29f0bfa5d8676dfc41f2cb46fbbf55263ef2adf5)  |
| TeX Gyre Heros               | `tgheros`                 | `qhv`         | ![Typeface-qhv.png](/files/149653129c125ef4427a5cff410a599a23d35536)  |
| Helvetica                    | `helvet`                  | `phv`         | ![Typeface-phv.png](/files/be54476c575b7205dcf232126530f963cc696617)  |
| Computer Modern Typewriter   |                           | `cmtt`        | ![Typeface-cmtt.png](/files/de274f1e601451b9fb4151c989d733bf9ea74dd2) |
| Latin Modern Sans Typewriter | `lmodern`                 | `lmtt`        | ![Typeface-lmtt.png](/files/c8b6e7ff6727dccacafefce941bf70d1aff5b39a) |
| TeX Gyre Cursor              | `tgcursor`                | `qcr`         | ![Typeface-qcr.png](/files/0e0a58aa24493c8a6e0fb74ee381a2b16f569c4a)  |
| Courier                      | `courier`                 | `pcr`         | ![Typeface-pcr.png](/files/a8f2e34bfca2aafe34079d1ac30479cc6cfb86ff)  |

Vedi anche [Il catalogo dei font di LaTeX](https://tug.org/FontCatalogue/), anche se va notato che non tutti i font elencati nel catalogo sono distribuiti con una licenza che ne consente la distribuzione come parte di TeX Live e, quindi, non tutti quei font sono disponibili su Overleaf.

## Approfondimenti

Per ulteriori informazioni vedi:

* [Il catalogo dei font di LaTeX](https://tug.org/FontCatalogue/).
* [Grassetto, corsivo e sottolineatura](/latex/it/concetti-di-base-di-latex/03-bold-italics-and-underlining.md)
* [Dimensioni, famiglie e stili dei caratteri](/latex/it/caratteri/01-font-sizes-families-and-styles.md)
* [Supporto dei font moderni con XeLaTeX](/latex/it/caratteri/03-xelatex.md)
* [Formattazione dei paragrafi](/latex/it/formattazione/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Interruzioni di riga e spazi vuoti](/latex/it/formattazione/05-line-breaks-and-blank-spaces.md)
* [Colonne multiple](/latex/it/formattazione/09-multiple-columns.md)
* [Documenti a facciata singola e doppia](/latex/it/formattazione/08-single-sided-and-double-sided-documents.md)
* [Gestione in un grande progetto](/latex/it/struttura-del-documento/07-management-in-a-large-project.md)
* [Progetti LaTeX con più file](/latex/it/struttura-del-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://ayakaleaf-pro.ayaka.space/latex/it/caratteri/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.
