summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Remove leftover test filesmatthiasc/for-masterMatthias Clasen2021-08-214-4/+0
| | | | | | | | | | These don't have a corresponding .break file, so they are useless.
* | Merge branch 'renderer-crash' into 'main'Matthias Clasen2021-08-211-1/+1
|\ \ | | | | | | | | | | | | | | | | | | renderer: Don't divide by zero Closes #599 See merge request GNOME/pango!425
| * | renderer: Don't divide by zerorenderer-crashMatthias Clasen2021-08-211-1/+1
| |/ | | | | | | | | | | | | | | Before dividing by num_glyphs in draw_strikethrough, make sure it isn't 0. This should fix reported crashes in this function. Fixes: #599
* | Merge branch 'text-transform-3' into 'main'Matthias Clasen2021-08-2112-121/+364
|\ \ | |/ |/| | | | | Add support for text transformation See merge request GNOME/pango!421
| * Add a test for text_transform in markuptext-transform-3Matthias Clasen2021-08-202-0/+20
| |
| * tests: Use en_US.UTF8 instead of CMatthias Clasen2021-08-201-1/+1
| | | | | | | | | | The C locale gives us heartburn wrt to any non-ASCII chars.
| * Documentation tweaksMatthias Clasen2021-08-201-27/+28
| |
| * shaping: implement text transformMatthias Clasen2021-08-201-81/+167
| | | | | | | | | | | | Transform the text we hand to harfbuzz, as prescribed by the text transform attributes we have. This uses the log attrs to find word starts.
| * layout: Use pango_shape_itemMatthias Clasen2021-08-201-4/+5
| | | | | | | | Use the new API, and pass our log attrs along.
| * Add pango_shape_itemMatthias Clasen2021-08-202-38/+103
| | | | | | | | | | | | Add a pango_shape API variant that takes log attrs, so we can implement text transforms that depend on word boundaries, in the future.