[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetype-devel
Subject:    Re: [ft-devel] Problem with FT_Get_MM_Var
From:       Matthias Clasen <matthias.clasen () gmail ! com>
Date:       2017-09-19 11:35:41
Message-ID: CAFwd_vAngUGZ9x=Ez=_QHHWiy6vRaWgq-efV4jnCw84G4M3H_A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Sep 19, 2017 at 5:04 AM, Werner LEMBERG <wl@gnu.org> wrote:

>
> > The cairo code I see this problem with essentially does:
> >
> >  FT_New_Face (font_map->ft_library,
> >                          unscaled->filename,
> >                          unscaled->id,
> >                          &face);
> >
> > ...
> >
> >  ret = FT_Get_MM_Var (face, &ft_mm_var);
> >  if (ret != 0) {
> >         printf ("FT_Get_MM_Var failed: %s\n", getErrorMessage (ret));
> >         ret = FT_Get_MM_Var (face, &ft_mm_var);
> >         if (ret == 0)
> >             printf ("Trying again works. Odd\n");
> >  }
> >
> > and this is the output I see:
> >
> > TESTING font-variations
> > FT_Get_MM_Var failed: invalid stream operation
> > Trying again works. Odd
>
> Assuming that you have set compile option `FT_DEBUG_LEVEL_ERROR': Can
> you run the program within a debugger, setting a conditional
> breakpoint on function `FT_Throw' && error == 85?  It would be
> interesting to see the backtrace.
>

Can't get it to break there, unfortunately

[Attachment #5 (text/html)]

<div dir="ltr">On Tue, Sep 19, 2017 at 5:04 AM, Werner LEMBERG <span dir="ltr">&lt;<a \
href="mailto:wl@gnu.org" target="_blank">wl@gnu.org</a>&gt;</span> wrote:<br><div \
class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span \
class=""><br> &gt; The cairo code I see this problem with essentially does:<br>
&gt;<br>
&gt;   FT_New_Face (font_map-&gt;ft_library,<br>
&gt;                                       unscaled-&gt;filename,<br>
&gt;                                       unscaled-&gt;id,<br>
&gt;                                       &amp;face);<br>
&gt;<br>
&gt; ...<br>
&gt;<br>
&gt;   ret = FT_Get_MM_Var (face, &amp;ft_mm_var);<br>
&gt;   if (ret != 0) {<br>
&gt;              printf (&quot;FT_Get_MM_Var failed: %s\n&quot;, getErrorMessage \
(ret));<br> &gt;              ret = FT_Get_MM_Var (face, &amp;ft_mm_var);<br>
&gt;              if (ret == 0)<br>
&gt;                    printf (&quot;Trying again works. Odd\n&quot;);<br>
&gt;   }<br>
&gt;<br>
&gt; and this is the output I see:<br>
&gt;<br>
&gt; TESTING font-variations<br>
&gt; FT_Get_MM_Var failed: invalid stream operation<br>
&gt; Trying again works. Odd<br>
<br>
</span>Assuming that you have set compile option `FT_DEBUG_LEVEL_ERROR&#39;: Can<br>
you run the program within a debugger, setting a conditional<br>
breakpoint on function `FT_Throw&#39; &amp;&amp; error == 85?   It would be<br>
interesting to see the backtrace.<br>
<span class="HOEnZb"></span></blockquote><div><br></div><div>Can&#39;t get it to \
break there, unfortunately</div></div></div></div>



_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic