<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>On 12/23/22 6:29 AM, Moi15 Moi wrote:<br>
    </p>
    <blockquote type="cite"
cite="mid:CAKoyp4N5N2ZkiZj0+Dw=Fq+coNk76SxgC9fG846ygeKhk-8MXw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><br>
        <div>Is it possible to list all the fonts filename with pywin32?</div>
        <div><br>
        </div>
        <div>From what I can see, it is possible with the <a
href="https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getfontdata"
            moz-do-not-send="true">GetFontData</a> from GDI.</div>
      </div>
    </blockquote>
    <p>GetFontData is certainly available in pywin32, as are most Win32
      APIs.  However, it only returns information about one font at a
      time -- the font that is currently selected into that DC.<br>
    </p>
    <p>You can use EnumFontFamilies or EnumFontFamiliesEx, available in
      win32gui.<br>
    </p>
    <p><a class="moz-txt-link-freetext" href="http://timgolden.me.uk/pywin32-docs/win32gui__EnumFontFamilies_meth.html">http://timgolden.me.uk/pywin32-docs/win32gui__EnumFontFamilies_meth.html</a></p>
    <p><a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/5760594/pywin32-enumfontfamilies-breaks-python">https://stackoverflow.com/questions/5760594/pywin32-enumfontfamilies-breaks-python</a><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Tim Roberts, <a class="moz-txt-link-abbreviated" href="mailto:timr@probo.com">timr@probo.com</a>
Providenza & Boekelheide, Inc.</pre>
  </body>
</html>