> 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/01-font-sizes-families-and-styles.md).

# أحجام الخطوط وعائلاتها وأنماطها

## مقدمة

يختار LaTeX عادةً الخط وحجم الخط المناسبين بناءً على البنية المنطقية للمستند (مثلًا: الأقسام). في بعض الحالات، قد ترغب في تحديد الخطوط والأحجام يدويًا.

يوضح المثال التالي كيفية استخدام أصغر حجم خط متاح في LaTeX (`\tiny`) ونمط الخط بالأحرف الكبيرة الصغيرة (`\textsc{...}`) :

```latex
هذا مثال بسيط، {\tiny سيعرض هذا أحجام خطوط مختلفة} وكذلك \textsc{أنماط خطوط مختلفة}.
```

[افتح هذا المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Font+sizes+and+styles\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AThis+is+a+simple+example%2C+%7B%5Ctiny+this+will+show+different+font+sizes%7D+and+also+%5Ctextsc%7Bdifferent+font+styles%7D.%0A%5Cend%7Bdocument%7D)

تُظهر الصورة التالية المخرجات التي ينتجها المثال أعلاه: ![FontStyles.png](/files/731ba2bd64b92f36fb1da788622a3116da9d2703)

## أحجام الخطوط

تُعرَّف أحجام الخطوط بأسماء خاصة، والحجم الفعلي ليس مطلقًا بل نسبيًا إلى حجم الخط المُعلن في `\documentclass` العبارة (انظر [إنشاء مستند في LaTeX](/latex/ar/asasyat-latex/01-learn-latex-in-30-minutes.md)).

في المثال التالي، `{\huge حجم خط ضخم}` يُعلن أن النص داخل الأقواس يجب أن يُنسَّق بحجم *ضخم* من الخط. للحصول على قائمة كاملة بأحجام الخطوط المتاحة، انظر إلى [دليل المراجع](#reference-guide).

```latex
في هذا المثال يتم ضبط {\huge حجم خط ضخم} وكذلك
‏{\footnotesize حجم الحاشية أيضًا}. توجد مجموعة كبيرة نسبيًا
من أحجام الخطوط.
```

[افتح هذا المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Huge+font+size\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AIn+this+example+the+%7B%5Chuge+huge+font+size%7D+is+set+and+%0Athe+%7B%5Cfootnotesize+Foot+note+size+also%7D.+There%27s+a+fairly+%0Alarge+set+of+font+sizes.%0A%5Cend%7Bdocument%7D)

تُظهر الصورة التالية المخرجات التي ينتجها المثال أعلاه: ![FontSizesOLV2.png](/files/b65dfa66b368948746cbf781d8075c3174105f36)

## عائلات الخطوط

افتراضيًا، في فئات LaTeX القياسية يكون النمط الافتراضي للنص عادةً خطًا رومانيًا (مستقيمًا) ذو زوائد. لاستخدام أنماط أخرى (**عائلات**) مثل بلا زوائد، وآلة كاتبة (ثابت العرض) إلخ، تحتاج إلى استخدام بعض أوامر LaTeX الخاصة، كما هو موضح في المثال أدناه:

```latex
في هذا المثال، يُستخدم أمر ومبدّل.
\texttt{يُستخدم أمر لتغيير نمط
جملة}.

\sffamily
يغيّر المبدّل النمط من هذه النقطة إلى
نهاية المستند ما لم يُستخدم مبدّل آخر.
```

[افتح هذا المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Choosing+type+styles\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AIn+this+example%2C+a+command+and+a+switch+are+used.+%0A%5Ctexttt%7BA+command+is+used+to+change+the+style+%0Aof+a+sentence%7D.%0A%0A%5Csffamily%0AA+switch+changes+the+style+from+this+point+to+%0Athe+end+of+the+document+unless+another+switch+is+used.%0A%5Cend%7Bdocument%7D)

تُظهر الصورة التالية المخرجات التي ينتجها المثال أعلاه:

![UsingFontStyles2.png](/files/05ea11e2f89d9a1f4efae809f0b06c471cabdbe7)

يمكنك ضبط استخدام خط بلا زوائد كنمط افتراضي في مستند LaTeX باستخدام الأمر:

```latex
 \renewcommand{\familydefault}{\sfdefault}
```

وبالمثل، لاستخدام خط روماني كنمط افتراضي:

```latex
 \renewcommand{\familydefault}{\rmdefault}
```

## أنماط الخط

أكثر أنماط الخط شيوعًا في LaTeX هي [الخط العريض، والمائل، وتسطير النص](/latex/ar/asasyat-latex/03-bold-italics-and-underlining.md)، لكن هناك بعض الأنماط الأخرى أيضًا.

في المثال التالي، `\textsl` يُستخدم الأمر لضبط النص بأسلوب *مائل* يجعل النص يبدو إلى حدٍّ ما مثل *النص المائل*، ولكن ليس تمامًا. انظر إلى [دليل المراجع](#reference-guide) للاطلاع على القائمة الكاملة لأنماط الخط.

```latex
يُكتب جزء من هذا النص \textsl{بأسلوب خط مختلف
} لإبرازه.
```

[افتح هذا المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+slanted+text\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0APart+of+this+text+is+written+%5Ctextsl%7Bin+a+different+%0Afont+style%7D+to+highlight+it.%0A%5Cend%7Bdocument%7D)

تُظهر الصورة التالية المخرجات التي ينتجها المثال أعلاه:

![UsingSlantedText.png](/files/d78e38f316c9c8b4faa2a1eb9e2cabdd99b7651f)

إذا أردت العودة إلى نمط الخط "العادي" (الافتراضي لفئة LaTeX التي تستخدمها)، فيمكن فعل ذلك باستخدام `\textnormal{...}` الأمر أو `\normalfont` أمر المبدّل.

## جمع كل ذلك

يجمع المثال التالي بين مختلف مقاطع كود LaTeX المستخدمة في هذه المقالة.

```latex
\documentclass{article}
\begin{document}
%مثال على أحجام وأنواع خطوط مختلفة
هذا مثال بسيط، {\tiny سيعرض هذا أحجام خطوط مختلفة} وكذلك \textsc{أنماط خطوط مختلفة}.

\vspace{1cm}

%مثال على أحجام وأنواع خطوط مختلفة
في هذا المثال يتم ضبط {\huge حجم خط ضخم} وكذلك {\footnotesize حجم الحاشية أيضًا}. توجد مجموعة كبيرة نسبيًا من أحجام الخطوط.

\vspace{1cm}

%مثال على أحجام وأنواع خطوط مختلفة
في هذا المثال، يُستخدم أمر ومبدّل. \texttt{يُستخدم أمر لتغيير نمط جملة}.

\sffamily
يغيّر المبدّل النمط من هذه النقطة إلى نهاية المستند ما لم يُستخدم مبدّل آخر.
\rmfamily

\vspace{1cm}

%مثال على أحجام وأنواع خطوط مختلفة
يُكتب جزء من هذا النص \textsl{بأسلوب خط مختلف} لإبرازه.
\end{document}
```

[افتح هذا المثال في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+using+font+styles%2C+sizes+and+famlies\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%25Example+of+different+font+sizes+and+types%0AThis+is+a+simple+example%2C+%7B%5Ctiny+this+will+show+different+font+sizes%7D+and+also+%5Ctextsc%7Bdifferent+font+styles%7D.+%0A%0A%5Cvspace%7B1cm%7D%0A%0A%25Example+of+different+font+sizes+and+types%0AIn+this+example+the+%7B%5Chuge+huge+font+size%7D+is+set+and+the+%7B%5Cfootnotesize+Foot+note+size+also%7D.+There%27s+a+fairly+large+set+of+font+sizes.%0A%0A%5Cvspace%7B1cm%7D%0A%0A%25Example+of+different+font+sizes+and+types%0AIn+this+example%2C+a+command+and+a+switch+are+used.+%5Ctexttt%7BA+command+is+used+to+change+the+style+of+a+sentence%7D.%0A%0A%5Csffamily%0AA+switch+changes+the+style+from+this+point+to+the+end+of+the+document+unless+another+switch+is+used.%0A%5Crmfamily%0A%0A%5Cvspace%7B1cm%7D%0A%0A%25Example+of+different+font+sizes+and+types%0APart+of+this+text+is+written+%5Ctextsl%7Bin+different+font+style%7D+to+highlight+it.%0A%5Cend%7Bdocument%7D)

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

**أحجام الخطوط**

| الأمر         | المخرجات                                                               |
| ------------- | ---------------------------------------------------------------------- |
| \tiny         | ![F-tiny.png](/files/a23ddaf17a337f4c27430964d0b6b4f66e13468d)         |
| \scriptsize   | ![F-scriptsize.png](/files/7390de51b882dff49bc4ccc60139eed9f712748a)   |
| \footnotesize | ![F-footnotesize.png](/files/135a1b33182219f032a1ea049426e9c54a6617e1) |
| \small        | ![F-small.png](/files/cfc8b38f4b8480b850e76ca87e2709bea87927cd)        |
| \normalsize   | ![F-normalsize.png](/files/90246a9353912756970574a4d5cd3702cf025339)   |
| \large        | ![F-large.png](/files/f04e078eef7d034a9060acfc097f70d759cc891d)        |
| \Large        | ![F-large2.png](/files/bd426450c18da3ac3dedabe27d3ffab1679d3649)       |
| \LARGE        | ![F-large3.png](/files/ad73c0c88aae9f67469d0b1111a935e7bd089ebb)       |
| \huge         | ![F-huge.png](/files/a59cb1def5cacfb82d67218a56b55139c7559892)         |
| \Huge         | ![F-huge2.png](/files/2af8f3fdb7f124fbf138a5c65327dae3b4fb442b)        |

**عائلات الخط الافتراضية**

| نوع الخط = العائلة     | الأمر                     | أمر المبدّل | المخرجات                                                         |
| ---------------------- | ------------------------- | ----------- | ---------------------------------------------------------------- |
| ذو زوائد (روماني)      | `\textrm{نص تجريبي 0123}` | `\rmfamily` | ![F-textrm.png](/files/f4b48e593dc8bdc3d3a650ff577de2d773565b5b) |
| بلا زوائد              | `\textsf{نص تجريبي 0123}` | `\sffamily` | ![F-textsf.png](/files/688e500e95e185c9e420581831df88374e594c28) |
| آلة كاتبة (ثابت العرض) | `\texttt{نص تجريبي 0123}` | `\ttfamily` | ![F-texttt.png](/files/1a98d92c14ee2bb993a6fb07116bec5a3da3153f) |

**أنماط الخط**

| النمط            | الأمر                     | أمر المبدّل | المخرجات                                                          |
| ---------------- | ------------------------- | ----------- | ----------------------------------------------------------------- |
| متوسط            | `\textmd{نص تجريبي 0123}` | `\mdseries` | ![F-textmd.png](/files/3d4ee336874b94b8b6119efe5e94bfdb9cf5cab7)  |
| عريض             | `\textbf{نص تجريبي 0123}` | `\bfseries` | ![F-textbf.png](/files/e7ea86c2c75023aae9014333128088182032a554)  |
| مستقيم           | `\textup{نص تجريبي 0123}` | `\upshape`  | ![F-textrm.png](/files/f4b48e593dc8bdc3d3a650ff577de2d773565b5b)  |
| مائل             | `\textit{نص تجريبي 0123}` | `\itshape`  | ![F-textit2.png](/files/f3b872678dc47bf9900fc4bd9a0b6399f63bbbe1) |
| مائل             | `\textsl{نص تجريبي 0123}` | `\slshape`  | ![F-textsl.png](/files/227c515f537d907098bced863eec2c7df65d443a)  |
| أحرف كبيرة صغيرة | `\textsc{نص تجريبي 0123}` | `\scshape`  | ![F-textsc.png](/files/ab17d45b0f8e2e1c26f0f093aef1cf40277ef9ec)  |

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

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

* [وجوه الخطوط](/latex/ar/alkhtwt/02-font-typefaces.md)
* [دعم الخطوط الحديثة باستخدام XeLaTeX](/latex/ar/alkhtwt/03-xelatex.md)
* [الخط العريض، والنص المائل، والتسطير](/latex/ar/asasyat-latex/03-bold-italics-and-underlining.md)
* [محاذاة النص](/latex/ar/altnsyq/06-text-alignment.md)
* [أعمدة متعددة](/latex/ar/altnsyq/09-multiple-columns.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/allghat/03-international-language-support.md)
* [المقدمة التي ليست قصيرة جدًا إلى LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)


---

# 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/01-font-sizes-families-and-styles.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.
