[cairo-bugs] [Bug 50688] New: Freetype (TTF) font string truncated

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 4 10:30:49 PDT 2012


             Bug #: 50688
           Summary: Freetype (TTF) font string truncated
    Classification: Unclassified
           Product: cairo
           Version: 1.12.2
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: freetype font backend
        AssignedTo: david at freetype.org
        ReportedBy: angelo70 at gmail.com
         QAContact: cairo-bugs at cairographics.org

Created attachment 62524
  --> https://bugs.freedesktop.org/attachment.cgi?id=62524
all i have

Hi all,

from when i apt-get update to libcairo i started to see some pixels,
about 5, of the displayed strings truncated.

Same issue is visible with a particular TTF font (attached), also using

When i move back to libcairo, issue disappear.

What i do in my code (note issue is also with gnome-font-viewer) :

FT_Library ftl;
FT_Face ftf;

string fontfile = Config::get().s.dir_skin + fontfilename;
FT_New_Face( ftl, fontfile.c_str(), 0, &ftf );


_cf = cairo_ft_font_face_create_for_ft_face(ftf, 0);


void MyClass::Draw ()

        cairo_rectangle ( cr, x, y, w, h );

        cairo_rectangle ( cr, x, y, w, h );

        cairo_move_to   (cr, x);
        cairo_show_text (cr,_text.c_str());




I add as more attachment i can about the issue.

NOTE: on windows same font is still displayed correctly.

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