diff options
author | Michele Calgaro <[email protected]> | 2025-01-12 13:09:40 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-01-12 13:25:56 +0900 |
commit | e0a38072cf48a6819a5cd788588267f3441d9d6a (patch) | |
tree | 5875e89df7d84f3c72f19496961694ab6009e5a1 /src/kernel/tqtextengine.cpp | |
parent | ccd304b2a6415d8b747d04b3a47736d1e6f45717 (diff) | |
download | tqt3-e0a38072cf48a6819a5cd788588267f3441d9d6a.tar.gz tqt3-e0a38072cf48a6819a5cd788588267f3441d9d6a.zip |
If the selected font supports the required characters, the text will be displayed correctly.
If the selected font does not support such characters, empty boxes will be displayed in place of the expected text.
Part of the code changes comes from Qt4 code.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/kernel/tqtextengine.cpp')
-rw-r--r-- | src/kernel/tqtextengine.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/kernel/tqtextengine.cpp b/src/kernel/tqtextengine.cpp index 6c046a5b8..f50d849cc 100644 --- a/src/kernel/tqtextengine.cpp +++ b/src/kernel/tqtextengine.cpp @@ -150,7 +150,7 @@ static TQChar::Direction basicDirection( const TQString &str ) } -static void tqAppendItems(TQTextEngine *engine, int &start, int &stop, BidiControl &control, TQChar::Direction dir ) +static void appendItems(TQTextEngine *engine, int &start, int &stop, BidiControl &control, TQChar::Direction dir ) { TQScriptItemArray &items = engine->items; const TQChar *text = engine->string.unicode(); @@ -243,9 +243,6 @@ static void tqAppendItems(TQTextEngine *engine, int &start, int &stop, BidiContr start = stop; } -typedef void (* fAppendItems)(TQTextEngine *, int &start, int &stop, BidiControl &control, TQChar::Direction dir); -static fAppendItems appendItems = tqAppendItems; - // creates the next TQScript items. static void bidiItemize( TQTextEngine *engine, bool rightToLeft, int mode ) { @@ -666,8 +663,6 @@ static void bidiItemize( TQTextEngine *engine, bool rightToLeft, int mode ) if ( sor <= eor ) appendItems(engine, sor, eor, control, dir); - - } void TQTextEngine::bidiReorder( int numItems, const TQ_UINT8 *levels, int *visualOrder ) |