title: "Encoding 1252 data could not be found" iTextSharp use Japanese font
body: <p>I use Unity2018.2.3f1 and iTextSharp.
  Although basic PDF creation was possible, Japanese fonts can not be used on Windows.
  The following source code works correctly on Mac.</p>
  
  <pre><code>try {
      PdfReader reader = new PdfReader ( basePath );
      Document document = new Document ( reader.GetPageSize ( 1 ) );
  
      FileStream fileStream = new FileStream ( newPath, FileMode.Create, FileAccess.Write );
      PdfWriter writer = PdfWriter.GetInstance ( document, fileStream );
      document.Open ();
  
      PdfContentByte pdfContentByte = writer.DirectContent;
      PdfImportedPage page = writer.GetImportedPage ( reader, 1 );
      pdfContentByte.AddTemplate ( page, 0, 0 );
  
      string fontName = Path.Combine ( Application.streamingAssetsPath, "mplus-1c-medium.ttf" );
      BaseFont bf = BaseFont.CreateFont ( fontName, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED );
      pdfContentByte.SetFontAndSize ( bf, 10.0f );
  
      pdfContentByte.BeginText ();
      pdfContentByte.ShowText ( new PdfTextArray ( "文字列" ) );
      pdfContentByte.SetFontAndSize ( bf, 20.0f );
      pdfContentByte.MoveText ( 50, 50 );
      pdfContentByte.ShowText ( new PdfTextArray ( "文字列1" ) );
      pdfContentByte.ShowText ( new PdfTextArray ( "2" ) );
      pdfContentByte.EndText ();
  
      document.Close ();
      fileStream.Close ();
      writer.Close ();
      reader.Close ();
  
  } catch (Exception ex) {
      handyAlert.text = "Error1:"+ex.Message;
      Debug.Log ( ex.StackTrace);
  }
  </code></pre>
  
  <p>However, the following error occurs on Windows.</p>
  
  <blockquote>
    <p>Encoding 1252 data could not be found. Make sure you have correct
    international codeset assembly installed and enabled.</p>
  </blockquote>
  
  <p>The font used is as follows. Since it operates normally on the Mac, I think that there is no problem with the font file itself.
  <a href="https://mplus-fonts.osdn.jp" rel="nofollow noreferrer">https://mplus-fonts.osdn.jp</a></p>
  
  <p>In addition, if part of BaseFont.CreateFont is made as follows, the part of numbers other than Japanese is written normally.</p>
  
  <pre><code>BaseFont bf = BaseFont.CreateFont ( BaseFont.TIMES_ROMAN, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED );
  </code></pre>
  
  <p>Please tell me how to solve.</p>