<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PDF glyph_path() inaccuracies"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=28583#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PDF glyph_path() inaccuracies"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=28583">bug 28583</a>
              from <span class="vcard"><a class="email" href="mailto:jiri.drbalek@email.cz" title="Jiri Drbalek <jiri.drbalek@email.cz>"> <span class="fn">Jiri Drbalek</span></a>
</span></b>
        <pre>I've tried the test program as I was after similar bug. I could reproduce it on
my Gentoo system, but not with the latest upstream Cairo.

The reason why Gentoo version was causing the bug is the following
Gentoo-specific patch.


--- cairo-1.7.6-orig/src/cairo-ft-font.c        2008-09-29 21:43:13.000000000
+0100
+++ cairo-1.7.6/src/cairo-ft-font.c     2008-09-29 21:52:19.000000000 +0100
@@ -1705,7 +1705,9 @@
        options->base.subpixel_order = other->base.subpixel_order;
     }

-    if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT)
+    options->base.hint_style = CAIRO_HINT_STYLE_DEFAULT;
+
+    if (other->base.hint_style != CAIRO_HINT_STYLE_DEFAULT)
        options->base.hint_style = other->base.hint_style;

     if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)


Therefore the problem is related to hinting. I could fix the test program by
disabling hinting:


diff --git a/halo_test.c b/halo_test.c
index cd12925..8863cff 100644
--- a/halo_test.c
+++ b/halo_test.c
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
         FT_New_Face(ftLib,
"/usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf",
                     0, &ftFace);
         cairo_font_face_t *cFace = cairo_ft_font_face_create_for_ft_face(
-                ftFace, 0);
+                ftFace, FT_LOAD_NO_HINTING);

         // Font info
         const double userSize = 0.0030594270330026917;</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>