[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:       Behdad Esfahbod <behdad.esfahbod () gmail ! com>
Date:       2017-09-20 20:26:02
Message-ID: CAF63+7VESd9MO-NHK0rH9FDoZ8t+Zx7c206kP9ijYSRjw6kRSw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Just checking.  Matthias, you have the latest FreeType, right?

On Tue, Sep 19, 2017 at 4:35 AM, Matthias Clasen <matthias.clasen@gmail.com>
wrote:

> 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
>



-- 
behdad
http://behdad.org/

[Attachment #5 (text/html)]

<div dir="ltr">Just checking.   Matthias, you have the latest FreeType, \
right?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 19, \
2017 at 4:35 AM, Matthias Clasen <span dir="ltr">&lt;<a \
href="mailto:matthias.clasen@gmail.com" \
target="_blank">matthias.clasen@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><span class="">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></span><div \
class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span><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="m_1056476904789254989HOEnZb"></span></blockquote><div><br></div></span><div>Can&#39;t \
get it to break there, unfortunately</div></div></div></div> \
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" \
data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" \
target="_blank">http://behdad.org/</a></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