diff options
author | inmarket <inmarket@ugfx.org> | 2017-03-11 14:39:53 +1000 |
---|---|---|
committer | inmarket <inmarket@ugfx.org> | 2017-03-11 14:39:53 +1000 |
commit | d8c9ca184f29800f6c23d02bc450ea0e67981990 (patch) | |
tree | 04170629b4b1f755fab2eb04eaf711c3571830a7 /src/gdisp/gdisp_options.h | |
parent | 9500ed2bcc8c579bd56f4e4cdb27376ebc727046 (diff) | |
download | uGFX-d8c9ca184f29800f6c23d02bc450ea0e67981990.tar.gz uGFX-d8c9ca184f29800f6c23d02bc450ea0e67981990.tar.bz2 uGFX-d8c9ca184f29800f6c23d02bc450ea0e67981990.zip |
Fix font baseline_x problem, decrease word-wrap stack usage, add text justification options
Diffstat (limited to 'src/gdisp/gdisp_options.h')
-rw-r--r-- | src/gdisp/gdisp_options.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gdisp/gdisp_options.h b/src/gdisp/gdisp_options.h index 91055a1c..f5f2c18b 100644 --- a/src/gdisp/gdisp_options.h +++ b/src/gdisp/gdisp_options.h @@ -575,6 +575,24 @@ #define GDISP_NEED_TEXT_WORDWRAP FALSE #endif /** + * @brief Adding pixels to the left and right side of the box to pad text. + * @details Only has an effect with @p gdispGDrawStringBox() and @p gdispGFillStringBox() + * @note Can be turned off by using justifyNoPad + * @details Defaults to 1 + */ + #ifndef GDISP_NEED_TEXT_BOXPADLR + #define GDISP_NEED_TEXT_BOXPADLR 1 + #endif + /** + * @brief Adding pixels to the top and bottom side of the box to pad text. + * @details Only has an effect with @p gdispGDrawStringBox() and @p gdispGFillStringBox() + * @note Can be turned off by using justifyNoPad + * @details Defaults to 1 + */ + #ifndef GDISP_NEED_TEXT_BOXPADTB + #define GDISP_NEED_TEXT_BOXPADTB 1 + #endif + /** * @brief Enable UTF-8 support for text rendering. * @details Defaults to FALSE */ |