diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-18 19:36:06 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-18 19:36:06 +0100 |
commit | eb5ca0f94d229255642d66a4f2461634e3e1b420 (patch) | |
tree | c06b969fa3fddec1e4971008c93219d3a1f7a57e /amiga/font.c | |
parent | 706c92bf8f6d2737c1e38f707fd792bceb75af6a (diff) | |
download | netsurf-eb5ca0f94d229255642d66a4f2461634e3e1b420.tar.gz netsurf-eb5ca0f94d229255642d66a4f2461634e3e1b420.tar.bz2 |
Add logging to nsfont_split function.
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-x | amiga/font.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/amiga/font.c b/amiga/font.c index 0cac6a425..6821a3194 100755 --- a/amiga/font.c +++ b/amiga/font.c @@ -339,6 +339,10 @@ bool nsfont_split(const plot_font_style_t *fstyle, if ((x < tx) && (*char_offset != 0)) { /* Reached available width, and a space was found; * split there. */ + LOG(("Split %u chars at %ipx: " + "Split at char %i (%ipx) - %.*s", + length, x, *char_offset, *actual_x, + *char_offset, string)); free(utf16_str); return true; } @@ -354,7 +358,11 @@ bool nsfont_split(const plot_font_style_t *fstyle, *char_offset = length; *actual_x = tx; - + + LOG(("Split %u chars at %ipx: " + "Split at char %i (%ipx) - %.*s", + length, x, *char_offset, *actual_x, + *char_offset, string)); return true; } |