summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tests: Check layout propertiesmore-test-coverageMatthias Clasen2021-07-0623-30/+576
| | | | | | | Add more layout properties, and check them in test-layout. Also print out directions and cursor positions. Update existing tests, and add more.
* tests: Compare readonly attrsMatthias Clasen2021-07-061-0/+6
| | | | Improves test coverage a little.
* tests: Print layout directions tooMatthias Clasen2021-07-067-0/+44
| | | | | | Make test-layout print the values returned by pango_layout_get_direction too. Update expected test results to match.
* layout: Document default valuesMatthias Clasen2021-07-061-0/+8
| | | | | Since these are not properties, their default values aren't documented anywhere. Until now.
* layout: Correct a g_return_val_if_failMatthias Clasen2021-07-061-1/+1
| | | | | The convention is to return the initial value if the 'this' check fails. Correct this for auto_dir.
* layout: Explicitly initialize single_paragraphMatthias Clasen2021-07-061-0/+1
| | | | This makes it obvious what the initial value is.
* layout: Remove an overeager assertionMatthias Clasen2021-07-061-5/+3
| | | | | | | | | | pango_layout_get_direction contained an assertion that would be hit when just iterating over all chars in the text of the layout (it gets hit when you get to the final newline). Remove the assertion, so that this function is less of a trap.
* CosmeticsMatthias Clasen2021-07-061-1/+1
|
* 1.48.71.48.7Matthias Clasen2021-07-032-1/+6
|
* Merge branch 'improve-wrap-docs' into 'master'Matthias Clasen2021-07-021-0/+5
|\ | | | | | | | | | | | | docs: Add some details for PangoWrap Closes #573 See merge request GNOME/pango!355
| * docs: Add some details for PangoWrapimprove-wrap-docsMatthias Clasen2021-07-021-0/+5
|/ | | | | | This clarifies things for myself. Fixes: #573
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-07-022-0/+11
|\ | | | | | | | | Add libthai to valgrind suppressions See merge request GNOME/pango!357
| * Update lsan.suppMatthias Clasen2021-07-021-0/+1
| | | | | | | | | | | | Sometimes, asan complains about us keeping a static hb_font_funcs_t around. This seems to only affect test-pangocairo-threads. Tell it not to worry about that.
| * Add libthai to valgrind suppressionsMatthias Clasen2021-07-021-0/+10
| | | | | | | | | | We use the shared ThBrk object that libthai creates, and don't free it.
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-07-021-0/+10
|\ \ | |/ | | | | | | Add forgotten NEWS See merge request GNOME/pango!356
| * Add forgotten NEWSMatthias Clasen2021-07-021-0/+10
|/ | | | | This should have been included in the 1.48.6 release, but wasn't.
* Merge branch 'fc-fontmap-crash' into 'master'Matthias Clasen2021-07-021-22/+25
|\ | | | | | | | | | | | | Use atomic reference counting for PangoFcPatterns Closes #571 See merge request GNOME/pango!354
| * Use an enum instead of numeric values for fc_initializedFederico Mena Quintero2021-07-011-5/+16
| |
| * Use atomic reference counting for PangoFcPatternsFederico Mena Quintero2021-07-011-18/+3
| | | | | | | | | | | | | | There was a data race in accessing the ref_count of this struct; now with g_atomic_rc_box it's done properly across threads. Fixes https://gitlab.gnome.org/GNOME/pango/-/issues/571
| * Extract function to free the contents of a PangoFcPatternsFederico Mena Quintero2021-07-011-7/+14
|/
* Merge branch 'tests-fixes' into 'master'Matthias Clasen2021-07-012-3/+4
|\ | | | | | | | | Tests fixes See merge request GNOME/pango!353
| * tests: Free the sizes array, if it was allocatedJan Alexander Steffens (heftig)2021-07-021-0/+1
| |
| * tests: In attribute_from_string, parse offsets as long longJan Alexander Steffens (heftig)2021-07-021-3/+3
|/ | | | | We need space for G_MAXUINT and 4294967285 (in testattributes.c). On i686, this requires long long, as long is only 32 bits wide.
* Merge branch 'drop-broken-optimization' into 'master'Matthias Clasen2021-07-011-3/+0
|\ | | | | | | | | fc: Drop a broken optimization See merge request GNOME/pango!352
| * fc: Drop a broken optimizationdrop-broken-optimizationMatthias Clasen2021-07-011-3/+0
|/ | | | | | | | | We were trying to cut short the wait for FcInit in pango_fc_font_map_set_config. But there was a thinko: while it is true that the fontmap which had set_config called on it does not need to wait for FcInit anymore, other threads fontmaps still do. Instead of making this more complicated, just drop the optimization.
* Merge branch 'get-config-docs' into 'master'Matthias Clasen2021-07-011-1/+2
|\ | | | | | | | | | | | | Clarify docs of pango_fc_fontmap_get_config Closes #572 See merge request GNOME/pango!351
| * Clarify docs of pango_fc_fontmap_get_configget-config-docsMatthias Clasen2021-07-011-1/+2
|/ | | | | | | The return value is owned by Pango. transfer=none doesn't really work for non-GObject types, so just spell it out. Fixes: #572
* Merge branch 'bitmap-font-tests' into 'master'Matthias Clasen2021-06-301-3/+1
|\ | | | | | | | | | | | | tests: Be more careful about font formats Closes #570 See merge request GNOME/pango!350
| * tests: Be more careful about font formatsbitmap-font-testsMatthias Clasen2021-06-301-3/+1
|/ | | | | | | It turns out that we can still see non-scalable fonts which report a list of sizes. Take that into account. Fixes: #570
* 1.48.61.48.6Matthias Clasen2021-06-291-1/+1
|
* Merge branch 'bring-back-better-rounding' into 'master'Matthias Clasen2021-06-281-4/+73
|\ | | | | | | | | | | | | shape: Bring back careful rounding code Closes #562 See merge request GNOME/pango!344
| * shape: Bring back careful rounding codebring-back-better-roundingMatthias Clasen2021-06-271-4/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we added the round-glyph-positions option in c43da2d3 and b5634799, we lost some code that was careful to round in device coordinates. The reason we lost it is that the rounding needs fontconfig- specific data that is only available in the backend, and the rounding now happens in the frontend. Bringing it back is annoying, since we've run out of vfunc slots to get info from the backend. This commit works around that limitation in a hacky way. Fixes: #562
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-06-281-1/+0
|\ \ | | | | | | | | | | | | tests: Drop an unused include See merge request GNOME/pango!348
| * | tests: Drop an unused includeMatthias Clasen2021-06-281-1/+0
|/ / | | | | | | Now that we aren't using the M_ constants, drop math.h.
* | Merge branch 'alatiera/msvc-tests' into 'master'Tim-Philipp Müller2021-06-281-3/+3
|\ \ | | | | | | | | | | | | testmatrix.c: use G_SQRT2 insead of M_SQRT2 See merge request GNOME/pango!347
| * | testmatrix.c: use G_SQRT2 insead of M_SQRT2Jordan Petridis2021-06-281-3/+3
|/ / | | | | | | | | | | | | | | | | | | Math implementations are platform dependent, and for example msvc requires a define before enabling the constants [1] Use G_SQRT2 implementation which is independent instead. [1] https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-160
* | Merge branch 'test-coverage' into 'master'Matthias Clasen2021-06-28100-274/+1557
|\ \ | |/ |/| | | | | Add better attribute test infrastructure See merge request GNOME/pango!346
| * Add missing bidi typestest-coverageMatthias Clasen2021-06-283-6/+20
| | | | | | | | | | The api is deprecated, but it is very ugly to randomly miss a few values here. Just add them.
| * tests: Add some bidi api testsMatthias Clasen2021-06-281-0/+64
| |
| * Add some more font api testsMatthias Clasen2021-06-281-0/+71
| | | | | | | | Exercise the list model apis, for coverage.
| * tests: Add tests for PangoGravityMatthias Clasen2021-06-281-0/+57
| |
| * tabs: CosmeticsMatthias Clasen2021-06-281-1/+1
| |
| * tests: Add tests for PangoTabArrayMatthias Clasen2021-06-282-0/+111
| |
| * tests: Add tests for PangoMatrixMatthias Clasen2021-06-282-0/+206
| |
| * tests: Add tests for PangoLanguageMatthias Clasen2021-06-282-1/+69
| |
| * tests: Add tests for version apisMatthias Clasen2021-06-281-0/+25
| | | | | | | | Check the previous change.
| * utils: Make pango_version_check more preciseMatthias Clasen2021-06-281-0/+2
| | | | | | | | | | The expectation of version comparisons is that major versions have to match exactly.
| * matrix: CosmeticsMatthias Clasen2021-06-281-6/+7
| |
| * tests: Add some PangoContext testsMatthias Clasen2021-06-282-0/+146
| | | | | | | | These improve converage for misc PangoContext apis.
| * tests: Add more attribute testsMatthias Clasen2021-06-281-1/+50
| | | | | | | | These improve test coverage for some corner cases.