summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add segmentation attributesbreak-tailoringMatthias Clasen2021-08-2516-51/+509
| | | | | | | Add attributes that let us override word and sentence boundaries (and, indirectly, line breaks). Tests included.
* Merge branch 'hyphen-log-attr' into 'main'Matthias Clasen2021-08-2518-201/+275
|\ | | | | | | | | | | | | Add hyphens to log attrs Closes #603 See merge request GNOME/pango!436
| * Add some new tests for hyphenshyphen-log-attrMatthias Clasen2021-08-254-0/+16
| |
| * test-break: Print out hyphensMatthias Clasen2021-08-259-42/+66
| | | | | | | | | | | | Print out all the log attrs we have. Update expected test outputs.
| * Refine hyphenationMatthias Clasen2021-08-255-21/+83
| | | | | | | | | | | | | | | | Replace ‧ and | with a - when we break there. Update affected test output. Fixes: #603
| * shape: Rearrange hb buffer setupMatthias Clasen2021-08-251-8/+7
| | | | | | | | | | Rearrange the buffer setup code slightly, so that we can change it easier, later.
| * layout: Use need_hyphen from log attrsMatthias Clasen2021-08-241-130/+1
| |
| * Add hyphens to log attrsMatthias Clasen2021-08-242-3/+105
| | | | | | | | | | | | The code computing this is much better off in break.c, so move it there, and keep the information in the log attr array.
| * Quiet a compiler warningMatthias Clasen2021-08-241-1/+1
| |
* | Merge branch 'caret-slope' into 'main'Matthias Clasen2021-08-257-5/+644
|\ \ | |/ |/| | | | | Add pango_layout_get_caret_pos See merge request GNOME/pango!435
| * Add an illustration for caret metricscaret-slopeMatthias Clasen2021-08-246-1/+543
| |
| * Add pango_layout_get_caret_posMatthias Clasen2021-08-242-5/+102
|/ | | | | This is like pango_layout_get_cursor_pos, but returns a rectangle that has caret font metrics applied to it.
* Merge branch 'log-attr-things' into 'main'Matthias Clasen2021-08-246-76/+153
|\ | | | | | | | | break-thai: Fix up word break handling See merge request GNOME/pango!434
| * docs: Update some linkslog-attr-thingsMatthias Clasen2021-08-231-4/+5
| | | | | | | | We have added new APIs breaking and shaping, link to them.
| * break: Add pango_attr_break apiMatthias Clasen2021-08-233-9/+62
| | | | | | | | | | | | | | | | | | | | | | | | So far, we've been applying attribute-based customization while doing per-item tailoring. But this is suboptimal, since it means we don't have a full view of the log attrs, and can't do invariant fixes that cross item boundaries. Therefore, add a separate pango_attr_break api that applies attributes to to the whole paragraph, and make PangoLayout use it.
| * break: Some code reorganizationMatthias Clasen2021-08-232-49/+60
| | | | | | | | Shuffle break.c around a bit.
| * break-thai: Fix up word break handlingMatthias Clasen2021-08-232-14/+26
|/ | | | | | | | | | | We want to insert word start+end if libthai hands us line breaks between letters. But must be careful not to overwrite existing word boundaries, or we end up with a nonsense sequence. This was found by checking log attr invariants. Regenerate affected test outputs.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-08-241-15/+21
|\ | | | | | | | | layout: Only recompute log_attrs when needed See merge request GNOME/pango!433
| * layout: Only recompute log_attrs when neededMatthias Clasen2021-08-231-15/+21
|/ | | | | | There is no need to throw away the log_attrs when we just change the width, or other layout properties that do not affect segmentation.
* Merge branch 'doc-font-metrics' into 'main'Matthias Clasen2021-08-236-1/+1398
|\ | | | | | | | | docs: Add another illustration See merge request GNOME/pango!432
| * docs: Add another illustrationdoc-font-metricsMatthias Clasen2021-08-226-1/+1398
|/ | | | Show font metrics.
* Merge branch 'fix-test-lists' into 'main'Matthias Clasen2021-08-221-1/+25
|\ | | | | | | | | | | | | Sync up test file lists Closes #600 See merge request GNOME/pango!431
| * Sync up test file listsfix-test-listsMatthias Clasen2021-08-221-1/+25
|/ | | | | | We have more tests than meson knows about. Fixes: #600
* 1.49.01.49.0Matthias Clasen2021-08-221-5/+11
|
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-08-221-1/+1
|\ | | | | | | | | Fix an oversight with text-transform See merge request GNOME/pango!430
| * Fix an oversight with text-transformMatthias Clasen2021-08-221-1/+1
|/ | | | | With the current implementation of text-transform, we need the attribute to be constant across runs.
* Merge branch 'compiler-warnings' into 'main'Matthias Clasen2021-08-2216-58/+124
|\ | | | | | | | | build: More compiler warnings See merge request GNOME/pango!428
| * build: More compiler warningscompiler-warningsMatthias Clasen2021-08-221-4/+39
| | | | | | | | | | | | Now that the code has been fixed, we can enable these warnings. The flags here match what is used in GTK.
| * renderer: Silence compiler warningsMatthias Clasen2021-08-221-0/+8
| |
| * markup: Silence compiler warningsMatthias Clasen2021-08-221-0/+3
| |
| * layout: Silence compiler warningsMatthias Clasen2021-08-221-26/+27
| |
| * break: Silence compiler warningsMatthias Clasen2021-08-221-8/+16
| |
| * tests: Silence compiler warningsMatthias Clasen2021-08-226-7/+12
| |
| * fcfontmap: Silence compiler warningsMatthias Clasen2021-08-221-0/+2
| |
| * bidi: Silence compiler warningsMatthias Clasen2021-08-221-0/+1
| |
| * emoji: Silence compiler warningsMatthias Clasen2021-08-221-0/+3
| |
| * attributes: Silence compiler warningsMatthias Clasen2021-08-221-9/+9
| |
| * glyphstring: Silence compiler warningsMatthias Clasen2021-08-221-4/+4
|/
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-08-221-18/+9
|\ | | | | | | | | testattributes: Assert properly See merge request GNOME/pango!429
| * testattributes: Assert properlyMatthias Clasen2021-08-221-18/+9
|/
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-08-2214-170/+272
|\ | | | | | | | | break: Some code reorg See merge request GNOME/pango!427
| * attributes: CosmeticsMatthias Clasen2021-08-221-2/+2
| | | | | | | | Fix a few comments.
| * tests: Make test-itemize work betterMatthias Clasen2021-08-221-3/+3
| | | | | | | | | | This wasn't working when passed a file on the commandline. Fix that.
| * tests: Add more attribute testsMatthias Clasen2021-08-222-0/+110
| | | | | | | | | | Handle all attribute types when testing copying, and add tests for the binding helpers.
| * Add a forgotten binding helperMatthias Clasen2021-08-221-0/+1
| | | | | | | | The new text-transform attribute was overlooked.
| * TrivialMatthias Clasen2021-08-221-1/+1
| | | | | | | | Fix a comment
| * Fix binding helpers for absolute-line-heightMatthias Clasen2021-08-221-0/+1
| | | | | | | | This was overlooked.
| * tests: Tweak test-break outputMatthias Clasen2021-08-228-23/+24
| | | | | | | | | | | | Change the order in test-break output to be sentence, word, grapheme. Update all affected test outputs.
| * break: Some code reorgMatthias Clasen2021-08-221-141/+130
|/ | | | Reshuffle things to make room for validation.
* Merge branch 'matthiasc/for-master' into 'main'Matthias Clasen2021-08-214-4/+0
|\ | | | | | | | | Remove leftover test files See merge request GNOME/pango!426