Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | layout: Go back to trimming start and endline-breaker | Matthias Clasen | 2022-01-25 | 1 | -1/+8 |
| | | | | | | We want the first and the last line of the paragraph to have its leading trimmed, for the purposes of determining the paragraph extents. | ||||
* | line-breaker: Fix a corner case | Matthias Clasen | 2022-01-25 | 1 | -0/+2 |
| | | | | | | We were sometimes leaving a stray glyphstring behind when handling newlines in single paragraph mode. | ||||
* | layout: Fix an oversight | Matthias Clasen | 2022-01-25 | 1 | -1/+2 |
| | |||||
* | ellipsize: Fix an oversight | Matthias Clasen | 2022-01-25 | 1 | -2/+2 |
| | | | | | Fix a G_MAXINT <> G_MAXUINT confusion by using the proper define here. | ||||
* | ellipsize: Filter attributes | Matthias Clasen | 2022-01-25 | 1 | -1/+7 |
| | | | | | | | When collecting attributes to itemize and shape the ellipsize, don't pick up rendering attributes. This fixes occasional miscolored ellipses if the beginning of the line is colored. | ||||
* | attributes: Centralize classification | Matthias Clasen | 2022-01-25 | 3 | -58/+66 |
| | | | | | Make the 'affects itemization' etc classification available in one place, so we can use it elsewhere. | ||||
* | attributes: Handle custom attributes | Matthias Clasen | 2022-01-25 | 1 | -1/+8 |
| | | | | | | We should not segfault when printing a PangoAttrList containing some attributes that have been registered by gtk. | ||||
* | layout: Fix an oversight | Matthias Clasen | 2022-01-25 | 1 | -1/+1 |
| | |||||
* | lines: tweak the array api | Matthias Clasen | 2022-01-25 | 14 | -168/+175 |
| | | | | | | Make this work like the line api, with pango_lines_get_lines() and pango_lines_get_line_count(). Update all users. | ||||
* | line: Don't return GSList | Matthias Clasen | 2022-01-25 | 8 | -20/+63 |
| | | | | | | | Change pango_line_get_runs to return an array. So far, this changes just the API. All internals are still done on the list. | ||||
* | Rename PangoLayoutIter to PangoLineIter | Matthias Clasen | 2022-01-25 | 19 | -280/+278 |
| | |||||
* | Rename PangoLayoutLine to PangoLine | Matthias Clasen | 2022-01-25 | 36 | -597/+596 |
| | |||||
* | Rename PangoLayoutRun to PangoRun | Matthias Clasen | 2022-01-25 | 16 | -97/+96 |
| | |||||
* | line-breaker: Rename done() | Matthias Clasen | 2022-01-25 | 5 | -8/+8 |
| | | | | | Rename pango_line_breaker_done to pango_line_breaker_has_line. | ||||
* | Document immutability | Matthias Clasen | 2022-01-25 | 1 | -3/+3 |
| | |||||
* | Make PangoLayoutLine a boxed type | Matthias Clasen | 2022-01-25 | 6 | -75/+73 |
| | |||||
* | Tweak boolean getters | Matthias Clasen | 2022-01-25 | 9 | -38/+38 |
| | | | | | | Add 'is' to all the boolean getters on PangoLayoutLine and PangoLines. Update all callers. | ||||
* | docs: Add some illustrations for extents | Matthias Clasen | 2022-01-25 | 13 | -0/+5056 |
| | |||||
* | layout: Use simpler getters | Matthias Clasen | 2022-01-25 | 1 | -1/+1 |
| | |||||
* | Change trimming of extents | Matthias Clasen | 2022-01-25 | 2 | -20/+13 |
| | | | | | | Make pango_layout_line_get_extents return untrimmed extents, and pango_lines_get_extents trim the extents at the start/end of paragraphs. | ||||
* | layout: undo an accidental removal | Matthias Clasen | 2022-01-25 | 1 | -0/+79 |
| | |||||
* | layout: don't forget spacing in copy() | Matthias Clasen | 2022-01-25 | 1 | -0/+1 |
| | |||||
* | line-breaker: Add docs | Matthias Clasen | 2022-01-25 | 1 | -12/+26 |
| | |||||
* | layout: Add docs | Matthias Clasen | 2022-01-25 | 1 | -100/+76 |
| | |||||
* | layout iter: Add docs | Matthias Clasen | 2022-01-25 | 1 | -0/+14 |
| | |||||
* | lines: Add docs | Matthias Clasen | 2022-01-25 | 1 | -0/+33 |
| | |||||
* | layout-line: Add docs | Matthias Clasen | 2022-01-25 | 1 | -0/+19 |
| | |||||
* | layout-run: add docs | Matthias Clasen | 2022-01-25 | 1 | -0/+29 |
| | |||||
* | lines: Fix some corner cases | Matthias Clasen | 2022-01-25 | 1 | -11/+10 |
| | |||||
* | layout: Fix a reference miscount | Matthias Clasen | 2022-01-25 | 1 | -1/+1 |
| | |||||
* | pango-view: Bring line spacing back | Matthias Clasen | 2022-01-25 | 1 | -0/+12 |
| | |||||
* | layout: Don't trim leading when placing lines | Matthias Clasen | 2022-01-25 | 1 | -1/+1 |
| | |||||
* | layout: Add spacing back | Matthias Clasen | 2022-01-25 | 2 | -0/+86 |
| | | | | | Implement the PangoLayout:spacing property by translating it into a line-spacing attribute. | ||||
* | layout: Rename line-spacing to line-height | Matthias Clasen | 2022-01-25 | 5 | -41/+46 |
| | | | | | | | | This matches better with the CSS terminology, and reduces the clash with the spacing property that is about to come back. Update all callers. | ||||
* | serializer: Handle line spacing attributes | Matthias Clasen | 2022-01-25 | 1 | -0/+5 |
| | |||||
* | layout-run: Use line spacing | Matthias Clasen | 2022-01-25 | 1 | -1/+1 |
| | | | | | | | | Take line spacing into account when determining the leading to use for logical extents. We add line spacing when we use gap metrics from the font, and ignore it when line height is determined by line height attributes. | ||||
* | item: Add line spacing to ItemProperties | Matthias Clasen | 2022-01-25 | 2 | -0/+6 |
| | |||||
* | Add a line spacing attribute | Matthias Clasen | 2022-01-25 | 2 | -0/+34 |
| | | | | | This will be used to restore the PangoLayout spacing property. | ||||
* | Tweak PangoAlignment | Matthias Clasen | 2022-01-25 | 2 | -18/+34 |
| | | | | | | | | | | | | Remove the justify-all value, and drop the justify-last-line feature from PangoLayout. This can be done better using PangoLineBreaker now. On the flip side, add a 'natural' value, since that is what we want to fall back to for the last line in a justified paragraph. And CoreText has this value too. Make PANGO_ALIGN_NATURAL the default. | ||||
* | Make PangoLayoutRun a separate type | Matthias Clasen | 2022-01-25 | 5 | -34/+53 |
| | | | | | | It is nicer to have an opaque type for the iter, and only use PangoGlyphItem in the implementation. | ||||
* | The big rename of doom | Matthias Clasen | 2022-01-25 | 51 | -11444/+2204 |
| | | | | | | | | | | simple layout -> layout line iter -> layout iter line -> layout line This commit replaces the old PangoLayout implementation with PangoSimpleLayout, and does all the necessary cleanups. | ||||
* | Regenerate layout tests | Matthias Clasen | 2022-01-24 | 37 | -19315/+20229 |
| | | | | | The serialization format has changed, so these need to be regenerated to match. | ||||
* | Fix testserialize | Matthias Clasen | 2022-01-24 | 1 | -4/+1 |
| | |||||
* | tests: Update expected results for breaks | Matthias Clasen | 2022-01-24 | 1 | -1/+1 |
| | | | | | | | One of the break tests has an inconsequential change in output. I believe it is due to us now feeding paragraph terminators through the break code. Update the test result. | ||||
* | port testrandom | Matthias Clasen | 2022-01-24 | 1 | -21/+21 |
| | |||||
* | utils: Port pango-segmentation | Matthias Clasen | 2022-01-24 | 1 | -7/+6 |
| | |||||
* | Port test-pangocairo-threads | Matthias Clasen | 2022-01-24 | 1 | -9/+12 |
| | |||||
* | testmisc: fix build | Matthias Clasen | 2022-01-24 | 1 | -1/+1 |
| | |||||
* | Port testmisc to simple layout | Matthias Clasen | 2022-01-24 | 1 | -145/+148 |
| | |||||
* | testiter: more fixes | Matthias Clasen | 2022-01-24 | 1 | -74/+74 |
| |