<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all,<div>I am having some troubles calling cairo_show_glyphs when the current scale factor is 2 (or higher).</div><div>Please look at the attached snapshot.</div><div><br></div><div>The wrong output is that a given array of glyphs is rendered with different sizes. Some glyphs are scaled, some other glyphs are not.</div><div><br></div><div>The glyphs positions are correct, like if all the glyphs had correct size.</div><div><br></div><div>It may happen to any of the glyphs, but a given glyph will be rendered coherently (buggy or not buggy) in the following calls to cairo_show_glyphs.</div><div><br></div><div>If I set the scale factor to 4, then the buggy glyphs are still rendered at 1x scale.</div><div><br></div><div>These are the steps of my program:</div><div><br></div><div>1. load a custom Truetype font in Freetype.</div><div>2. create font data in Cairo and Harfbuzz.</div><div>3. set cairo's scale factor to 2.</div><div>3. call FT_Set_Char_Size to set the font size to 13 with 72 dpi.</div><div>4. for each string in ["File", "Edit", "View", Help"]</div><div>5. call hb_buffer_create to create an empty Harfbuzz buffer and set its options</div><div>6. add UTF8 string to the buffer</div><div>7. call hb_shape to layout the glyphs</div><div>8. call hb_buffer_get_glyph_infos, hb_buffer_get_glyph_positions to create glyphs info</div><div>9. malloc an array of cairo_glyphs and set glyphs positions</div><div>10. call cairo_set_font_face, cairo_set_font_size</div><div>11. call cairo_show_glyphs</div><div>12. free the memory</div><div>13. end for</div><div><br></div><div>I tried to write a short program to reproduce the bug, but unsuccessfully. I hope somebody can point me to a possible explanation of this strange behavior.</div><div><br></div><div>Thanks</div><div><br></div><div>Marco</div><div><br></div><div><br></div><div><img apple-inline="yes" id="8C64E27C-3E82-40C8-B089-FFDFCE77AFF4" height="22" width="217" apple-width="yes" apple-height="yes" src="cid:D5F0B470-8CD7-4496-9CEB-4D31724A28D1@fastwebnet.it"></div></body></html>