Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test-break: Print out hyphens | Matthias Clasen | 2021-08-25 | 1 | -7/+3 |
| | | | | | | Print out all the log attrs we have. Update expected test outputs. | ||||
* | Refine hyphenation | Matthias Clasen | 2021-08-25 | 4 | -20/+82 |
| | | | | | | | | Replace ‧ and | with a - when we break there. Update affected test output. Fixes: #603 | ||||
* | shape: Rearrange hb buffer setup | Matthias Clasen | 2021-08-25 | 1 | -8/+7 |
| | | | | | Rearrange the buffer setup code slightly, so that we can change it easier, later. | ||||
* | layout: Use need_hyphen from log attrs | Matthias Clasen | 2021-08-24 | 1 | -130/+1 |
| | |||||
* | Add hyphens to log attrs | Matthias Clasen | 2021-08-24 | 2 | -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. | ||||
* | break: Add pango_attr_break api | Matthias Clasen | 2021-08-23 | 3 | -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 reorganization | Matthias Clasen | 2021-08-23 | 2 | -49/+60 |
| | | | | Shuffle break.c around a bit. | ||||
* | break-thai: Fix up word break handling | Matthias Clasen | 2021-08-23 | 1 | -8/+20 |
| | | | | | | | | | | | 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. | ||||
* | layout: Only recompute log_attrs when needed | Matthias Clasen | 2021-08-23 | 1 | -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. | ||||
* | docs: Add another illustrationdoc-font-metrics | Matthias Clasen | 2021-08-22 | 1 | -0/+8 |
| | | | | Show font metrics. | ||||
* | Fix an oversight with text-transform | Matthias Clasen | 2021-08-22 | 1 | -1/+1 |
| | | | | | With the current implementation of text-transform, we need the attribute to be constant across runs. | ||||
* | renderer: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -0/+8 |
| | |||||
* | markup: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -0/+3 |
| | |||||
* | layout: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -26/+27 |
| | |||||
* | break: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -8/+16 |
| | |||||
* | fcfontmap: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -0/+2 |
| | |||||
* | bidi: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -0/+1 |
| | |||||
* | emoji: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -0/+3 |
| | |||||
* | attributes: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -9/+9 |
| | |||||
* | glyphstring: Silence compiler warnings | Matthias Clasen | 2021-08-22 | 1 | -4/+4 |
| | |||||
* | attributes: Cosmetics | Matthias Clasen | 2021-08-22 | 1 | -2/+2 |
| | | | | Fix a few comments. | ||||
* | Add a forgotten binding helper | Matthias Clasen | 2021-08-22 | 1 | -0/+1 |
| | | | | The new text-transform attribute was overlooked. | ||||
* | Fix binding helpers for absolute-line-height | Matthias Clasen | 2021-08-22 | 1 | -0/+1 |
| | | | | This was overlooked. | ||||
* | break: Some code reorg | Matthias Clasen | 2021-08-22 | 1 | -141/+130 |
| | | | | Reshuffle things to make room for validation. | ||||
* | 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 | 6 | -120/+336 |
|\ \ | |/ |/| | | | | | Add support for text transformation See merge request GNOME/pango!421 | ||||
| * | 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. | ||||
| * | 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 | 3 | -0/+62 |
| | | | | | | | | | | | | Add a PangoTextTransform enum, a PangoAttribute to set it on runs of text, and support for parsing it out of markup. | ||||
* | | 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 | ||||
* | Cosmetics | Matthias Clasen | 2021-08-20 | 2 | -58/+17 |
| | | | | Streamline the internals of shape.c a bit. | ||||
* | Fix up header inclusions | Matthias Clasen | 2021-08-20 | 1 | -1/+1 |
| | | | | | This worked for building pango itself, but not for using it. | ||||
* | 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 |
| |