summaryrefslogtreecommitdiff
path: root/doc/uniwidth.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/uniwidth.texi')
-rw-r--r--doc/uniwidth.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/uniwidth.texi b/doc/uniwidth.texi
index 8c53d04..a05d101 100644
--- a/doc/uniwidth.texi
+++ b/doc/uniwidth.texi
@@ -1,10 +1,12 @@
@node uniwidth.h
@chapter Display width @code{<uniwidth.h>}
+@cindex width
This include file declares functions that return the display width, measured
in columns, of characters or strings, when output to a device that uses
non-proportional fonts.
+@cindex ambiguous width
Note that for some rarely used characters the actual fonts or terminal
emulators can use a different width. There is no mechanism for communicating
the display width of characters across a Unix pseudo-terminal (tty). Also,
@@ -16,6 +18,9 @@ most characters but can fail to represent the actual display width.
These functions are locale dependent. The @var{encoding} argument identifies
the encoding (e.g@. @code{"ISO-8859-2"} for Polish).
+@cindex Unicode character, width
+@cindex halfwidth
+@cindex fullwidth
@deftypefun int uc_width (ucs4_t @var{uc}, const char *@var{encoding})
Determines and returns the number of column positions required for @var{uc}.
Returns -1 if @var{uc} is a control character that has an influence on the