title: How to register Arial Narrow as a basefont with Itext sharp
body: <p>I use the following statement to create a Arial Narrow basefont with iText Sharp.</p>
  
  <pre><code>   BaseFont arialn = BaseFont.CreateFont("c:\\windows\\fonts\\Arial-narrow_[allfont.net].ttf", BaseFont.CP1252, BaseFont.EMBEDDED);
  </code></pre>
  
  <p>This is how I use where cb2 is the content byte and f_cn2 is the base font.</p>
  
  <p>The output is not Arial Narrow.</p>
  
  <pre><code>   cb2.AddTemplate(page, 0, 0);  
     cb2.BeginText();
     cb2.SetFontAndSize(f_cn2, 10);
        foreach (var xy in xylist)
        {
          cb2.ShowTextAligned(Element.ALIGN_LEFT, xy.Text, xy.xpos, xy.ypos, 0F);
        }
     cb2.EndText();
  </code></pre>