diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-13 10:40:35 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-13 10:40:35 +0300 |
commit | 0076a605540337bd89d37b7887541144e44b20f3 (patch) | |
tree | 591ed3fb39d1ee6590609657d2e6ca1dd2255caa /src/ui/text.h | |
parent | f49a2ed900aab6ff81f0006bd0b5875c39f454c3 (diff) |
Text: Working on bidi text wrapping
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 8 |
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 | |||
148 | void resetFonts_Text (void); | 148 | void resetFonts_Text (void); |
149 | 149 | ||
150 | int lineHeight_Text (int fontId); | 150 | int lineHeight_Text (int fontId); |
151 | //iInt2 measure_Text (int fontId, const char *text); | ||
152 | //iInt2 measureRange_Text (int fontId, iRangecc text); | ||
153 | iRect visualBounds_Text (int fontId, iRangecc text); | 151 | iRect 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 | ||
159 | iDeclareType(TextMetrics) | 153 | iDeclareType(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_; |