class_docstr: A class representing a Type-1 font, for use by backends.
  
  Attributes
  ----------
  parts : tuple
      A 3-tuple of the cleartext part, the encrypted part, and the finale of
      zeros.
  
  prop : Dict[str, Any]
      A dictionary of font properties.
class_docstr_tok: ["A","class","representing","a","Type-1","font",",","for","use","by","backends",".","Attributes","--","--","--","--","--","parts",":","tuple","A","3-tuple","of","the","cleartext","part",",","the","encrypted","part",",","and","the","finale","of","zeros",".","prop",":","Dict","[","str",",","Any","]","A","dictionary","of","font","properties","."]
docstr: Transform the font by slanting or extending. *effects* should
  be a dict where ``effects['slant']`` is the tangent of the
  angle that the font is to be slanted to the right (so negative
  values slant to the left) and ``effects['extend']`` is the
  multiplier by which the font is to be extended (so values less
  than 1.0 condense). Returns a new :class:`Type1Font` object.
docstr_tok: ["Transform","the","font","by","slanting","or","extending",".","*","effects","*","should","be","a","dict","where","``","effects","[","'slant","'","]","``","is","the","tangent","of","the","angle","that","the","font","is","to","be","slanted","to","the","right","(","so","negative","values","slant","to","the","left",")","and","``","effects","[","'extend","'","]","``","is","the","multiplier","by","which","the","font","is","to","be","extended","(","so","values","less","than","1.0","condense",")",".","Returns","a","new",":","class",":","`","Type1Font","`","object","."]
code: def transform(self, effects):
      """
      Transform the font by slanting or extending. *effects* should
      be a dict where ``effects['slant']`` is the tangent of the
      angle that the font is to be slanted to the right (so negative
      values slant to the left) and ``effects['extend']`` is the
      multiplier by which the font is to be extended (so values less
      than 1.0 condense). Returns a new :class:`Type1Font` object.
      """
      with io.BytesIO() as buffer:
          tokenizer = self._tokens(self.parts[0])
          transformed = self._transformer(
              tokenizer,
              slant=effects.get("slant", 0.0),
              extend=effects.get("extend", 1.0),
          )
          list(map(buffer.write, transformed))
          return Type1Font(
              (buffer.getvalue(), self.parts[1], self.parts[2])
          )
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/type1font.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import binascii
  import io
  import itertools
  import re
  import struct
  import numpy
label_desc: Use image node_id 7 for calling the Type1Font obj's underlying member method code with example usage: obj.transform(effects) and returns: Type1Font