# C1.C1Pdf.C1PdfDocument.DrawGlyphs

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Pdf_C1PdfDocument_DrawGlyphs_" data-uid="C1.C1Pdf.C1PdfDocument.DrawGlyphs*">DrawGlyphs Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Pdf_C1PdfDocument_DrawGlyphs_" data-uid="C1.C1Pdf.C1PdfDocument.DrawGlyphs*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument_DrawGlyphs_System_String_System_Int16___System_Single___C1_Util_FontSubSet_System_Single_System_Drawing_Brush_System_Drawing_PointF_System_Drawing_Drawing2D_Matrix_System_Single_System_Boolean_" data-uid="C1.C1Pdf.C1PdfDocument.DrawGlyphs(System.String,System.Int16[],System.Single[],C1.Util.FontSubSet,System.Single,System.Drawing.Brush,System.Drawing.PointF,System.Drawing.Drawing2D.Matrix,System.Single,System.Boolean)">DrawGlyphs(string, short[], float[], FontSubSet, float, Brush, PointF, Matrix, float, bool)</h4>
<div class="markdown level1 summary"><p>Draws a string by glyphs.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawGlyphs(string text, short[] glyphs, float[] widths, FontSubSet fss, float fontSize, Brush brush, PointF pt, Matrix matrix, float widthCoeff, bool vertical)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawGlyphs(text As String, glyphs As Short(), widths As Single(), fss As FontSubSet, fontSize As Single, brush As Brush, pt As PointF, matrix As Matrix, widthCoeff As Single, vertical As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a>[]</td>
      <td><span class="parametername">glyphs</span></td>
      <td><p>The glyphs array for the text string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">widths</span></td>
      <td><p>The widths array for the text string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FontSubSet.html">FontSubSet</a></td>
      <td><span class="parametername">fss</span></td>
      <td><p>The font subset for text drawing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">fontSize</span></td>
      <td><p>The font size for text drawing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The object that determines the color for text drawing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">pt</span></td>
      <td><p>The start point for text drawing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.matrix">Matrix</a></td>
      <td><span class="parametername">matrix</span></td>
      <td><p>The translate matrix for text drawing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">widthCoeff</span></td>
      <td><p>The width coefficient applied to characters. The default is 1.0, use 2.0 for double width and so on.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">vertical</span></td>
      <td><p>The vertical flag for text drawing. Common for CJK texts.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
