From eb5ca0f94d229255642d66a4f2461634e3e1b420 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 18 May 2014 19:36:06 +0100 Subject: Add logging to nsfont_split function. --- amiga/font.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'amiga') 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; } -- cgit v1.2.3