{"push_id":687141610,"size":11,"distinct_size":11,"ref":"refs/heads/master","head":"f1baa156503f089d6627171e0e9ad73bbdbb7268","before":"73e6f36ed672edc827621b85dc88b8521030633d","commits":[{"sha":"1d87cb3cfa08086be96f78ab09d99f3e7ba8ca60","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Avoid very high screen lines with some fonts\n\n* src/xdisp.c (get_phys_cursor_geometry): Adjust the height of the\ncursor to avoid weird-looking hollow cursor with fonts that have\nlarge ascent values for some glyphs.  This avoids having the\nhollow cursor start too low.\n(append_space_for_newline): Adjust the ascent value of the newline\nglyph, so that the hollow cursor at end of line displays\ncorrectly.\n(FONT_TOO_HIGH): New macro.\n(x_produce_glyphs): Use it to detect fonts that claim a\npreposterously large height, in which case we use per-glyph ascent\nand descent values.  (Bug#20628)","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/1d87cb3cfa08086be96f78ab09d99f3e7ba8ca60"},{"sha":"c76605faa1f597e67df1e5c6cfae5230ff3a6a76","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Fix display of glyphless characters with problematic fonts\n\n* src/w32term.c (x_draw_glyph_string_background): Force redraw of\nglyph string background also when the font in use claims\npreposterously large global height value.  Helps to remove\nartifacts left from previous displays when glyphless characters\nare displayed as hex code in a box.\n* src/xterm.c (x_draw_glyph_string_background): Force redraw of\nglyph string background also when the font in use claims\npreposterously large global height value.  Helps to remove\nartifacts left from previous displays when glyphless characters\nare displayed as hex code in a box.\n* src/w32font.c (w32font_draw): Fix background drawing for\nglyphless characters that display as acronyms or hex codes in a\nbox.\n* src/xftfont.c (xftfont_draw): Fix background drawing for\nglyphless characters that display as acronyms or hex codes in a\nbox.\n* src/xdisp.c (produce_glyphless_glyph): Compute reasonable values\nfor it->ascent and it->descent when the font claims preposterously\nlarge global values.\n(FONT_TOO_HIGH): Move from here...\n* src/dispextern.h (FONT_TOO_HIGH): ...to here.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/c76605faa1f597e67df1e5c6cfae5230ff3a6a76"},{"sha":"c5228486590c1f31c56f9ea67667617966818cba","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Fix display of stretch glyphs with large fonts\n\n* src/xdisp.c (normal_char_height): New function.\n(calc_pixel_width_or_height, produce_stretch_glyph): Use it to\ncompute more reasonable estimation of a \"normal character height\"\nwhen the font claims preposterously large height values.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/c5228486590c1f31c56f9ea67667617966818cba"},{"sha":"5f734fa045c7d10c46c3a25ddd6e5f3d6b45182a","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Fix line dimensions from line-height property\n\n* src/xdisp.c (normal_char_ascent_descent): New function,\nextracted from produce_glyphless_glyph.\n(calc_line_height_property, produce_glyphless_glyph): Use it to\ncompute reasonable estimates of ascent and descent for large\nfonts.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/5f734fa045c7d10c46c3a25ddd6e5f3d6b45182a"},{"sha":"42a7b12bc774e1e211204f90aed77c9ca6ffd158","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Fix 2 more calculations of line height\n\n* src/xdisp.c (estimate_mode_line_height, handle_single_display_spec):\nUse normal_char_height.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/42a7b12bc774e1e211204f90aed77c9ca6ffd158"},{"sha":"ba5f83dfe5dea1b9dd3fca5d21384afc92cd2060","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Fix display of cursor at end of empty lines\n\n* src/xdisp.c (normal_char_ascent_descent): Accept additional\nargument: the character to use for metrics in case the font\ndeclares too large ascent and descent values.  Add 1 pixel to\nascent and descent values.\n(normal_char_height): Accept additional argument: the character to\nuse for metrics in case the font declares too large height value.\nCall normal_char_ascent_descent instead of doing calculations for\na different default character.\n(estimate_mode_line_height, handle_single_display_spec)\n(calc_pixel_width_or_height, produce_stretch_glyph)\n(calc_line_height_property, produce_glyphless_glyph): All callers\nchanged.\n(append_space_for_newline): Make sure the space glyph produced at\nend of line has correct ascent and descent values, and the glyph\nrow has correct height, even when it's empty.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/ba5f83dfe5dea1b9dd3fca5d21384afc92cd2060"},{"sha":"643470ff797407b256eea380e0f41d3749400927","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Fix display of composite characters with large fonts\n\n* src/xdisp.c (x_produce_glyphs): Call normal_char_ascent_descent\nfor reasonable values of font ascent and descent.\n(get_font_ascent_descent): New function.\n\n* src/composite.c (composition_gstring_width): Call\nget_font_ascent_descent for reasonable values of font ascent and\ndescent.\n\n* dispextern.h: Add prototype for get_font_ascent_descent.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/643470ff797407b256eea380e0f41d3749400927"},{"sha":"cab645a62f3e5963ee7da94eb9c33961601c6651","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Attempt to fix crashes due to accesses beyond glyph matrix end\n\n* src/xdisp.c (x_produce_glyphs): When it->ascent and it->descent\nare determined from per-character metrics, don't let the\nmax_ascent and max_descent become smaller than values returned by\nnormal_char_ascent_descent, to avoid unpleasant dynamic resizing\nof screen line heights when text changes.\n\n* src/xterm.c (x_new_font)\n* src/w32term.c (x_new_font): Call get_font_ascent_descent to\nobtain a reasonable value for FRAME_LINE_HEIGHT, even when a font\nclaims very large value for its height.\n\n* src/font.c (font_open_entity): Call get_font_ascent_descent to\nobtain a reasonable value for FRAME_SMALLEST_FONT_HEIGHT, even\nwhen a font claims very large value for its height.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/cab645a62f3e5963ee7da94eb9c33961601c6651"},{"sha":"957cbfd7650e6ebd1afc62daeb5f6923730112c9","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"NS equivalents of xterm.c and w32term.c changes\n\n* src/nsterm.m (ns_maybe_dumpglyphs_background): Force redraw of\nglyph string background also when the font in use claims\npreposterously large global height value.  Helps to remove\nartifacts left from previous displays when glyphless characters\nare displayed as hex code in a box.\n(x_new_font): Call get_font_ascent_descent to obtain a reasonable\nvalue for FRAME_LINE_HEIGHT, even when a font claims very large\nvalue for its height.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/957cbfd7650e6ebd1afc62daeb5f6923730112c9"},{"sha":"6f10a3f90fb94506031712140246f1a5dbee71eb","author":{"email":"05bd7fa6340b239b8f5ff91b0748e506560372c9@members.fsf.org","name":"Nicolas Richard"},"message":"Add assertion in adjust_point_for_property\n\n* src/keyboard.c (adjust_point_for_property): Add eassert for\ncurrent buffer being shown in selected window.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/6f10a3f90fb94506031712140246f1a5dbee71eb"},{"sha":"f1baa156503f089d6627171e0e9ad73bbdbb7268","author":{"email":"9bea97ca54594f32677f9bd326119cdb56ababc9@gnu.org","name":"Eli Zaretskii"},"message":"Fix display when a font claims large values of ascent and descent\n\nThis fixes bug#20628.\n\n* src/xdisp.c (get_phys_cursor_geometry): Correct the Y\ncoordinate of a hollow cursor glyph when the original glyph's\nascent is too small.\n(get_font_ascent_descent, normal_char_ascent_descent)\n(normal_char_height): New functions.\n(handle_single_display_spec, append_space_for_newline)\n(calc_pixel_width_or_height, produce_stretch_glyph)\n(calc_line_height_property): Use normal_char_ascent_descent and\nnormal_char_height.\n(x_produce_glyphs): When font-global values of ascent and descent\nare too large, use per-character glyph metrics instead, if\npossible.  But don't allow the glyph row's ascent and descent\nvalues become smaller than the values from the metrics of the\nfont's \"normal\" character.\n\n* src/xftfont.c (xftfont_draw):\n* src/w32font.c (w32font_draw): Correct the values of ascent and\ndescent used to draw glyphless characters' hex code in a box.\n\n* src/xterm.c (x_draw_glyph_string_background):\n* src/xdisp.c (x_produce_glyphs):\n* src/w32term.c (x_draw_glyph_string_background):\n* src/nsterm.m (ns_maybe_dumpglyphs_background): Use FONT_TOO_HIGH\nto detect fonts whose global ascent and descent values are too\nlarge to be used in layout decision, and redraw the background\nwhen that happens.\n\n* src/dispextern.h (FONT_TOO_HIGH): New macro.\n(get_font_ascent_descent): Add prototype.\n\n* src/xterm.c (x_new_font):\n* src/w32term.c (x_new_font):\n* src/nsterm.m (x_new_font):\n* src/font.c (font_open_entity):\n* src/composite.c (composition_gstring_width): Use\nget_font_ascent_descent to obtain reasonable values for ascent and\ndescent of a font.","distinct":true,"url":"https://api.github.com/repos/pobivan/emacs/commits/f1baa156503f089d6627171e0e9ad73bbdbb7268"}]}