refreshText() executes loop also for text with more than one line
and m_old_cText attribut should be updated only if loop is ready. Otherwise
in text boxes with more than one line, only first line would be painted.
- For the correct use of the changes should be built freetype
with the following settings:
#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
If more text is added to a textbox than fits into the window, the last
lines are stripped. In BOTTOM (and non-SCROLL) mode, it makes more sense
to strip the first lines. This is used by shellwindow, e.g. in package
management menu.
supplement to: - textbox: fix box width in round corners mode
Radius was always subtracted in all text modes.
TODO: value of m_nBgRadius itself is not considered at the moment.
I'm missing a function that returns current line count outside
of a CTextBox object. This could be useful eg. for size calculations
before object init etc
Check of text change is not enough. Scrollboxes could have some problems.
Dimension changes must be considered too and this is to much effort at
the moment. Use of OnAfterScrollPage is much easier.
this reverts: 342de45cc3
- split hasChanged() into hasChangedPos(), hasChangedDim()
- add return value bool to enableBackgroundPaint(), enableSaveScreen()
- add clearScreenBuffer(), for unified usage in destructor and functions
- add OnAfterRefresh() as a signal/slot handler, this allows to use
external methodes as callbacks after painted text
Paint routine of text has changed, so it can be useful to affect the old
behavior of text repaint beacause of text is painted only if
text or some other properties have changed.
Default value of force_repaint is true, so we have the same behavior like
before changes.