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

# Kroje pisma

## Wstęp

Domyślnie LaTeX składa dokumenty, używając $$\text{Computer Modern}$$ rodziny krojów pisma, ale możesz używać pakietów LaTeX, aby korzystać z różnych czcionek zgodnie ze swoimi potrzebami lub preferencjami.

## Zmiana domyślnych czcionek dokumentu

Na przykład, dodając `\usepackage{tgbonum}` do preambuły dokumentu, LaTeX będzie używał rodziny czcionek TEX Gyre Bonum do składu twojego dokumentu:

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

\begin{document}
Ten dokument jest przykładowym dokumentem do testowania czcionek
rodzin i krojów pisma.

Ten tekst używa innego kroju pisma
\end{document}
```

[Otwórz ten przykład w 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)

Poniższy obraz pokazuje wynik wygenerowany przez powyższy przykład:

![FontTypefacesEx1OLV2.png](/files/01c6ef1cdf749fe1c352ed6a965b8c36911b5920)

## Zmiana domyślnego kroju pisma

Czcionkę można również zmienić dla konkretnego elementu w dokumencie.

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

\begin{document}
Ten dokument jest przykładowym dokumentem do
testowania rodzin czcionek i krojów pisma.

{\fontfamily{qcr}\selectfont
Ten tekst używa innego kroju pisma
}
\end{document}
```

[Otwórz ten przykład w 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)

Poniższy obraz pokazuje wynik wygenerowany przez powyższy przykład:

![FontTypefacesEx2.png](/files/9d4b84f67a8683ca582a269d4059a2795ae98c98)

Polecenie `\fontfamily{qcr}\selectfont` ustawi *TeX Gyre Cursor* krój pisma, którego kod czcionki to `qcr`, dla tekstu wewnątrz nawiasów klamrowych. Dostępnych jest znacznie więcej krojów pisma LaTeX, zobacz [przewodnik referencyjny](#reference-guide).

Popularne kroje pisma LaTeX wywodzą się z czterech rodzin:

* *Computer Modern* (domyślny w standardowych klasach LaTeX): CM Roman, CM Sans Serif, CM Typewriter
* *Latin Modern*: LM Roman, LM Sans Serif, LM Typewriter, LM Dunhill
* *Czcionki PostScript*: Times, Utopia/Fourier, Palatino, Bookman, Helvetica, Courier
* *TeX Gyre*

## Przewodnik referencyjny

**kroje pisma Roman, Sans Serif i Typewriter**

| Czcionka                     | "nazwa pakietu czcionek" | "kod czcionki" | Przykład                                                              |
| ---------------------------- | ------------------------ | -------------- | --------------------------------------------------------------------- |
| Computer Modern Roman        |                          | `cmr`          | ![Typeface-cmr.png](/files/b0c706626ea4f2e329946fa219017afc66798045)  |
| Latin Modern Roman           | `lmodern`                | `lmr`          | ![Typeface-lmr.png](/files/3eb94f7545d66acf6a27623a169226e5c617117f)  |
| Latin Modern Dunhill         | `lmodern`                | `lmdh`         | ![Typeface-lmdh.png](/files/96fa1f1353bc7261154a8d5fcfc4570a2f3b6709) |
| TeX Gyre Termes              | `tgtermes`               | `qtm`          | ![Typeface-qtm.png](/files/516fe0e79c98b3e2c10f33d8d566dd71916dc308)  |
| TeX Gyre Pagella             | `tgpagella`              | `qpl`          | ![Typeface-qpl.png](/files/1b4bc3a644e0496b2a036c9c049c826302ada8c5)  |
| TeX Gyre Bonum               | `tgbonum`                | `qbk`          | ![Typeface-qbk.png](/files/fda7c3e7d2fd776f080376eb1d06331a9b7abe04)  |
| TeX Gyre Schola              | `tgschola`               | `qcs`          | ![Typeface-qsc.png](/files/eb50f5f6cae7d128590c695df82f152fcd8087da)  |
| Times                        | `mathptmx`               | `ptm`          | ![Typeface-ptm.png](/files/cd5027390848a715676f0927d1b4a833d7e14330)  |
| Utopia / Fourier             | `utopia` / `fourier`     | `put`          | ![Typeface-put.png](/files/a358c535fdd536c4e62942e023da7b9ef5a5f0c0)  |
| Palatino                     | `palatino`               | `ppl`          | ![Typeface-ppl.png](/files/6ff23a9ece97f6ddeb37f531e5632177436d64ef)  |
| Bookman                      | `bookman`                | `pbk`          | ![Typeface-pbk.png](/files/6c8df49c2b03e53ffa00cc69a030941a7898cb05)  |
| Charter                      | `charter`                | `bch`          | ![Typeface-bch.png](/files/024dbee18c69856f919f3dcda2c6bcbd2676e8ff)  |
| Computer Modern Sans Serif   |                          | `cmss`         | ![Typeface-cmss.png](/files/cfffa8a38222bce33506e9997b68d74e0375fb14) |
| Latin Modern Sans Serif      | `lmodern`                | `lmss`         | ![Typeface-lmss.png](/files/4f64774f57ced9762fad6dea46303ca6a69f2d74) |
| TeX Gyre Adventor            | `tgadventor`             | `qag`          | ![Typeface-qag.png](/files/c59050f4d058246504c3f83da590a8bf71c67c7e)  |
| TeX Gyre Heros               | `tgheros`                | `qhv`          | ![Typeface-qhv.png](/files/054c43f693c2bc9bf05f929d0c229d86ae399a41)  |
| Helvetica                    | `helvet`                 | `phv`          | ![Typeface-phv.png](/files/d0e2d55ce298cb78a67b07e36196643ea1b5a022)  |
| Computer Modern Typewriter   |                          | `cmtt`         | ![Typeface-cmtt.png](/files/e16321ff23643dc5df82b1ad434c1cb6d9d3a479) |
| Latin Modern Sans Typewriter | `lmodern`                | `lmtt`         | ![Typeface-lmtt.png](/files/07c4a9ec9d3c09783b3ab6b80fddf08e980ccc47) |
| TeX Gyre Cursor              | `tgcursor`               | `qcr`          | ![Typeface-qcr.png](/files/9ca18c7e42efc945022d32a46b8cd0ce3c7b5567)  |
| Courier                      | `courier`                | `pcr`          | ![Typeface-pcr.png](/files/99ac0fb0c575d64e182d201b9747ba07219bf8bc)  |

Zobacz także [Katalog czcionek LaTeX](https://tug.org/FontCatalogue/), należy jednak pamiętać, że nie wszystkie czcionki wymienione w katalogu są rozpowszechniane na licencji, która pozwala na ich dystrybucję jako części TeX Live, a zatem nie wszystkie te czcionki są dostępne w Overleaf.

## Dalsza lektura

Więcej informacji znajdziesz w:

* [Katalog czcionek LaTeX](https://tug.org/FontCatalogue/).
* [Pogrubienie, kursywa i podkreślenie](/latex/pl/podstawy-latex-a/03-bold-italics-and-underlining.md)
* [Rozmiary czcionek, kroje i style](/latex/pl/czcionki/01-font-sizes-families-and-styles.md)
* [Obsługa nowoczesnych czcionek w XeLaTeX](/latex/pl/czcionki/03-xelatex.md)
* [Formatowanie akapitu](/latex/pl/formatowanie/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Podziały wierszy i puste spacje](/latex/pl/formatowanie/05-line-breaks-and-blank-spaces.md)
* [Wiele kolumn](/latex/pl/formatowanie/09-multiple-columns.md)
* [Dokumenty jednostronne i dwustronne](/latex/pl/formatowanie/08-single-sided-and-double-sided-documents.md)
* [Zarządzanie w dużym projekcie](/latex/pl/struktura-dokumentu/07-management-in-a-large-project.md)
* [Wieloplikowe projekty LaTeX](/latex/pl/struktura-dokumentu/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/pl/czcionki/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.
