---
title: "עבודה עםפונטים Python"
---

גופן הוא קבוצה של דמויות עם גודל מסוים, צבע ועיצוב. Aspose.Words מאפשר לך לעבוד עם גופנים באמצעות [fonts](https://reference.aspose.com/words/python-net/aspose.words.fonts/) מודול ו [Font](https://reference.aspose.com/words/python-net/aspose.words/font/) מעמד.

## המונחים:

פורמט הגופן הנוכחי מיוצג על ידי **Font** החפץ חזר [Font](https://reference.aspose.com/words/python-net/aspose.words/documentbuilder/font/) רכוש. The The The **Font** הכיתה מכילה מגוון רחב של תכונות גופניות, העתקת אלה הזמינים ב Microsoft Word.

הדוגמה הבאה של הקוד מראה כיצד להגדיר פורמט גופני:

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-working_with_fonts-DocumentBuilderSetFontFormatting.py" >}}

תכונות מילוי עכשיו זמינים גם עבור גופנים כדי להגדיר פורמט מלא של טקסט. זה נותן יכולת לשנות, למשל, צבע הבסיס או שקיפות של מילוי הטקסט.

## עקבו אחרי Font Line Spacing

קו פונט ספאק הוא המרחק האנכי בין קווי הבסיס של שני קווים רצופים של טקסט. אז קו ספאק כולל את החלל הריק בין קווים יחד עם גובה הדמות עצמה.

The The The [line_spacing](https://reference.aspose.com/words/python-net/aspose.words/font/line_spacing/) הנכס הוצג ב [Font](https://reference.aspose.com/words/python-net/aspose.words/font/) שיעור להשיג ערך זה כפי שמוצג בדוגמה שניתנה להלן:

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-working_with_fonts-GetFontLineSpacing.py" >}}

## תגית: Mark

כמה שפות מזרח אסיה משתמשות בסימן דגש מיוחד כדי לציין דגש. The The The **Font** הכיתה מספקת [emphasis_mark](https://reference.aspose.com/words/python-net/aspose.words/font/emphasis_mark/) רכוש כדי להגיע או להגדיר [EmphasisMark](https://reference.aspose.com/words/python-net/aspose.words/emphasismark/) ערכי enumeration יש ליישם בפורמט.

דוגמה לקוד הבא מראה כיצד להגדיר את **EphasisMark** רכוש:

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-working_with_fonts-SetFontEmphasisMark.py" >}}
