class_docstr: Manages a set of fonts: normal, italic, bold, etc...
class_docstr_tok: ["Manages","a","set","of","fonts",":","normal",",","italic",",","bold",",","etc","..."]
code: def _lookup_win(self, key, basename, styles, fail=False):
      for suffix in ("", " (TrueType)"):
          for style in styles:
              try:
                  valname = "%s%s%s" % (
                      basename,
                      style and " " + style,
                      suffix,
                  )
                  val, _ = _winreg.QueryValueEx(key, valname)
                  return val
              except OSError:
                  continue
      else:
          if fail:
              raise FontNotFound(
                  "Font %s (%s) not found in registry"
                  % (basename, styles[0])
              )
          return None
  
imports: import os
  import sys
  from pygments.formatter import Formatter
  from pygments.util import get_bool_opt, get_int_opt, get_list_opt, get_choice_opt
  import subprocess
label_desc: Use image node_id 6 for calling the FontManager obj's underlying member method code with example usage: obj._lookup_win(key, basename, styles, fail) and returns: None, val