[cairo-bugs] [Bug 21985] [cairo] Rendering with PANGO_GRAVITY_EAST leads to different results with image and vectoriel buffer (pdf)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 28 17:05:18 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=21985





--- Comment #6 from Adrian Johnson <ajohnson at redneon.com>  2009-05-28 17:05:17 PST ---
at _cairo_scaled_glyph_set_metrics (scaled_glyph,
                                         &scaled_font->base,
                                         &fs_metrics);

fs_metrics has the value: 
$6 = {x_bearing = -0.32046875000000002, y_bearing = 0.13, width =
0.64093750000000005, height = 0.73999999999999999, x_advance = 0,
  y_advance = 1023.9990625}


The y advance is coming from:

  fs_metrics.y_advance = DOUBLE_FROM_26_6 (glyph->linearVertAdvance) *
y_factor;

where y_factor is 0.01 and *glyph is

$8 = {library = 0x9f6bec8, face = 0x9faf368, next = 0x0, reserved = 0, generic
= {data = 0x0, finalizer = 0}, metrics = {width = 4102,
    height = 4736, horiBearingX = 1197, horiBearingY = 4883, horiAdvance =
6400, vertBearingX = -2051, vertBearingY = 832,
    vertAdvance = 6400}, linearHoriAdvance = 6553594, linearVertAdvance =
6553594, advance = {x = 6400, y = 0},
  format = FT_GLYPH_FORMAT_OUTLINE, bitmap = {rows = 0, width = 0, pitch = 0,
buffer = 0x0, num_grays = 0, pixel_mode = 0 '\0',
    palette_mode = 0 '\0', palette = 0x0}, bitmap_left = 0, bitmap_top = 0,
outline = {n_contours = 1, n_points = 59,
    points = 0x9fd7c08, tags = 0x9fd80d0 "\001", contours = 0x9fd7bf8, flags =
0}, num_subglyphs = 0, subglyphs = 0x0,
  control_data = 0x0, control_len = 0, lsb_delta = 0, rsb_delta = 0, other =
0x0, internal = 0x9fb21b0}

and face is

$9 = {num_faces = 1, face_index = 0, face_flags = 2585, style_flags = 2,
num_glyphs = 2398, family_name = 0x8708fe0 "FreeSerif",
  style_name = 0x8709000 "Bold", num_fixed_sizes = 0, available_sizes = 0x0,
num_charmaps = 3, charmaps = 0x8709050, generic = {
    data = 0x86e0b00, finalizer = 0xb7c1abd0}, bbox = {xMin = -560, yMin =
-488, xMax = 1860, yMax = 1173}, units_per_EM = 1000,
  ascender = 900, descender = -300, height = 1290, max_advance_width = 1880,
max_advance_height = 1290, underline_position = -125,
  underline_thickness = 50, glyph = 0x8709108, size = 0x8709248, charmap =
0x8709080, driver = 0x86c2f90, memory = 0x86c2eb0,
  stream = 0x8706338, sizes_list = {head = 0x8709380, tail = 0x8709380},
autohint = {data = 0x0, finalizer = 0}, extensions = 0x0,
  internal = 0x87066a8}


-- 
Configure bugmail: http://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