mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-21 22:11:22 +03:00
improve gtk layout debugging
This commit is contained in:
parent
35a1f27a3f
commit
1c6232da6a
@ -137,6 +137,10 @@ nsfont_position_in_string(const plot_font_style_t *fstyle,
|
||||
*char_offset = index;
|
||||
*actual_x = PANGO_PIXELS(pos.x);
|
||||
|
||||
NSLOG(netsurf, DEEPDEBUG,
|
||||
"fstyle: %p string:\"%.*s\", length: %" PRIsizet ", "
|
||||
"search_x: %dpx, offset: %" PRIsizet ", actual_x: %dpx",
|
||||
fstyle, (int)length, string, length, x, *char_offset, *actual_x);
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
@ -210,6 +214,10 @@ nsfont_split(const plot_font_style_t *fstyle,
|
||||
/* Obtain the pixel offset of the split character */
|
||||
nsfont_width(fstyle, string, index, actual_x);
|
||||
|
||||
NSLOG(netsurf, DEEPDEBUG,
|
||||
"fstyle: %p string:\"%.*s\", length: %" PRIsizet ", "
|
||||
"split_x: %dpx, offset: %" PRIsizet ", actual_x: %dpx",
|
||||
fstyle, (int)length, string, length, x, *char_offset, *actual_x);
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user