<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Alexandre Julliard wrote:
<blockquote cite="mid878xlfyf27.fsf@wine.dyndns.org" type="cite">
  <pre wrap="">Jeff L <a class="moz-txt-link-rfc2396E" href="mailto:lats@yless4u.com.au">&lt;lats@yless4u.com.au&gt;</a> writes:
  </pre>
  <blockquote type="cite">
    <pre wrap="">
+                /* Note that the call to GetTextMetricsW is made in the loop *
+                 * because it is less likely to have non existant glyphs     *
+                 * and hence we should have few calls to GetTextMetricsW as  *
+                 * a result                                                  */
+                GetTextMetricsW(hdc, &amp;textm);
+                pgi[i] = textm.tmDefaultChar;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
It's a good idea to not call GetTextMetrics unless you need it, but
there's no reason to call it multiple times. It isn't hard to call it
only the first time you need the default char.

  </pre>
</blockquote>
Alexandre, I can fix the multiple calls but I think I need to make the
call unless there is another way.&nbsp; Is making the call acceptable as in&nbsp;
the updated patch?<br>
<br>
Jeff<br>
</body>
</html>