Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: Add more attribute tests | Matthias Clasen | 2021-08-22 | 2 | -0/+110 |
| | | | | | Handle all attribute types when testing copying, and add tests for the binding helpers. | ||||
* | Add a forgotten binding helper | Matthias Clasen | 2021-08-22 | 1 | -0/+1 |
| | | | | The new text-transform attribute was overlooked. | ||||
* | Trivial | Matthias Clasen | 2021-08-22 | 1 | -1/+1 |
| | | | | Fix a comment | ||||
* | Fix binding helpers for absolute-line-height | Matthias Clasen | 2021-08-22 | 1 | -0/+1 |
| | | | | This was overlooked. | ||||
* | tests: Tweak test-break output | Matthias Clasen | 2021-08-22 | 8 | -23/+24 |
| | | | | | | Change the order in test-break output to be sentence, word, grapheme. Update all affected test outputs. | ||||
* | break: Some code reorg | Matthias Clasen | 2021-08-22 | 1 | -141/+130 |
| | | | | Reshuffle things to make room for validation. | ||||
* | Merge branch 'matthiasc/for-master' into 'main' | Matthias Clasen | 2021-08-21 | 4 | -4/+0 |
|\ | | | | | | | | | Remove leftover test files See merge request GNOME/pango!426 | ||||
| * | Remove leftover test filesmatthiasc/for-master | Matthias Clasen | 2021-08-21 | 4 | -4/+0 |
| | | | | | | | | | | These don't have a corresponding .break file, so they are useless. | ||||
* | | Merge branch 'renderer-crash' into 'main' | Matthias Clasen | 2021-08-21 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | | | | | | | renderer: Don't divide by zero Closes #599 See merge request GNOME/pango!425 | ||||
| * | | renderer: Don't divide by zerorenderer-crash | Matthias Clasen | 2021-08-21 | 1 | -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 Clasen | 2021-08-21 | 12 | -121/+364 |
|\ \ | |/ |/| | | | | | Add support for text transformation See merge request GNOME/pango!421 | ||||
| * | Add a test for text_transform in markuptext-transform-3 | Matthias Clasen | 2021-08-20 | 2 | -0/+20 |
| | | |||||
| * | tests: Use en_US.UTF8 instead of C | Matthias Clasen | 2021-08-20 | 1 | -1/+1 |
| | | | | | | | | | | The C locale gives us heartburn wrt to any non-ASCII chars. | ||||
| * | Documentation tweaks | Matthias Clasen | 2021-08-20 | 1 | -27/+28 |
| | | |||||
| * | shaping: implement text transform | Matthias Clasen | 2021-08-20 | 1 | -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_item | Matthias Clasen | 2021-08-20 | 1 | -4/+5 |
| | | | | | | | | Use the new API, and pass our log attrs along. | ||||
| * | Add pango_shape_item | Matthias Clasen | 2021-08-20 | 2 | -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 attrs | Matthias Clasen | 2021-08-20 | 1 | -0/+1 |
| | | |||||
| * | layout: Text transform affects shape | Matthias Clasen | 2021-08-20 | 1 | -0/+1 |
| | | | | | | | | | | Classify text transform as an attribute that affects shaping. It will, in the future. | ||||
| * | markup: Add a text transform attribute | Matthias Clasen | 2021-08-20 | 5 | -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 Clasen | 2021-08-21 | 1 | -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-default | Matthias Clasen | 2021-08-21 | 1 | -0/+4 |
|/ | | | | | | | Document that pango_language_get_default() assumes a single, globale locale. Fixes: #501 | ||||
* | Merge branch 'matthiasc/for-main' into 'main' | Matthias Clasen | 2021-08-20 | 2 | -58/+17 |
|\ | | | | | | | | | Cosmetics See merge request GNOME/pango!420 | ||||
| * | Cosmetics | Matthias Clasen | 2021-08-20 | 2 | -58/+17 |
|/ | | | | Streamline the internals of shape.c a bit. | ||||
* | Merge branch 'matthiasc/for-main' into 'main' | Matthias Clasen | 2021-08-20 | 1 | -1/+1 |
|\ | | | | | | | | | Fix the build See merge request GNOME/pango!419 | ||||
| * | Fix up header inclusions | Matthias Clasen | 2021-08-20 | 1 | -1/+1 |
|/ | | | | | This worked for building pango itself, but not for using it. | ||||
* | Merge branch 'code-reorg' into 'main' | Matthias Clasen | 2021-08-20 | 24 | -2745/+2911 |
|\ | | | | | | | | | Cosmetics: Clean up pango-context.h See merge request GNOME/pango!418 | ||||
| * | Some code reorgcode-reorg | Matthias Clasen | 2021-08-20 | 1 | -506/+531 |
| | | | | | | | | Reshuffle pango-attributes.c internally. | ||||
| * | Cosmetics: Reorganize pango-attributes.h | Matthias Clasen | 2021-08-20 | 1 | -220/+214 |
| | | |||||
| * | Include pango-language.h | Matthias Clasen | 2021-08-20 | 1 | -0/+1 |
| | | |||||
| * | Cosmetics: Reindent pango-language.h | Matthias Clasen | 2021-08-20 | 2 | -20/+22 |
| | | |||||
| * | Cosmetics: Reindent pango-break.h | Matthias Clasen | 2021-08-20 | 1 | -28/+23 |
| | | |||||
| * | Cosmetics: Move a function around | Matthias Clasen | 2021-08-20 | 4 | -111/+108 |
| | | | | | | | | | | pango_find_paragraph_boundary has nothing to do with breaks, so move it to pango-utils.h | ||||
| * | Cosmetics: Reindent pango-glyph.h | Matthias Clasen | 2021-08-20 | 1 | -62/+65 |
| | | |||||
| * | Cosmetics: Move a function around | Matthias Clasen | 2021-08-20 | 3 | -7/+10 |
| | | | | | | | | | | Move pango_reorder_items to pango-item.h, since it is abou items, not about glyphs. | ||||
| * | Some more code reorg | Matthias Clasen | 2021-08-20 | 3 | -507/+496 |
| | | | | | | | | | | We use harfbuzz shaping on all platforms now, so just merge the code into shape.c | ||||
| * | Some code reorg | Matthias Clasen | 2021-08-20 | 7 | -1151/+1244 |
| | | | | | | | | | | Split the itemization code into its own file, and move things around a bit. | ||||
| * | Cosmetics: Reindent pango-item.h | Matthias Clasen | 2021-08-20 | 1 | -23/+24 |
| | | |||||
| * | Cosmetics: Reindent pango-context.h | Matthias Clasen | 2021-08-20 | 1 | -49/+41 |
| | | |||||
| * | Cosmetics: Clean up pango-context.h | Matthias Clasen | 2021-08-20 | 4 | -18/+20 |
| | | | | | | | | | | Move itemize functions to pango-item.h, and move the PangoContext typedef to pango-types.h. | ||||
| * | Cosmetics: Split off pango-color.h | Matthias Clasen | 2021-08-20 | 4 | -46/+78 |
| | | |||||
| * | Cosmetics: Split off pango-markup.h | Matthias Clasen | 2021-08-20 | 5 | -19/+56 |
|/ | |||||
* | Merge branch 'block-cursor-fixes' into 'main' | Matthias Clasen | 2021-08-20 | 3 | -143/+320 |
|\ | | | | | | | | | pango-view: Change annotation handling See merge request GNOME/pango!417 | ||||
| * | layout: Fix some wrapped line start positionsblock-cursor-fixes | Matthias Clasen | 2021-08-20 | 1 | -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 position | Matthias Clasen | 2021-08-20 | 1 | -7/+8 |
| | | | | | | | | | | Make pango_layout_index_to_pos report non-empty rectangles at the end of a line. | ||||
| * | Fix pango_layout_index_to_pos results | Matthias Clasen | 2021-08-20 | 1 | -6/+9 |
| | | | | | | | | | | We were returning wildly incorrect results for anything but the first run in a line. | ||||
| * | Add a layout extents check | Matthias Clasen | 2021-08-20 | 1 | -0/+72 |
| | | | | | | | | | | Add a check that tests that layout, line, run, cluster and char extents are nested as expected. | ||||
| * | pango-view: Change annotation handling | Matthias Clasen | 2021-08-19 | 1 | -129/+229 |
|/ | | | | | Make this separate flags, so things can be turned on and off separately. | ||||
* | Merge branch 'log-attr-language' into 'main' | Matthias Clasen | 2021-08-19 | 1 | -0/+1 |
|\ | | | | | | | | | Use the language we are given See merge request GNOME/pango!415 | ||||
| * | Use the language we are givenlog-attr-language | Matthias Clasen | 2021-08-19 | 1 | -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. |