summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump hb requirement to 2.2.0bump-hbMatthias Clasen2021-07-091-1/+1
| | | | | | | We are using hb_ot_var apis in various places. These have been introduced in harfbuzz 2.2.0. 2.2.0 is from 2018, so this should be safe.
* Merge branch 'woff-off' into 'master'Matthias Clasen2021-07-091-1/+9
|\ | | | | | | | | fontconfig: Ignore woff fonts See merge request GNOME/pango!366
| * fontconfig: Ignore woff fontswoff-offMatthias Clasen2021-07-091-1/+9
| | | | | | | | | | | | | | | | harfbuzz creates a face, but doesn't seem to find any glyphs in woff fonts, so filter them out. Sadly, fontfonfig does not have useful format information about this, so we need to crudely filter by filename.
* | Merge branch 'test-for-564' into 'master'Matthias Clasen2021-07-091-0/+22
|\ \ | | | | | | | | | | | | Add a testcase for pango_attr_list_change See merge request GNOME/pango!364
| * | Add a testcase for pango_attr_list_changetest-for-564Matthias Clasen2021-07-091-0/+22
| | | | | | | | | | | | | | | This recreates the scenario described in #564. It works fine.
* | | Merge branch 'segmentation-tweaks' into 'master'Matthias Clasen2021-07-091-4/+20
|\ \ \ | |/ / |/| / | |/ | | pango-segmentation: Add a --text option See merge request GNOME/pango!365
| * pango-segmentation: Add a --text optionsegmentation-tweaksMatthias Clasen2021-07-091-4/+20
|/ | | | | | Change pango-segmentation to interpret its argument as a filename, and add a --text=STRING option to specify the text directly. This matches what pango-view does.
* Merge branch 'tests-and-fixes' into 'master'Matthias Clasen2021-07-0825-17/+345
|\ | | | | | | | | tests: Dump grapheme boundaries too See merge request GNOME/pango!362
| * 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.