OSDN Git Service
Ivailo Monev [Sun, 30 Jan 2022 11:49:52 +0000 (13:49 +0200)]
get rid of QScopedArrayPointer<T> [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Jan 2022 11:08:09 +0000 (13:08 +0200)]
make private QPainterPath data pointer actually private [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Jan 2022 07:58:40 +0000 (09:58 +0200)]
Xvfb quirk workaround in tst_QListView::task254449_draggingItemToNegativeCoordinates()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Jan 2022 06:06:08 +0000 (08:06 +0200)]
optimize QRasterWindowSurface::flush()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Jan 2022 05:09:51 +0000 (07:09 +0200)]
remove unused QWindowSurface::buffer() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Jan 2022 04:20:04 +0000 (06:20 +0200)]
remove unused header inclusions in qpaintengine_x11 source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 21:52:45 +0000 (23:52 +0200)]
format and indent QCleanlooksStyle::drawPrimitive()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 21:36:24 +0000 (23:36 +0200)]
declare xlibMaxLinePoints as static constant
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 21:29:41 +0000 (23:29 +0200)]
always draw polygons as path from QX11PaintEngine::drawPolygon()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 21:11:09 +0000 (23:11 +0200)]
remove unused QScriptLine::hasTrailingSpaces member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 18:02:20 +0000 (20:02 +0200)]
remove unused QTextEngine::getClusterLength() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 18:02:07 +0000 (20:02 +0200)]
const-ify variables in QFontEngineFT::getGlyph()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 17:51:28 +0000 (19:51 +0200)]
minimal QStdMap implementation so that qHash() is used for hashing it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 15:15:42 +0000 (17:15 +0200)]
reuse variable in QFontEngineFT destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 15:15:10 +0000 (17:15 +0200)]
remove QLinkedList<T> leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 03:48:42 +0000 (05:48 +0200)]
README update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 03:25:38 +0000 (05:25 +0200)]
get rid of QLinkedList<T>
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Jan 2022 00:00:30 +0000 (02:00 +0200)]
use QStdVector<T> instead of QVector<T> for metatype and font database cache
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 23:59:24 +0000 (01:59 +0200)]
use std::unordered_map<T,T> for character and glyph cache in QFontEngineFT
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 23:45:39 +0000 (01:45 +0200)]
remove TODO in qvector header that will not be done, QStdVector<T> will be used internally
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 22:51:42 +0000 (00:51 +0200)]
compute load flags from QFontEngineFT::loadGlyph()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 22:20:44 +0000 (00:20 +0200)]
cheaky font outlines cache
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 18:17:12 +0000 (20:17 +0200)]
hex encode the designer tool main window and toobar states
fixes designer tool state save/restore
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 15:42:57 +0000 (17:42 +0200)]
newly created FcPattern pointers have no properties
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 14:31:30 +0000 (16:31 +0200)]
generalized initializers and rvalue references are standard since C++11 [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 14:10:00 +0000 (16:10 +0200)]
remove redundant and internal Q_EXTERN_C definition
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 14:05:11 +0000 (16:05 +0200)]
avoid temporary in QX11PixmapData::fromImage()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 13:42:00 +0000 (15:42 +0200)]
if device is sequential set the internal QIODevice position instead in QFile::open()
fixes QFile test failures on FreeBSD
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 13:30:53 +0000 (15:30 +0200)]
do not reference the source image in qt_mask_image() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 12:31:56 +0000 (14:31 +0200)]
use format with alpha channel if Xrender is used in QX11PixmapData::toImage()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Jan 2022 12:29:17 +0000 (14:29 +0200)]
remove redundant QX11Data::copyXImageToQImageWithMask() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Jan 2022 18:59:45 +0000 (20:59 +0200)]
remove unused fontconfig pattern properties
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Jan 2022 16:25:12 +0000 (18:25 +0200)]
drop support for multi-family font request
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Jan 2022 15:58:23 +0000 (17:58 +0200)]
revert changes to text underlining for now
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Jan 2022 15:33:12 +0000 (17:33 +0200)]
Merge branch 'master' of ssh://github.com/fluxer/katie
Ivailo Monev [Thu, 27 Jan 2022 17:24:24 +0000 (17:24 +0000)]
remove unused and internal QFontInfo methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Jan 2022 14:19:40 +0000 (14:19 +0000)]
remove unused pattern query in QFontDatabase constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Jan 2022 14:19:00 +0000 (14:19 +0000)]
result of QFontDatabase::pointSizes() and QFontDatabase::smoothSizes() is already sorted
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Jan 2022 22:57:51 +0000 (00:57 +0200)]
remove unused tryPatternLoad() function argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Jan 2022 22:56:15 +0000 (00:56 +0200)]
replace qt_addPatternProps() with its body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Jan 2022 22:24:00 +0000 (00:24 +0200)]
drop support for non-local font filepaths
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Jan 2022 22:08:39 +0000 (00:08 +0200)]
remove unused QFreetypeFace::addGlyphToPath() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Jan 2022 21:17:58 +0000 (23:17 +0200)]
guard against QTextCodecCleanup recreation in QTextCodec destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Jan 2022 17:24:38 +0000 (19:24 +0200)]
drop accessibility support [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Jan 2022 13:18:12 +0000 (15:18 +0200)]
remove unused QT_FPOS_T definition
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 25 Jan 2022 16:18:00 +0000 (18:18 +0200)]
correct condition for assert in tst_QAbstractSpinBox::getSetCheck()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 25 Jan 2022 13:51:33 +0000 (15:51 +0200)]
get rid of the subject to race condition Q_GLOBAL_STATIC_WITH_INITIALIZER() macro [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 25 Jan 2022 00:58:38 +0000 (02:58 +0200)]
get rid of QT_BEGIN_INCLUDE_NAMESPACE and QT_END_INCLUDE_NAMESPACE definitions [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 24 Jan 2022 15:41:56 +0000 (17:41 +0200)]
replace some QFreetypeFace methods with their body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 24 Jan 2022 15:33:51 +0000 (17:33 +0200)]
return changed copy of properties from QFontEngineFT::properties()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 24 Jan 2022 15:27:43 +0000 (17:27 +0200)]
remove unused QFreetypeFace::xsize and QFreetypeFace::ysize members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 23:16:09 +0000 (01:16 +0200)]
return standard point sizes from QFontDatabase::pointSizes()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 23:10:41 +0000 (01:10 +0200)]
style argument of QFontDatabase::pointSizes() is optional
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 23:10:19 +0000 (01:10 +0200)]
remove unused font pattern property
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 23:08:16 +0000 (01:08 +0200)]
QFontDatabase does not have enums for it to get declared as gadget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 22:24:54 +0000 (00:24 +0200)]
use QPointF instead of QTransform as argument for QFontEngine::getGlyphPositions()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 11:33:27 +0000 (13:33 +0200)]
adjust QFontEngineFT::boundingBox() to the changes done so far related to text
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 10:39:20 +0000 (12:39 +0200)]
QFont::HintingPreference documentation correction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Jan 2022 10:38:48 +0000 (12:38 +0200)]
mark warning cases in QFont as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 22 Jan 2022 12:54:54 +0000 (14:54 +0200)]
remove comment for generateItem() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 22 Jan 2022 12:54:40 +0000 (14:54 +0200)]
move debug messages where they make sense in tryPatternLoad() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 22:06:47 +0000 (00:06 +0200)]
fix script detection for surrogates in text engine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 20:28:36 +0000 (22:28 +0200)]
debug build type fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 16:31:03 +0000 (18:31 +0200)]
replace QGlyphLayout::spaceNeededForGlyphLayout() with QSPACEFORGLYPHS() macro so that compilers can get it that it's constant expression
cheaper than function call and constexpr-free
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 16:04:20 +0000 (18:04 +0200)]
remove unused QVarLengthGlyphLayoutArray::resize() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 15:28:31 +0000 (17:28 +0200)]
reduce the allocations for glyph arrays
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 15:19:40 +0000 (17:19 +0200)]
optimize QPainterPath::addText()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 13:50:12 +0000 (15:50 +0200)]
convert text engine item generator to static function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 13:38:48 +0000 (15:38 +0200)]
remove plastique and motif styles [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Jan 2022 14:18:25 +0000 (14:18 +0000)]
remove redundant condition check in QFreetypeFace constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Jan 2022 21:49:58 +0000 (23:49 +0200)]
remove bogus hack in Itemizer::generate()
fixes painting of repeated characters and several other issues
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Jan 2022 15:30:23 +0000 (17:30 +0200)]
revert some changes for the sake of compatibility (for now)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Jan 2022 13:58:42 +0000 (15:58 +0200)]
use only special character to find font for scripts
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Jan 2022 10:03:14 +0000 (12:03 +0200)]
include foundries in the result of QFontDatabase::families() only when there are multiple for font family
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 22:58:46 +0000 (00:58 +0200)]
initialize variable in qt_FcPatternToQFontDef() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 22:17:26 +0000 (00:17 +0200)]
order fonts in database based on score
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 17:40:04 +0000 (19:40 +0200)]
initialize variable in QFontEngineFT constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 17:39:47 +0000 (19:39 +0200)]
initialize QX11Data::fc_hint_style member regardless if QT_NO_FONTCONFIG is defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 17:39:04 +0000 (19:39 +0200)]
remove unused getXDefault() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 16:30:48 +0000 (18:30 +0200)]
remove now redundant font style strategy property [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 16:01:22 +0000 (18:01 +0200)]
completely drop support for bitmap fonts [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 14:14:05 +0000 (16:14 +0200)]
justification space is always zero for outlines now
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Jan 2022 13:54:53 +0000 (15:54 +0200)]
remove noop harfbuzz bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 20:01:20 +0000 (22:01 +0200)]
remove disabled debug messages related to QFontDatabase
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 19:44:06 +0000 (19:44 +0000)]
replace calcLineBreaks() function with its body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 19:43:42 +0000 (19:43 +0000)]
remove unused Qt::TextJustificationForced enum [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 19:11:08 +0000 (19:11 +0000)]
mark warning cases in QTextLayout as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 18:43:41 +0000 (18:43 +0000)]
const-ify variable in QFontMetrics constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 18:43:22 +0000 (18:43 +0000)]
remove unused unicode tables data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 12:02:20 +0000 (14:02 +0200)]
prioritize normal, book, roman and non-italic styles
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Jan 2022 09:25:32 +0000 (11:25 +0200)]
compare weight in QtFontFamily less than operator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 23:10:30 +0000 (01:10 +0200)]
remove unused harfbuzz code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 21:48:00 +0000 (23:48 +0200)]
do not assume fonts have normal/regular style
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 21:14:43 +0000 (23:14 +0200)]
test font resolution with foundry
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 19:36:04 +0000 (21:36 +0200)]
remove unused harfbuzz offsets related code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 19:02:31 +0000 (21:02 +0200)]
remove redundant QGlyphLayout::advances_y member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 18:23:46 +0000 (20:23 +0200)]
update comment about glyph_metrics_t struct
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 17:00:50 +0000 (19:00 +0200)]
ensure width is not affected by negative outline contours in QFontMetrics/QFontMetricsF
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 14:09:19 +0000 (16:09 +0200)]
test text eliding with fixed pitch font
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 11:44:53 +0000 (13:44 +0200)]
compare point size member in QFontDef operator methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>