Bug 13612

Summary: Size 0 fonts result in error
Product: cairo Reporter: Behdad Esfahbod <freedesktop>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: lool
Version: 1.2.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Behdad Esfahbod 2007-12-11 21:56:53 UTC
Because the font matrix can't be inverted.  Pango report:

  http://bugzilla.gnome.org/show_bug.cgi?id=431990

I wrote about it before here:

  http://lists.freedesktop.org/archives/cairo/2007-June/010737.html
Comment 1 Behdad Esfahbod 2008-01-27 14:53:27 UTC
Fixed now:

commit 5dfe47a3f14ee8597395dc53ff57fd429e9804cd
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Fri Jan 25 00:35:11 2008 -0500

    [cairo-scaled-font] Unbreak it after my recent commit
    
    Sigh.

commit efd3a965244305a069ec231b7ec28cff8d6c67c8
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Thu Jan 24 23:35:06 2008 -0500

    [cairo-scaled-font] Don't err on font size 0, really
    
    First, seems like we were rejecting degenerate font matrix right away
    at the constructor.  Don't do that.
    
    Next, PS/PDF were inverting the font scale matrix, assuming that it's
    invertible.  We now keep the inverse too, so they can use it.  For the
    case of a size 0 font, both the scale matrix and its invert are set to
    0,0,0,0.  That's safe, even if slightly inconsistent.

commit 45f269e33020d8d7cf247926712b9c64c1fb8959
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Thu Jan 24 22:39:28 2008 -0500

    [cairo-scaled-font] Oops, return err if not handling it

commit 6d0dc3e0760e6bc6b0eceab48674410b4e865287
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Thu Jan 24 22:24:23 2008 -0500

    [cairo-scaled-font] Don't err on font size 0

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.