title: Laravel DomPDF, load_font unexpected index
body: <p>I am using <a href="https://github.com/barryvdh/laravel-dompdf" rel="nofollow" title="Berryvdh/Laravel-dompdf">Berryvdh/Laravel-dompdf</a></p>
  
  <p>in fresh installation <code>vendor/dompdf/dompdf/lib/php-font-lib</code> is empty, so I resort to install it with composer <code>phenx/php-font-lib (0.2.2)</code> and copy the library over to the project and run with</p>
  
  <pre><code> `php load_font.php 'LiHei' \LiHei.ttf`, 
  </code></pre>
  
  <p>the script created a <code>dompdf_font_family_cache.php</code> instead of <code>dompdf_font_family_cache.dist.php</code> that I need so I mod it and add it </p>
  
  <pre><code>'lihei' =&gt; array(
  'normal' =&gt; DOMPDF_FONT_DIR . 'LiHei',
  'bold' =&gt; DOMPDF_FONT_DIR . 'LiHei',
  'italic' =&gt; DOMPDF_FONT_DIR . 'LiHei',
  'bold_italic' =&gt; DOMPDF_FONT_DIR . 'LiHei',
  </code></pre>
  
  <p>to the array but than I got this error </p>
  
  <blockquote>
    <p>Undefined index: C at HandleExceptions->handleError('8', 'Undefined index: C', ... in class.pdf.php line 2260</p>
  </blockquote>
  
  <p>in class.pdf.php line 2260</p>
  
  <pre><code>foreach ($font['C'] as $num =&gt; $d) {
      if (intval($num) &gt; 0 || $num == '0') {
          if (!$font['isUnicode']) {
              // With Unicode, widths array isn't used
              if ($lastChar&gt;0 &amp;&amp; $num&gt;$lastChar+1) {
                  for ($i = $lastChar+1; $i&lt;$num; $i++) {
                      $widths[] = 0;
                  }
              }
         }
         $widths[] = $d;
         if ($font['isUnicode']) {
             $cid_widths[$num] = $d;
         }
         if ($firstChar == -1) {
            $firstChar = $num;
         }
         $lastChar = $num;
      }
  }
  </code></pre>
  
  <p>lihei.ufm which contain the following </p>
  
  <pre><code>StartFontMetrics 4.1
  Notice Converted by PHP-font-lib
  Comment https://github.com/PhenX/php-font-lib
  EncodingScheme FontSpecific
  Copyright ⡣⤠䍯灹物杨琠䑹湡䍯海慲攠䍯牰⸠㈰〳
  FontName 쓗뛂⁐牯
  FontSubfamily Media
  UniqueID 䱩䡥椠偲漻‶⸰搴攲㬠㈰ㄴⴱㄭ㈶
  FullName 쓗뛂⁐牯
  Version 㘮つ㑥
  PostScriptName 䱩䡥楐牯
  Trademark 呲慤敭慲欠批⁄祮慃潭睡牥⁃潲瀮
  Weight Medium
  ItalicAngle 0
  IsFixedPitch false
  UnderlineThickness 50
  UnderlinePosition -110
  FontHeightOffset 0
  Ascender 860
  Descender -140
  FontBBox -60 -171 1003 860
  EndFontMetrics
  </code></pre>
  
  <p>when I check ufm that come with default it contain a matrix of data one of them is [C]. </p>