From aad8ebd4b64cd1c0b0b025f989a90283303a76a2 Mon Sep 17 00:00:00 2001 From: fvogel Date: Tue, 6 Mar 2018 07:13:53 +0000 Subject: Moderate impact of the comment added in the previous commit. --- unix/tkUnixRFont.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index 0a75573..8e0ce55 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -1059,15 +1059,19 @@ TkDrawAngledChars( x <= maxCoord - metrics.width && y <= maxCoord - metrics.height) { - /* - * NOTE: - * The whole algorithm has a design problem, the choice of - * NUM_SPEC is arbitrary, and so the inter-glyph spacing will - * look arbitrary. This algorithm has to draw the whole string - * at once (or whole blocks with same font), this requires a - * dynamic 'glyphs' array. In case of overflow the array has to - * be divided until the maximal string will fit. (GC) - */ + /* + * NOTE: + * The whole algorithm has a design problem, the choice of + * NUM_SPEC is arbitrary, and so the inter-glyph spacing could + * look arbitrary. This algorithm has to draw the whole string + * at once (or whole blocks with same font), this requires a + * dynamic 'glyphs' array. In case of overflow the array has to + * be divided until the maximal string will fit. (GC) + * Given the resolution of current displays though, this should + * not be a huge issue since NUM_SPEC is 1024 and thus able to + * cover about 6000 pixels for a 6 pixel wide font (which is + * a very small barely readable font) + */ XftDrawGlyphs(fontPtr->ftDraw, xftcolor, currentFtFont, originX, originY, glyphs, nglyph); -- cgit v0.12