--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: If the named <tt>font</tt> is not loaded, then load it and make the required PDF objects to represent the font. If the font is already loaded, then make it the current font.
- !ruby/struct:SM::Flow::P 
  body: "The parameter <tt>encoding</tt> applies only when the font is first being loaded; it may not be applied later. It may either be an encoding name or a hash. The Hash must contain two keys:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:encoding</tt>:"
    body: The name of the encoding. Either <b>none</b>, <b>WinAnsiEncoding</b>, <b>MacRomanEncoding</b>, or <b>MacExpertEncoding</b>. For symbolic fonts, an encoding of <b>none</b> is recommended with a differences Hash.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:differences</tt>:"
    body: This Hash value is a mapping between character byte values (0 .. 255) and character names from the AFM file for the font.
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: The standard PDF encodings are detailed fully in the PDF Reference version 1.6, Appendix D.
- !ruby/struct:SM::Flow::P 
  body: Note that WinAnsiEncoding is not the same as Windows code page 1252 (roughly equivalent to latin-1), Most characters map, but not all. The encoding value currently defaults to WinAnsiEncoding.
- !ruby/struct:SM::Flow::P 
  body: If the font's &quot;natural&quot; encoding is desired, then it is necessary to specify the <tt>encoding</tt> parameter as <tt>{ :encoding =&gt; nil }</tt>.
full_name: PDF::Writer#select_font
is_singleton: false
name: select_font
params: (font, encoding = nil)
visibility: public
