summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-02-07 07:14:48 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-02-07 07:14:48 (GMT)
commit0420c4178107e02cdb74c83a3829c72636b61b38 (patch)
tree7f6f8d988bdd180e1b1e9d99284f3af490570b84
parent0c9f2b0c9ca4fa95f8ca05e108865c325d86887a (diff)
downloadtk-bug_1096580fff.zip
tk-bug_1096580fff.tar.gz
tk-bug_1096580fff.tar.bz2
Explain why replacing soft hyphens by hard hyphens is done only on OS Xbug_1096580fff
-rw-r--r--generic/tkTextDisp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 570e166..1ed9a65 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -7980,7 +7980,8 @@ CharDisplayProc(
/*
* On OS X, the soft hyphen does not render (there is no
* corresponding glyph in OS X fonts). Display a regular
- * hard hyphen instead.
+ * hard hyphen instead. This could be done on all platforms
+ * but for performance reasons do it only if it's needed.
*/
#ifdef MAC_OSX_TK
@@ -8060,7 +8061,8 @@ CharDisplayProc(
/*
* On OS X, the soft hyphen does not render (there is no
* corresponding glyph in OS X fonts). Display a regular
- * hard hyphen instead.
+ * hard hyphen instead. This could be done on all platforms
+ * but for performance reasons do it only if it's needed.
*/
#ifdef MAC_OSX_TK