[pango/improve-wrap-docs: 14/14] docs: Add some details for PangoWrap




commit 18d161ffd7fb0461e938da5d049d7c401e296ef8
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 2 07:53:02 2021 -0400

    docs: Add some details for PangoWrap
    
    This clarifies things for myself.
    
    Fixes: #573

 pango/pango-layout.h | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index f310e7a3..7042ec44 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -70,6 +70,11 @@ typedef enum {
  *
  * `PangoWrapMode` describes how to wrap the lines of a `PangoLayout`
  * to the desired width.
+ *
+ * For @PANGO_WRAP_WORD, Pango uses break opportunities that are determined
+ * by the Unicode line breaking algorithm. For @PANGO_WRAP_CHAR, Pango allows
+ * breaking at grapheme boundaries that are determined by the Unicode text
+ * segmentation algorithm.
  */
 typedef enum {
   PANGO_WRAP_WORD,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]