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