> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Objet FontStyle (interface IFontStyle)

> Objet FontStyle (interface IFontStyle) dans l’API ABBYY FineReader Engine — Expose les propriétés d’un style de police : nom, type, taille, couleur, gras/italique/souligné/barré/petites capitales, ligne de base, échelle horizontale et espacement des caractères.

Cet objet expose les propriétés d’un style de police.

<div id="properties">
  ## Propriétés
</div>

<table>
  <thead>
    <tr>
      <th>
        <p>
          <strong>Name</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>Type</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>Description</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>
          <strong>Application</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/api-reference/engine-object-iengine-interface">
              Engine
            </a>
          </strong>

          ,{" "}

          <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties">
            read-only
          </a>
        </p>
      </td>

      <td>
        <p>
          Returns the{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/engine-object-iengine-interface">
              Engine
            </a>

            {" "}
          </strong>

          object.
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>Text decoration</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="color" />

          <strong>Color</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Sets the RGB value of the color for the font.</p>

        <p>
          The value of this property can be -1, which means that the color is
          transparent.
        </p>

        <Note>
          La valeur int est calculée à partir du triplet RVB selon la formule : (
          valeur rouge ) + (256 x valeur verte ) + (65536 x valeur bleue ), où la valeur rouge
          est la première composante du triplet, la valeur verte est la deuxième
          composante du triplet et la valeur bleue est la troisième composante du triplet. Par
          exemple, la valeur int de la couleur blanche est égale à 16777215.
        </Note>

        <p>By default, the font color is black, and the property returns 0.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="isbold" />

          <strong>IsBold</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Specifies whether the font is bold.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="isitalic" />

          <strong>IsItalic</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Specifies whether the font is italic.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="isunderlined" />

          <strong>IsUnderlined</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Specifies whether the font is underlined.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="isstrikeout" />

          <strong>IsStrikeout</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Specifies whether the font is strikeout.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="issmallcaps" />

          <strong>IsSmallCaps</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Specifies whether the font has "small caps" style. This
          means that the small characters are displayed as small capitals.
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>Font attributes</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="fontname" />

          <strong>FontName</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              BSTR
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          Stores the name of the font. This property cannot be changed directly
          but via the <strong>SetFont</strong> method.
        </p>

        <p>By default, this value is "Times New Roman".</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="fontsize" />

          <strong>FontSize</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Specifies the height of the font in twips. Twip is 1/20 of point, and
          point is 1/72".
        </p>

        <p>
          Default value of this property corresponds to 10 points or 200 twips.
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="fonttype" />

          <strong>FontType</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/api-reference/enumerations/fonttypeenum">
              FontTypeEnum
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          Stores the type of the font. This property cannot be changed directly
          but via the <strong>SetFont</strong> method.
        </p>

        <p>By default, this value is FT\_Unknown.</p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>Ligne de base, mise à l'échelle et espacement</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="baseline" />

          <strong>BaseLine</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Définit le décalage d'un caractère par rapport à la ligne de base de la chaîne en
          pixels. La ligne de base de la chaîne est définie par la propriété{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/text-related-objects/paragraphline#baseline">
              IParagraphLine::BaseLine
            </a>
          </strong>

          {" "}

          . Cette propriété est principalement utilisée pour les images incorporées dans
          le texte.
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="horizontalscale" />

          <strong>HorizontalScale</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Stocke la mise à l'échelle horizontale du style de police en 1/1000.</p>

        <p>
          La valeur par défaut de cette propriété est 1000, ce qui correspond à aucune mise à l'échelle.
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="spacing" />

          <strong>Spacing</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Spécifie l'espacement supplémentaire entre les caractères en twips. Un twip correspond à 1/20
          de point, et un point vaut 1/72".
        </p>

        <p>La valeur par défaut de cette propriété est 0.</p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>Attributs de style</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="isbasefont" />

          <strong>IsBaseFont</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>

          , lecture seule
        </p>
      </td>

      <td>
        <p>
          Indique si ce style de police est le style de police de base du
          style de paragraphe.
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="overriddenstyleparams" />

          <strong>OverriddenStyleParams</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          , lecture seule
        </p>
      </td>

      <td>
        <p>
          Décrit l'ensemble des paramètres de style remplacés dans ce style
          par rapport au style de police de base du paragraphe. La propriété est une
          superposition OR des constantes{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/enumerations/styleparamsenum">
              StyleParamsEnum
            </a>
          </strong>

          {" "}

          .
        </p>
      </td>
    </tr>
  </tbody>
</table>

<div id="methods">
  ## Méthodes
</div>

| Nom                                                                                           | Description                                            |
| --------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [SetFont](/fr/fine-reader/engine/api-reference/text-related-objects/fontstyle/setfont-method) | Définit le nouveau nom de police et le type de police. |

<div id="related-objects">
  ## Objets connexes
</div>

<img src="https://mintcdn.com/abbyy/lsETHFYUFiongXSm/images/fine-reader/engine/fontstyle.gif?s=cb75207293e63588d7c3628a40b1a4cc" alt="FontStyle" width="297" height="54" data-path="images/fine-reader/engine/fontstyle.gif" />[](/fr/fine-reader/engine/api-reference/text-related-objects/charparams#fontstyle)[](/fr/fine-reader/engine/api-reference/text-related-objects/paragraphstyle#basefont)[](/fr/fine-reader/engine/api-reference/text-related-objects/charparams)[](/fr/fine-reader/engine/api-reference/text-related-objects/paragraphstyle)

[Diagramme d’objets](/fr/fine-reader/engine/api-reference/object-diagram)

<div id="see-also">
  ## Voir aussi
</div>

[ParagraphStyle](/fr/fine-reader/engine/api-reference/text-related-objects/paragraphstyle)

[Utilisation des propriétés](/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
