summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* break: Fix handling of tag sequencestests-and-fixesMatthias Clasen2021-07-074-1/+16
| | | | | | | | Correctly classify tag characters as Grapheme_Extend, so that we don't end up putting grapheme boundaries in the middle of tag sequences. Includes a test.
* tests: Add some more layout testsMatthias Clasen2021-07-076-0/+127
|
* tests: Dump grapheme boundaries tooMatthias Clasen2021-07-0711-5/+52
| | | | | | | Add grapheme boundaries to the output of test-break, so we can check those easily, too. Update expected test output for this.
* tests: Add some more break testcasesMatthias Clasen2021-07-074-0/+18
|
* tests: Add more glyph item iter testsMatthias Clasen2021-07-071-4/+13
|
* tests: Add more glyph item testsMatthias Clasen2021-07-061-0/+30
|
* tests: Add more font testsMatthias Clasen2021-07-061-8/+90
|
* Merge branch 'more-test-coverage2' into 'master'Matthias Clasen2021-07-0734-111/+1129
|\ | | | | | | | | utils: Remove leftover code See merge request GNOME/pango!360
| * tests: Move bidi tests to their own filemore-test-coverage2Matthias Clasen2021-07-063-58/+180
| | | | | | | | Also add some tests for bidi embedding levels.
| * tests: Add some more script iter testsMatthias Clasen2021-07-061-0/+10
| |
| * tests: Add tests for fallback shapingMatthias Clasen2021-07-061-0/+37
| |
| * tests: Make test-break output more convenientMatthias Clasen2021-07-061-6/+10
| | | | | | | | | | Avoid g_test_init if we are just generating expected output, for easier updating.
| * tests: Check more layout propertiesMatthias Clasen2021-07-0628-29/+867
| | | | | | | | | | | | | | | | Allow setting more layout properties in test-layout, and check their values after setting them. Also print out directions and cursor positions. Update existing tests, and add more.
| * tests: Improve coverageMatthias Clasen2021-07-061-0/+9
| | | | | | | | Spot-check a copied layout in test-break.
| * layout: Zero out log attrsMatthias Clasen2021-07-061-1/+1
| | | | | | | | This makes tests more reproducible.
| * layout: Add a missing annotationMatthias Clasen2021-07-061-1/+1
| | | | | | | | pango_layout_get_tabs returns a copy.
| * 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.
| * utils: Remove leftover codeMatthias Clasen2021-07-061-11/+0
| | | | | | | | | | pango-segmentation is not a test, so don't call g_test_message.
| * Fix a memory leakMatthias Clasen2021-07-061-0/+2
| |
| * CosmeticsMatthias Clasen2021-07-061-2/+2
|/
* Merge branch 'fix-strikethrough-averaging' into 'master'Matthias Clasen2021-07-051-7/+8
|\ | | | | | | | | | | | | renderer: Fix averaging of strikethroughs Closes #574 See merge request GNOME/pango!358
| * renderer: Fix averaging of strikethroughsfix-strikethrough-averagingMatthias Clasen2021-07-051-7/+8
|/ | | | | | | | | | | | | | In 85bdfead1b36945db251 I made consecutive runs average their strikeout positions, but I did handle the accounting properly, causing previous runs to influence the strikeout of later runs, if we have to draw them separately (due to color change). It would be nicer to average even across color changes and draw the line continuously in that case as well, but that would require two passes over the runs. Fixes: #574
* 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