summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix advance widths with transformsadvance-transformMatthias Clasen2021-11-051-29/+13
| | | | | | | | | | The hb_font_t we were passing to Harfbuzz for shaping was not taking context transforms into account, and therefore was not scaling advance widths as necessary. Always go through pangos glyph extents to fix this. Fixes: #620
* Merge branch 'more-default-ignorables' into 'main'Matthias Clasen2021-11-031-0/+5
|\ | | | | | | | | Add a few more default-ignorables See merge request GNOME/pango!494
| * Add a few more default-ignorablesmore-default-ignorablesMatthias Clasen2021-11-031-0/+5
|/ | | | | | Add some more directional formatting characters to the list of default-ignorables that we make visible when requested: ALM, LRI, RLI, FSI, PDI.
* Merge branch 'ci-require-macos' into 'main'Matthias Clasen2021-11-022-1/+18
|\ | | | | | | | | Revert "ci: Allow macos to fail" See merge request GNOME/pango!493
| * Revert "ci: Allow macos to fail"ci-require-macosMatthias Clasen2021-11-021-1/+0
| | | | | | | | | | | | This reverts commit e46a0fb53e92f359e739a818f0e0ce0d2fbf6c18. We welcome the macos runner back.
| * Skip a failing test on macOSMatthias Clasen2021-11-021-0/+18
|/ | | | | I can't debug this using just the ci runner, so skip it until somebody can.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-11-011-1/+3
|\ | | | | | | | | fontset: Add a missing annotation See merge request GNOME/pango!492
| * fontset: Add a missing annotationMatthias Clasen2021-10-311-1/+3
|/ | | | | pango_fontset_simple_append consumes the font that it is given.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-10-312-0/+41
|\ | | | | | | | | Make logical glyph extents better See merge request GNOME/pango!491
| * Add tests for matrix transformationsMatthias Clasen2021-10-311-0/+39
| |
| * Make logical glyph extents betterMatthias Clasen2021-10-311-0/+2
|/ | | | | For east and west gravity, the logical glyph extents were still misaligned with the ink extents.
* Merge branch 'glyph-extents-fixes' into 'main'Matthias Clasen2021-10-313-36/+113
|\ | | | | | | | | cairo: Produce meaningful logical glyph extents See merge request GNOME/pango!490
| * cairo: Small fixupglyph-extents-fixesMatthias Clasen2021-10-301-1/+1
| | | | | | | | | | | | cf_priv->scaled_font is initialized on demand, it may be NULL. So better call the getter. This was showing up as failure in the asan test in ci.
| * Revert "Disable failing line height tests"Matthias Clasen2021-10-301-9/+5
| | | | | | | | This reverts commit 7a4af7a052e7e4187955aad9c4c60853bad806f9.
| * Use harfbuzz metrics for cairo fontsMatthias Clasen2021-10-301-14/+37
| | | | | | | | | | Without this, we end up with differences in metrics of empty runs.
| * cairo: fix hinting of metricsMatthias Clasen2021-10-301-4/+3
| | | | | | | | | | | | | | We were looking at the wrong font options here, causing metrics to not be hinted when they should be. This was causing some of the empty line height tests to fail.
| * cairo: Produce meaningful logical glyph extentsMatthias Clasen2021-10-301-11/+28
| | | | | | | | | | Depending on gravity, our logical glyph extents were empty and mis-aligned. Fix that.
| * Add tests for glyph extentsMatthias Clasen2021-10-301-0/+42
| |
* | Merge branch 'bilelmoussaoui/gi-annotations' into 'main'Matthias Clasen2021-10-301-2/+1
|\ \ | |/ |/| | | | | gi: add array annotations to get_languages See merge request GNOME/pango!489
| * gi: add array annotations to get_languages Bilal Elmoussaoui2021-10-301-2/+1
|/ | | | Also drops the null-terminated doc comment as gi-docgen shows that already if the function is annotated properly
* 1.49.21.49.2Matthias Clasen2021-10-292-1/+9
|
* Merge branch 'bilelmoussaoui/gi-annotations' into 'main'Matthias Clasen2021-10-294-0/+30
|\ | | | | | | | | pango: backport an old since annotation See merge request GNOME/pango!488
| * Flesh out some doc commentsMatthias Clasen2021-10-292-3/+16
| | | | | | | | | | Add some missing details about new enumerations and run baselines.
| * pango: backport an old since annotationBilal Elmoussaoui2021-10-291-0/+2
| | | | | | | | from a manual override in gtk-rs
| * add missing since 1.50 annotationsBilal Elmoussaoui2021-10-293-0/+15
|/
* Merge branch 'gravity-metrics-fix' into 'main'Matthias Clasen2021-10-282-27/+30
|\ | | | | | | | | Revert "Use harfbuzz metrics for cairo fonts" See merge request GNOME/pango!487
| * Disable failing line height testsgravity-metrics-fixMatthias Clasen2021-10-271-5/+9
| | | | | | | | | | These need to wait until 20ec670e124e4461075 can be reapplied.
| * Revert "Use harfbuzz metrics for cairo fonts"Matthias Clasen2021-10-271-22/+21
|/ | | | | | This broke glyph extents with gravity north or west. This reverts commit 20ec670e124e4461075a2967faa29603d25106cc.
* Merge branch 'middle-dot' into 'main'Matthias Clasen2021-10-274-0/+77
|\ | | | | | | | | Support for Catalan middle dot in word start and end See merge request GNOME/pango!485
| * Support for Catalan middle dot in word start and endJordi Mas2021-10-274-0/+77
|/
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-10-271-6/+6
|\ | | | | | | | | Cosmetics See merge request GNOME/pango!486
| * CosmeticsMatthias Clasen2021-10-261-6/+6
|/ | | | Fold markers always just use 3 {, even when nested.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-10-251-8/+16
|\ | | | | | | | | Cosmetics See merge request GNOME/pango!483
| * CosmeticsMatthias Clasen2021-10-241-8/+16
|/ | | | Add default implementations for is_monospace and is_variable.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-10-232-1/+2
|\ | | | | | | | | Fix a typo See merge request GNOME/pango!482
| * ci: Allow macos to failMatthias Clasen2021-10-231-0/+1
| | | | | | | | The macos runner is out of commission atm
| * Fix a typoMatthias Clasen2021-10-231-1/+1
|/
* Merge branch 'empty-line-height-attr-fix' into 'main'Matthias Clasen2021-10-204-39/+260
|\ | | | | | | | | | | | | Fix empty line heights Closes #421 See merge request GNOME/pango!481
| * Add more line height testsempty-line-height-attr-fixMatthias Clasen2021-10-191-0/+133
| |
| * Fix cursor pos height in some casesMatthias Clasen2021-10-191-18/+28
| | | | | | | | | | | | | | For empty runs, we were sometimes using line height, which may be scaled up by the line-height attribute. Fix that.
| * Fix empty line heightsMatthias Clasen2021-10-191-0/+24
| | | | | | | | | | | | Fix the calculation of line height for empty lines to take the line-height attributes into account like we do for non-empty lines.
| * Use harfbuzz metrics for cairo fontsMatthias Clasen2021-10-191-21/+22
| | | | | | | | | | | | | | Without this, we end up with differences in metrics of empty runs. Fixes: #421
| * pangocairo: Round font metrics when appropriateMatthias Clasen2021-10-192-1/+54
| | | | | | | | | | | | | | | | | | | | | | When metrics hinting is on, we used to provide rounded font metrics. We should keep doing that since otherwise we end up with logical rects sometimes being rounded and sometimes not, leading to jumping empty lines. Test included. Fixes: #421
* | Merge branch 'unicode14' into 'main'Matthias Clasen2021-10-207-242/+255
|\ \ | |/ |/| | | | | Update Line Break to Unicode 14 See merge request GNOME/pango!480
| * Update Unicode test cases to Unicode 14Peng Wu2021-10-203-9/+9
| |
| * Update Line Break to Unicode 14Peng Wu2021-10-122-3/+7
| |
| * Update pango-break-table.h to Unicode 14Peng Wu2021-10-091-209/+213
| |
| * Update pango-emoji-table.h to Unicode 14Peng Wu2021-10-091-21/+26
|/
* Merge branch 'fix-underlined-spaces' into 'main'Matthias Clasen2021-09-241-2/+2
|\ | | | | | | | | | | | | Underline spaces again Closes #613 See merge request GNOME/pango!478
| * Underline spaces againfix-underlined-spacesMatthias Clasen2021-09-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | in ada1bc9385d638e4c42, I switched to using ink rects for horizontal underline extents, to improve the placement of single-character underlines in the presence of kerning. I overlooked the fact that spaces don't have ink, so the change caused leading and trailing whitespace to not be underlined anymore. Fix this by using the union of ink and logical rectangles. Fixes: #613