summaryrefslogtreecommitdiff
path: root/src/gmdocument.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-13 21:02:33 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-13 21:02:33 +0300
commitd939dcd1109d7c92e6290976eaf84b94984abef3 (patch)
tree8e07462d687bec980095203e4d351b5e3a9774c0 /src/gmdocument.h
parentf3a3b7785489f1d7c782e02d2e753d012729ab80 (diff)
Drawing document RTL text runs
The base text direction of each line of text is determined when the document is laid out. When drawing runs, use this predetermined base direction.
Diffstat (limited to 'src/gmdocument.h')
-rw-r--r--src/gmdocument.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gmdocument.h b/src/gmdocument.h
index 0d50e6ad..9d906006 100644
--- a/src/gmdocument.h
+++ b/src/gmdocument.h
@@ -128,8 +128,11 @@ struct Impl_GmRun {
128 iRangecc text; 128 iRangecc text;
129 iRect bounds; /* used for hit testing, may extend to edges */ 129 iRect bounds; /* used for hit testing, may extend to edges */
130 iRect visBounds; /* actual visual bounds */ 130 iRect visBounds; /* actual visual bounds */
131 uint8_t font; 131 struct {
132 uint8_t color; 132 uint16_t color : 8;
133 uint16_t font : 7;
134 uint16_t isRTL : 1;
135 } textParams;
133 uint8_t flags; 136 uint8_t flags;
134 uint8_t mediaType; 137 uint8_t mediaType;
135 uint16_t preId; /* preformatted block ID (sequential) */ 138 uint16_t preId; /* preformatted block ID (sequential) */