summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixRFont.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-03-06 07:13:53 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-03-06 07:13:53 (GMT)
commitaad8ebd4b64cd1c0b0b025f989a90283303a76a2 (patch)
tree84377a728e5a5b4ae78d2bac676e83b39fe893f9 /unix/tkUnixRFont.c
parent187e3360a496e249575b86c371427ad658676f4f (diff)
downloadtk-aad8ebd4b64cd1c0b0b025f989a90283303a76a2.zip
tk-aad8ebd4b64cd1c0b0b025f989a90283303a76a2.tar.gz
tk-aad8ebd4b64cd1c0b0b025f989a90283303a76a2.tar.bz2
Moderate impact of the comment added in the previous commit.
Diffstat (limited to 'unix/tkUnixRFont.c')
-rw-r--r--unix/tkUnixRFont.c22
1 files 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);