summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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.
| * tests: Handle text transform attrsMatthias Clasen2021-08-201-0/+1
| |
| * layout: Text transform affects shapeMatthias Clasen2021-08-201-0/+1
| | | | | | | | | | Classify text transform as an attribute that affects shaping. It will, in the future.
| * markup: Add a text transform attributeMatthias Clasen2021-08-205-0/+68
| | | | | | | | | | | | Add a PangoTextTransform enum, a PangoAttribute to set it on runs of text, and support for parsing it out of markup.
* | Merge branch 'language-get-default' into 'main'Matthias Clasen2021-08-211-0/+4
|\ \ | |/ |/| | | | | | | | | language: Document issue with per-thread locales Closes #501 See merge request GNOME/pango!422
| * language: Document issue with per-thread localeslanguage-get-defaultMatthias Clasen2021-08-211-0/+4
|/ | | | | | | Document that pango_language_get_default() assumes a single, globale locale. Fixes: #501
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-08-202-58/+17
|\ | | | | | | | | Cosmetics See merge request GNOME/pango!420
| * CosmeticsMatthias Clasen2021-08-202-58/+17
|/ | | | Streamline the internals of shape.c a bit.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-08-201-1/+1
|\ | | | | | | | | Fix the build See merge request GNOME/pango!419
| * Fix up header inclusionsMatthias Clasen2021-08-201-1/+1
|/ | | | | This worked for building pango itself, but not for using it.
* Merge branch 'code-reorg' into 'main'Matthias Clasen2021-08-2024-2745/+2911
|\ | | | | | | | | Cosmetics: Clean up pango-context.h See merge request GNOME/pango!418
| * Some code reorgcode-reorgMatthias Clasen2021-08-201-506/+531
| | | | | | | | Reshuffle pango-attributes.c internally.
| * Cosmetics: Reorganize pango-attributes.hMatthias Clasen2021-08-201-220/+214
| |
| * Include pango-language.hMatthias Clasen2021-08-201-0/+1
| |
| * Cosmetics: Reindent pango-language.hMatthias Clasen2021-08-202-20/+22
| |
| * Cosmetics: Reindent pango-break.hMatthias Clasen2021-08-201-28/+23
| |
| * Cosmetics: Move a function aroundMatthias Clasen2021-08-204-111/+108
| | | | | | | | | | pango_find_paragraph_boundary has nothing to do with breaks, so move it to pango-utils.h
| * Cosmetics: Reindent pango-glyph.hMatthias Clasen2021-08-201-62/+65
| |
| * Cosmetics: Move a function aroundMatthias Clasen2021-08-203-7/+10
| | | | | | | | | | Move pango_reorder_items to pango-item.h, since it is abou items, not about glyphs.
| * Some more code reorgMatthias Clasen2021-08-203-507/+496
| | | | | | | | | | We use harfbuzz shaping on all platforms now, so just merge the code into shape.c
| * Some code reorgMatthias Clasen2021-08-207-1151/+1244
| | | | | | | | | | Split the itemization code into its own file, and move things around a bit.
| * Cosmetics: Reindent pango-item.hMatthias Clasen2021-08-201-23/+24
| |
| * Cosmetics: Reindent pango-context.hMatthias Clasen2021-08-201-49/+41
| |
| * Cosmetics: Clean up pango-context.hMatthias Clasen2021-08-204-18/+20
| | | | | | | | | | Move itemize functions to pango-item.h, and move the PangoContext typedef to pango-types.h.
| * Cosmetics: Split off pango-color.hMatthias Clasen2021-08-204-46/+78
| |
| * Cosmetics: Split off pango-markup.hMatthias Clasen2021-08-205-19/+56
|/
* Merge branch 'block-cursor-fixes' into 'main'Matthias Clasen2021-08-203-143/+320
|\ | | | | | | | | pango-view: Change annotation handling See merge request GNOME/pango!417
| * layout: Fix some wrapped line start positionsblock-cursor-fixesMatthias Clasen2021-08-201-1/+2
| | | | | | | | | | Make pango_layout_index_to_pos report non-empty pos for the first position in a wrapped line.
| * layout: Fix some end-of-line positionMatthias Clasen2021-08-201-7/+8
| | | | | | | | | | Make pango_layout_index_to_pos report non-empty rectangles at the end of a line.
| * Fix pango_layout_index_to_pos resultsMatthias Clasen2021-08-201-6/+9
| | | | | | | | | | We were returning wildly incorrect results for anything but the first run in a line.
| * Add a layout extents checkMatthias Clasen2021-08-201-0/+72
| | | | | | | | | | Add a check that tests that layout, line, run, cluster and char extents are nested as expected.
| * pango-view: Change annotation handlingMatthias Clasen2021-08-191-129/+229
|/ | | | | Make this separate flags, so things can be turned on and off separately.
* Merge branch 'log-attr-language' into 'main'Matthias Clasen2021-08-191-0/+1
|\ | | | | | | | | Use the language we are given See merge request GNOME/pango!415
| * Use the language we are givenlog-attr-languageMatthias Clasen2021-08-191-0/+1
|/ | | | | | pango_get_log_attrs was not using its language argument at all. Pass it into pango_default_break as part of the PangoAnalysis struct.