OSDN Git Service
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>
Ivailo Monev [Mon, 17 Jan 2022 10:30:27 +0000 (12:30 +0200)]
correct warning message in qt_elided_text() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 06:55:28 +0000 (08:55 +0200)]
resolve font family alias to existing one if possible as is done in loadFc() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 06:41:13 +0000 (08:41 +0200)]
add font family resolution test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 17 Jan 2022 04:40:23 +0000 (06:40 +0200)]
read settings file before truncating it in QSettingsPrivate::write()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 18:08:13 +0000 (20:08 +0200)]
test text eliding with all standard font sizes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 18:07:42 +0000 (20:07 +0200)]
open file exclusively for read/write in QSettingsPrivate::write()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 17:56:55 +0000 (19:56 +0200)]
do not round font pixel size in QFontDatabase::load()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 16:48:15 +0000 (18:48 +0200)]
pass the size of the QByteArray object to QString constructor in convert() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 16:36:54 +0000 (18:36 +0200)]
merge any changes to settings files written by other applications
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 16:02:14 +0000 (18:02 +0200)]
enable effects frame based on effects checkbox state in configuration tool
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 15:25:11 +0000 (17:25 +0200)]
typo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 14:53:54 +0000 (16:53 +0200)]
remove now redundant check in isStyleMatch() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 14:50:28 +0000 (16:50 +0200)]
do not attempt to resolve font family alias if fontconfig is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 14:47:15 +0000 (16:47 +0200)]
move regular/normal font styles to the top to prioritize them in lookups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 13:54:36 +0000 (15:54 +0200)]
match regular as normal font style and vice versa
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 13:47:26 +0000 (15:47 +0200)]
substitute regular with normal style for compatibility in QFontDatabase::styles()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Jan 2022 12:20:23 +0000 (14:20 +0200)]
reimplement text eliding, drop support for multi-string in QFontMetrics and QFontMetricsF
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Jan 2022 08:59:54 +0000 (10:59 +0200)]
remove redundant QFontMetrics::width() argument and reimplement it via QFontMetrics::boundingRect()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Jan 2022 05:40:44 +0000 (07:40 +0200)]
de-duplicate code in QTextEngine::fontEngine()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Jan 2022 05:23:57 +0000 (07:23 +0200)]
handle inherited script in QPainterPath::addText()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Jan 2022 22:49:17 +0000 (00:49 +0200)]
effectively revert
56e3d126d0603a6469db2c6a4f636dfb5d319a60
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 12 Jan 2022 05:57:27 +0000 (07:57 +0200)]
remove unused QTextEngine::boundingBox() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 12 Jan 2022 05:44:22 +0000 (07:44 +0200)]
QFont and QFontDatabase documentation corrections [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 21:21:38 +0000 (23:21 +0200)]
remove pre-edit area support test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 18:25:31 +0000 (20:25 +0200)]
fix QTextCursor build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 16:43:22 +0000 (18:43 +0200)]
drop QTextLayout pre-edit support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 15:18:34 +0000 (17:18 +0200)]
remove redundant QTextCursor::MoveOperation enums [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 04:25:46 +0000 (06:25 +0200)]
remove redundant QTextLayout cursor positioning methods
bad API.. bad API! only the initial cursor position and alignment should
be different for RTL layout, left is left either way
https://ibb.co/9vrrqhW
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 02:57:02 +0000 (04:57 +0200)]
format qharfbuzz source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 02:38:17 +0000 (04:38 +0200)]
remove redundant harfbuzz attribute assignment in calcLineBreaks() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 02:36:25 +0000 (04:36 +0200)]
remove redundant harfbuzz font metric enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 02:30:53 +0000 (04:30 +0200)]
fix debug message in QTextEngine::width()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 01:59:44 +0000 (03:59 +0200)]
assume all freefonts are standard in QFontSubset::toType1()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 11 Jan 2022 00:06:46 +0000 (02:06 +0200)]
fix overallocation of POINTBLOCK data
upstream commit:
https://github.com/qt/qtbase/commit/
19532eec2ae1a723e981e3f90730905cabedb9c8
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 23:58:02 +0000 (01:58 +0200)]
pass QRegionPrivate as pointer to QRegionPrivate::contains()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 23:43:16 +0000 (01:43 +0200)]
static analyzer warning fix
upstream commit:
https://github.com/qt/qtbase/commit/
0bbccfe001e005fb83ae0a9633bf11c4b3e25ce1
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 23:32:27 +0000 (01:32 +0200)]
static analyzer warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 22:10:08 +0000 (00:10 +0200)]
compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 22:06:27 +0000 (00:06 +0200)]
initialize LineBreakHelper::previousGlyph member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 22:04:15 +0000 (00:04 +0200)]
initialize LineBreakHelper::previousFontEngine member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 21:47:39 +0000 (23:47 +0200)]
remove unused QTextLineItemIterator::pos_x member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 20:40:19 +0000 (22:40 +0200)]
replace some more references to various font families with GNU FreeFont alternatives
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 20:39:06 +0000 (22:39 +0200)]
use QFontDatabase::hasFamily() to check if font is installed in QFontDatabase test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 20:38:28 +0000 (22:38 +0200)]
use QFontDatabase::hasFamily() to check if font is installed in CSS parser test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 20:37:56 +0000 (22:37 +0200)]
use the same logic as in other QFontDatabase methods in QFontDatabase::hasFamily()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 19:42:12 +0000 (21:42 +0200)]
add missing comma in Debian package control file [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 19:08:04 +0000 (21:08 +0200)]
replace references to various font families with GNU FreeFont alternatives
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 18:45:05 +0000 (20:45 +0200)]
use GNU FreeFont as last resort font
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 17:52:15 +0000 (19:52 +0200)]
test fixed pitch with FreeSans and FreeMono font families
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 17:50:00 +0000 (19:50 +0200)]
match empty font foundry as any in QFontDatabase methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 10:26:57 +0000 (12:26 +0200)]
remove unused get_font_bits() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 09:55:38 +0000 (11:55 +0200)]
remove raw fonts support leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 09:27:19 +0000 (11:27 +0200)]
update URL TLDs table data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 09:24:17 +0000 (11:24 +0200)]
update translations [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 10 Jan 2022 08:04:17 +0000 (10:04 +0200)]
reimplement last resort font check
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>