summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-13 10:40:35 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-13 10:40:35 +0300
commit0076a605540337bd89d37b7887541144e44b20f3 (patch)
tree591ed3fb39d1ee6590609657d2e6ca1dd2255caa /src/ui/text.h
parentf49a2ed900aab6ff81f0006bd0b5875c39f454c3 (diff)
Text: Working on bidi text wrapping
Diffstat (limited to 'src/ui/text.h')
-rw-r--r--src/ui/text.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/text.h b/src/ui/text.h
index 0209e10a..8be5a373 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -148,13 +148,7 @@ void setContentFontSize_Text (float fontSizeFactor); /* affects all except `d
148void resetFonts_Text (void); 148void resetFonts_Text (void);
149 149
150int lineHeight_Text (int fontId); 150int lineHeight_Text (int fontId);
151//iInt2 measure_Text (int fontId, const char *text);
152//iInt2 measureRange_Text (int fontId, iRangecc text);
153iRect visualBounds_Text (int fontId, iRangecc text); 151iRect visualBounds_Text (int fontId, iRangecc text);
154//iInt2 advance_Text (int fontId, const char *text);
155//iInt2 advanceN_Text (int fontId, const char *text, size_t n); /* `n` in characters */
156//iInt2 advanceRange_Text (int fontId, iRangecc text);
157//iInt2 advanceWrapRange_Text (int fontId, int maxWidth, iRangecc text);
158 152
159iDeclareType(TextMetrics) 153iDeclareType(TextMetrics)
160 154
@@ -209,7 +203,7 @@ struct Impl_WrapText {
209 iRangecc text; 203 iRangecc text;
210 int maxWidth; 204 int maxWidth;
211 enum iWrapTextMode mode; 205 enum iWrapTextMode mode;
212 iBool (*wrapFunc)(iWrapText *, iRangecc wrappedText, int advance); 206 iBool (*wrapFunc)(iWrapText *, iRangecc wrappedText, int origin, int advance);
213 void * context; 207 void * context;
214 /* internal */ 208 /* internal */
215 iRangecc wrapRange_; 209 iRangecc wrapRange_;