> 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/ar/alkhtwt/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/80d88c90b93990ddbbeb889676cf77c9f9e41955)

## تغيير محرف الخط الافتراضي

يمكن أيضًا تغيير الخط لعنصر محدد في المستند.

```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/b5666ba76f0972ca4346731008b0dafff9be78a2)

الأمر `\fontfamily{qcr}\selectfont` سيضبط *TeX gyre cursor* محرف الخط، الذي رمز خطه هو `qcr`، للنص داخل الأقواس. تتوفر العديد من محارف الخطوط الأخرى في LaTeX، انظر إلى [دليل المراجع](#reference-guide).

تنتمي محارف الخطوط الشائعة في LaTeX إلى أربع عائلات:

* *Computer Modern* (الافتراضي في فئات LaTeX القياسية): CM Roman، CM Sans Serif، CM Typewriter
* *Latin Modern*: LM Roman، LM Sans Serif، LM Typewriter، LM Dunhill
* *خطوط Post Script*: Times، Utopia/Fourier، Palatino، Bookman، Helvetica، Courier
* *TeX Gyre*

## دليل المراجع

**محارف Roman وSans Serif وTypewriter**

| الخط                         | "اسم حزمة الخط"      | "رمز الخط" | مثال                                                                  |
| ---------------------------- | -------------------- | ---------- | --------------------------------------------------------------------- |
| Computer Modern Roman        |                      | `cmr`      | ![Typeface-cmr.png](/files/28c6c143e90e694948b6711d1ebc2489bf3c47f5)  |
| Latin Modern Roman           | `lmodern`            | `lmr`      | ![Typeface-lmr.png](/files/b81cc2c95c1af8c8699a4dd937c6fb92637af7f4)  |
| Latin Modern Dunhill         | `lmodern`            | `lmdh`     | ![Typeface-lmdh.png](/files/1f2825d17b6308a1d18ab1a2dbec871d81741cdf) |
| TeX Gyre Termes              | `tgtermes`           | `qtm`      | ![Typeface-qtm.png](/files/f1ae44c0f890ec16bc5808069401b2c38439b8aa)  |
| TeX Gyre Pagella             | `tgpagella`          | `qpl`      | ![Typeface-qpl.png](/files/3ad3526983dd106e8f82b3c57fbceec3e6aebe67)  |
| TeX Gyre Bonum               | `tgbonum`            | `qbk`      | ![Typeface-qbk.png](/files/7e6b5adbb29be6d5184cab2281c01b087dd249f7)  |
| TeX Gyre Schola              | `tgschola`           | `qcs`      | ![Typeface-qsc.png](/files/ccf7ead40c1e1ad7156190c4ad87c493c8a9a7d3)  |
| Times                        | `mathptmx`           | `ptm`      | ![Typeface-ptm.png](/files/6f9ae883fb572e41f586afc11eccd349a9ca391e)  |
| Utopia / Fourier             | `utopia` / `fourier` | `put`      | ![Typeface-put.png](/files/28120982da37c797b2c40027baee6f638c6e3cc2)  |
| Palatino                     | `palatino`           | `ppl`      | ![Typeface-ppl.png](/files/a04f07fc2e252f2ad5702db860b5f98b4accc892)  |
| Bookman                      | `bookman`            | `pbk`      | ![Typeface-pbk.png](/files/d32a4822a2c3d9d094a1e6fa859b54853ecaf052)  |
| Charter                      | `charter`            | `bch`      | ![Typeface-bch.png](/files/8aa5a105e1e5f589663e39eba843ff1338f20b0d)  |
| Computer Modern Sans Serif   |                      | `cmss`     | ![Typeface-cmss.png](/files/5360ef3cfa57ee33f8e2cf0a570e1fb0436103ca) |
| Latin Modern Sans Serif      | `lmodern`            | `lmss`     | ![Typeface-lmss.png](/files/d294309ef4cb535d3a8ddca1a13317639448b1f9) |
| TeX Gyre Adventor            | `tgadventor`         | `qag`      | ![Typeface-qag.png](/files/1e36c52439b573a032622bcd7f07110da8852943)  |
| TeX Gyre Heros               | `tgheros`            | `qhv`      | ![Typeface-qhv.png](/files/dc79351a07d9cf030f32ac9bd7eac005060e9829)  |
| Helvetica                    | `helvet`             | `phv`      | ![Typeface-phv.png](/files/37f83d4728a26c3c623f6d859556c237f58f9fe5)  |
| Computer Modern Typewriter   |                      | `cmtt`     | ![Typeface-cmtt.png](/files/042e89a50c182338f056a11c9736d4df08a47adc) |
| Latin Modern Sans Typewriter | `lmodern`            | `lmtt`     | ![Typeface-lmtt.png](/files/9145fdd41aa7795afbdd16b12ff806bf71b85cd7) |
| TeX Gyre Cursor              | `tgcursor`           | `qcr`      | ![Typeface-qcr.png](/files/ecd445b4409bf42c0b5619854ba3aa0bd5bb1b5a)  |
| Courier                      | `courier`            | `pcr`      | ![Typeface-pcr.png](/files/317d3a92e7ec90352684722858136c899e05fe59)  |

انظر أيضًا [كتالوج خطوط LaTeX](https://tug.org/FontCatalogue/)، مع ملاحظة أن ليس كل الخطوط المدرجة في الكتالوج تُوزَّع بترخيص يسمح بتوزيعها كجزء من TeX Live، ولذلك ليست كل تلك الخطوط متاحة على Overleaf.

## قراءة إضافية

لمزيد من المعلومات، انظر:

* [كتالوج خطوط LaTeX](https://tug.org/FontCatalogue/).
* [الخط العريض والمائل والتحته خط](/latex/ar/asasyat-latex/03-bold-italics-and-underlining.md)
* [أحجام الخطوط، والعائلات، والأنماط](/latex/ar/alkhtwt/01-font-sizes-families-and-styles.md)
* [دعم الخطوط الحديثة مع XeLaTeX](/latex/ar/alkhtwt/03-xelatex.md)
* [تنسيق الفقرة](/latex/ar/altnsyq/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [فواصل الأسطر والمسافات الفارغة](/latex/ar/altnsyq/05-line-breaks-and-blank-spaces.md)
* [أعمدة متعددة](/latex/ar/altnsyq/09-multiple-columns.md)
* [المستندات أحادية الوجه ومزدوجة الوجه](/latex/ar/altnsyq/08-single-sided-and-double-sided-documents.md)
* [الإدارة في مشروع كبير](/latex/ar/bnyh-almstnd/07-management-in-a-large-project.md)
* [مشاريع LaTeX متعددة الملفات](/latex/ar/bnyh-almstnd/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/ar/alkhtwt/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.
