[cairo-bugs] [Bug 30200] New: Cannot set italic slant on mac with quartz font backend

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 15 00:10:28 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=30200

           Summary: Cannot set italic slant on mac with quartz font
                    backend
           Product: cairo
           Version: 1.10.0
          Platform: x86-64 (AMD64)
        OS/Version: Mac OS X (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: quartz font backend
        AssignedTo: vladimir at pobox.com
        ReportedBy: igor_nikitin at valentina-db.com
         QAContact: cairo-bugs at cairographics.org


#include <cairo/cairo.h>

int main( int argc, char** argv )
{
    cairo_surface_t* surface    = cairo_image_surface_create(
CAIRO_FORMAT_ARGB32, 40, 15 );
    cairo_t*         target     = cairo_create( surface );

    cairo_set_font_size( target, 12 );
    cairo_select_font_face(
        target,
        "Lucida Grande", // Default font on mac
        CAIRO_FONT_SLANT_ITALIC,
        CAIRO_FONT_WEIGHT_NORMAL );

    cairo_set_source_rgb( target, 0, 0, 0 );

    cairo_move_to( target, 0, 12 );
    cairo_show_text( target, "TEST" );
    cairo_stroke( target );

    cairo_surface_write_to_png( surface, "/Users/igor/test.png" );

    return 0;
}

cairo was builded with such flags:

./configure --disable-xlib --disable-ft --disable-dependency-tracking
--enable-quartz=yes --enable-quartz-font=yes

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list