summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 1.48.111.48.11pango-1-48Matthias Clasen2022-01-112-1/+2
|
* Fix testsMatthias Clasen2022-01-101-4/+4
|
* Reinstate previous behavior or pango_attr_list_spliceMatthias Clasen2022-01-092-3/+35
| | | | | | | | | | If gap is zero, don't limit the inserted attributes; that does not make sense. Spell out the different use cases in the docs. Testcase included. Fixes: #607
* Clarify pang_attr_list_splice docsMatthias Clasen2022-01-091-1/+1
| | | | | Make it explicit that the spliced-in attributes are limited to the the 'gap'.
* UpdatesMatthias Clasen2022-01-071-0/+4
|
* Revert "Fix advance widths with transforms"Matthias Clasen2021-12-171-13/+29
| | | | | | | This reverts commit 81f8a47df61f1df9ca82a08813c022150e7d96aa. This broke vertical text rendering, see https://gitlab.com/inkscape/inkscape/-/issues/2950.
* Merge branch 'pango-1-48-backports' into 'pango-1-48'Matthias Clasen2021-12-162-0/+19
|\ | | | | | | | | Backport MR !399 into pango-1-48 See merge request GNOME/pango!549
| * testmisc.c: Fix builds without FontConfig/PangoFT2pango-1-48-backportsChun-wei Fan2021-12-161-0/+7
| | | | | | | | | | Some tests used items from PangoFT2, which may not have been enabled on platforms where that was optionally built.
| * pango/shape.c: Use the former rounding code as neededChun-wei Fan2021-12-161-0/+12
|/ | | | | | | | | | The careful rounding code that was brought back as a result of commit d4356779 only had effect if we are using a backend that supported font hinting, so on other backends, use the former rounding code that was dropped in favor of the careful rounding code that unfortunately did not apply for all backends. Should fix #578.
* Merge branch 'update-1-48-ci' into 'pango-1-48'Matthias Clasen2021-12-162-4/+3
|\ | | | | | | | | ci: Rebase the image to Fedora 34 (pango-1-48 branch) See merge request GNOME/pango!550
| * ci: Rebase the image to Fedora 34Matthias Clasen2021-12-162-4/+3
|/ | | | This gives us a newer meson, among other things.
* Merge branch 'backport-620' into 'pango-1-48'Matthias Clasen2021-11-171-29/+13
|\ | | | | | | | | Backport fix for #620 - Fix advance widths with transforms See merge request GNOME/pango!510
| * Fix advance widths with transformsMatthias Clasen2021-11-161-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 This is a backport of commit ccb651dd2a876a4f4a4cb9351f05332173e709ba
* 1.48.101.48.10Matthias Clasen2021-09-112-1/+7
|
* Switch to use GraphicsMagick in pango-viewPeng Wu2021-09-111-6/+6
|
* Support antialias option in pango-view with the FreeType backendPeng Wu2021-09-111-0/+5
|
* renderer: Don't divide by zeroMatthias Clasen2021-08-251-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
* 1.48.91.48.9Matthias Clasen2021-08-182-2/+7
|
* Merge branch 'fribidi-api-cleanup-1-48' into 'pango-1-48'Matthias Clasen2021-08-181-22/+0
|\ | | | | | | | | bidi: Cleanup FriBiDi API usage See merge request GNOME/pango!413
| * bidi: Cleanup FriBiDi API usageKhaled Hosny2021-08-181-22/+0
|/ | | | Since FriBiDi 1.x is now required, we can remove use of pre-1.x API.
* Merge branch 'fixes-for-1-48' into 'pango-1-48'Matthias Clasen2021-08-172-1/+2
|\ | | | | | | | | build: Raise required fribidi version See merge request GNOME/pango!409
| * gravity: Add missing Multani scriptfixes-for-1-48Matthias Clasen2021-08-171-0/+1
| | | | | | | | | | | | | | An unfortunate oversight in 709af063 omitted Multani, and threw the rest of the table off. Fixes: #597
| * build: Raise required fribidi versionMatt Turner2021-08-171-1/+1
|/ | | | | | Pango uses the FRIBIDI_TYPE_RLI macro. It was not usable until fribidi commit 46f52d588ab5 ("Fixed bug PFRIBIDI_TYPE_PDF_LRI is undefined. Issue #69") which was first included in v1.0.6.
* 1.48.81.48.8Matthias Clasen2021-08-112-3/+7
|
* Be more careful about analysis->fontMatthias Clasen2021-08-111-2/+3
| | | | | This might be NULL, and we want to stumble on in that case. See #592.
* pangowin32-fontmap.c: Look harder for the matching fontChun-wei Fan2021-08-111-3/+19
| | | | | | | | | | | | When we look up our font from the list of fonts that we enumerated from the system, follow what the CoreText backend does, so that if the font gravity in the font description is getting in our way to find the font, look for it again without the gravity. This will enable us to find the font that really exists but was not found due to FontDescription attributes. Partially fixes #583.
* CODING_STYLE: Fence code samples, fix tab breakageFeRD (Frank Dana)2021-08-111-17/+35
|
* Specify deprecation detailsMatthias Clasen2021-08-112-2/+2
| | | | | Unversioned deprecations come out odd in gi-docgen. Add a version to avoid that.
* itemize: Fix up gravity state initializationMatthias Clasen2021-08-113-4/+47
| | | | | | | | itemize_state_init was setting gravity-related fields to their initial values too late, after update_attr_iterator has already set them to the values for the first run. Test included.
* gravity: Remove redundant codeMatthias Clasen2021-08-111-11/+7
| | | | | | Just pass PANGO_GRAVITY_AUTO on to pango_gravity_get_for_script_and_width. It has just the same fallback handling.
* CosmeticsMatthias Clasen2021-07-311-1/+1
|
* Merge branch 'fix-tests-build' into 'main'Matthias Clasen2021-07-301-0/+1
|\ | | | | | | | | tests: Fix implicit function declaration warnings with gcc See merge request GNOME/pango!381
| * tests: Fix implicit function declaration warnings with gccBiswapriyo Nath2021-07-291-0/+1
|/ | | | This includes stdlib.h for strtol, strtoll and strtod functions declaration
* Merge branch 'better-ellipsize' into 'main'Matthias Clasen2021-07-222-9/+11
|\ | | | | | | | | | | | | ellipsize: Try harder to find the right font Closes #575 See merge request GNOME/pango!380
| * Correctly handle font attributesbetter-ellipsizeMatthias Clasen2021-07-222-9/+11
|/ | | | | | | | | | pango_attr_iterator_get_attributes only returns the innermost attribute of each kind. That is correct for attributes that supersede each other, but not for font descriptions, which get merged. So, keep all font attributes in the returned list. Update affected tests.
* Merge branch 'approximated-sizes' into 'main'Matthias Clasen2021-07-213-9/+25
|\ | | | | | | | | | | | | font-desc: Use local double values to store sizes Closes #580 See merge request GNOME/pango!377
| * font-desc: Use local volatile double values to store sizesMarco Trevisan (TreviƱo)2021-07-213-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under i386 multiplying double and integer values and cast it to integer may end up to compute the wrong value when only 387 FPU is used, because the temporary value will be stored in a register whose precision isn't good enough. And so, some multiplications which are expected to produce an integer, will actually return a truncated value, that will be eventually floored. An example is 1.2 * 12800 that is clearly 15360.0, but will produce 15359 when casted to int in the said i386 environment. So use a temporary double variable to ensure that we do this computation in the double scope, before casting to int. And this will avoid using the said register, even when using more aggressive optimizations (as per marking the local variable volatile). Fixes: https://gitlab.gnome.org/GNOME/pango/-/issues/580
| * Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-07-106-12/+64
| |\ | | | | | | | | | | | | tests: Avoid a possible invalid access See merge request GNOME/pango!376
| | * Try harder to skip tests on MacOsMatthias Clasen2021-07-102-0/+48
| | | | | | | | | | | | | | | | | | For tests where the wrong fonts break things, check that we have Cantarell, and skip them if not.
| | * tests: Fix an assertionMatthias Clasen2021-07-101-3/+4
| | | | | | | | | | | | | | | We were rounding things differently, giving us off-by-one errors on MacOs.
| | * tests: Locale handling fixesMatthias Clasen2021-07-106-9/+12
| |/ | | | | | | | | The return value of setlocale is only good until the next call. Also, consistently use en_US.UTF-8.
* | Merge branch 'thai' into 'main'Matthias Clasen2021-07-211-5/+9
|\ \ | | | | | | | | | | | | Use GMutex for the shared thai brk See merge request GNOME/pango!378
| * | Use GMutex for the thai_brkPeng Wu2021-07-211-5/+9
| | | | | | | | | | | | Use GMutex to protect the thai_brk in multithreading.
* | | Try harder to skip tests on MacOsMatthias Clasen2021-07-212-0/+48
| | | | | | | | | | | | | | | | | | For tests where the wrong fonts break things, check that we have Cantarell, and skip them if not.
* | | tests: Fix an assertionMatthias Clasen2021-07-211-3/+4
| | | | | | | | | | | | | | | We were rounding things differently, giving us off-by-one errors on MacOs.
* | | tests: Locale handling fixesMatthias Clasen2021-07-216-9/+12
|/ / | | | | | | | | The return value of setlocale is only good until the next call. Also, consistently use en_US.UTF-8.
* | Mention main in NEWSMatthias Clasen2021-07-171-0/+5
| | | | | | | | This is part of #579.
* | ci: Update branch references to mainMatthias Clasen2021-07-172-2/+2
| | | | | | | | | | | | Change ci to point at the main branch instead of master. This is part of #579
* | docs: Update branch references to mainMatthias Clasen2021-07-176-6/+6
|/ | | | | | | Change the source locations in the gi-docgen files to point to main instead of master. This is part of #579
* Merge branch 'space-itemization' into 'master'Matthias Clasen2021-07-101-15/+71
|\ | | | | | | | | itemize: Improve handling of spaces See merge request GNOME/pango!374