summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add more testcases for pango_attr_list_changeattr-list-change-fixMatthias Clasen2021-07-091-9/+264
| | | | | | Add more cases to cover move of the branches in this complicated function. Among other things, this tests the fix in the previous commit.
* Remove an erroneous early exitMatthias Clasen2021-07-091-9/+6
| | | | | | | | pango_attr_list_change was returning early in one case, missing to do some necessary cleanup of the list. Fixes: #564
* CosmeticsMatthias Clasen2021-07-091-3/+3
|
* Merge branch 'fix-empty-line-spacing-2' into 'master'Matthias Clasen2021-07-091-13/+17
|\ | | | | | | | | | | | | layout: make the height of an empty line match a regular line Closes #577 See merge request GNOME/pango!363
| * layout: make the height of an empty line match a regular lineArtem Rebrov2021-07-081-13/+17
| | | | | | | | | | When using line-spacing, the height of an empty line is the same as when line-spacing has zero value. Take the value from font metrics.
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-07-091-6/+11
|\ \ | | | | | | | | | | | | docs: Small layout docs improvements See merge request GNOME/pango!370
| * | docs: Small layout docs improvementsMatthias Clasen2021-07-091-6/+11
|/ / | | | | | | | | Add some more default values, and correct the docs for pango_layout_set_spacing wrt to the default value.
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-07-098-104/+89
|\ \ | | | | | | | | | | | | win32: Don't export private symbol See merge request GNOME/pango!369
| * | ci: Update ci imagesMatthias Clasen2021-07-093-2/+4
| | | | | | | | | | | | | | | | | | Include llvm on the image, so that we can use llvm-symbolizer, too try and get meaningful stacktraces out of asan.
| * | Improve attribute test infrastructureMatthias Clasen2021-07-093-101/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make attribute_from_string() parse enum attribute values in the same way as PangoMarkup, and use it in the attribute tests. Still to do: Do the same for flags. The flags parsing function isn't exported, so this needs our tests to be statically linked.
| * | Fix a compiler warningMatthias Clasen2021-07-091-1/+0
| | |
| * | utils: Fix win32 buildMatthias Clasen2021-07-091-0/+1
|/ / | | | | | | We need stdlib.h for exit().
* | Merge branch 'win32-cmap-free' into 'master'Matthias Clasen2021-07-093-2/+65
|\ \ | | | | | | | | | | | | pangowin32: Clear cmap on finalize See merge request GNOME/pango!318
| * | pangowin32: Clear cmap on finalizeSeungha Yang2021-04-073-2/+65
| | | | | | | | | | | | | | | Implement copy method for format_4_cmap and format_12_cmap, and free don't leak the struct.
* | | Merge branch 'missing-zerowidth-chars' into 'master'Matthias Clasen2021-07-092-5/+22
|\ \ \ | | | | | | | | | | | | | | | | Add a few missing chars to pango_is_zero_width See merge request GNOME/pango!368
| * | | Add a few missing chars to pango_is_zero_widthmissing-zerowidth-charsMatthias Clasen2021-07-092-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation for this function states that all bidi control chars are zero width, but it was missing the Isolate ones. Add them. Updated tests included.
* | | | Merge branch 'bump-hb' into 'master'Matthias Clasen2021-07-091-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Bump hb requirement to 2.2.0 See merge request GNOME/pango!367
| * | | 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