You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
<spanclass="k">if</span><spanclass="nb">type</span><spanclass="o">==</span><spanclass="mi">1</span><spanclass="p">:</span><spanclass="c1"># ASCII text: include verbatim</span>
<spanclass="k">elif</span><spanclass="nb">type</span><spanclass="o">==</span><spanclass="mi">3</span><spanclass="p">:</span><spanclass="c1"># end of file</span>
<spanclass="k">break</span>
<spanclass="k">else</span><spanclass="p">:</span>
<spanclass="k">raise</span><spanclass="ne">RuntimeError</span><spanclass="p">(</span><spanclass="s1">'Unknown segment type </span><spanclass="si">%d</span><spanclass="s1"> in pfb file'</span><spanclass="o">%</span>
<spanclass="k">raise</span><spanclass="ne">RuntimeError</span><spanclass="p">(</span><spanclass="s1">'Insufficiently many zeros in Type 1 font'</span><spanclass="p">)</span>
<spanclass="c1"># Convert encrypted part to binary (if we read a pfb file, we may end</span>
<spanclass="c1"># up converting binary to hexadecimal to binary again; but if we read</span>
<spanclass="c1"># a pfa file, this part is already in hex, and I am not quite sure if</span>
<spanclass="c1"># even the pfb format guarantees that it will be in binary).</span>
<spanclass="n">token</span><spanclass="p">,</span><spanclass="n">value</span><spanclass="o">=</span><spanclass="nb">next</span><spanclass="p">(</span><spanclass="n">tokens</span><spanclass="p">)</span><spanclass="c1"># possible whitespace</span>