summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Amend the shaping api docsshape-docsMatthias Clasen2020-11-071-4/+19
| | | | | | | Discuss problems with extra_attr indices in the docs for pango_shape() and friends. See: #511
* tests: Don't free attributes prematurelyMatthias Clasen2020-11-061-2/+2
| | | | | test-shape was using one of its attribute lists after dropping the reference on it. Don't do that.
* Merge branch 'regular-face' into 'master'Matthias Clasen2020-11-061-8/+23
|\ | | | | | | | | fontconfig: Try harder to find a default face See merge request GNOME/pango!258
| * fontconfig: Try harder to find a default faceregular-faceMatthias Clasen2020-11-061-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | Fonts are amazing, and not in a good way. My system has fonts with 0, 1, 2 "Regular" faces. It also has fonts where the "Regular" face is, in fact, bold. So, we need to work even harder to return a reasonable face when asked about the default. We already make a determination of faces that we consider 'regular' when we create the faces initially. Just keep that information for later reuse.
* | Merge branch 'test-shape-fix' into 'master'Matthias Clasen2020-11-061-1/+1
|\ \ | | | | | | | | | | | | Test shape fix See merge request GNOME/pango!257
| * | tests: Improve output of test-shapetest-shape-fixMatthias Clasen2020-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | We don't have any test cases for this in our testsuite, but it is useful to run this manually to see the shaping results. The output was missing all but the first char for the last cluster in an item.
* | | Merge branch 'regular-face' into 'master'Matthias Clasen2020-11-051-3/+7
|\ \ \ | | |/ | |/| | | | | | | fontconfig: Try harder to return a default face See merge request GNOME/pango!256
| * | fontconfig: Try harder to return a default faceMatthias Clasen2020-11-051-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | pango_font_family_get_face() is documented as nullable, so we are technically within our rights to return NULL, but that is unexpected when passing NULL to get the default face, and the family has faces. So, try a little harder by returning the first face if we don't find a face with the name "Regular".
* | | Merge branch 'wip/issue510' into 'master'Matthias Clasen2020-11-052-2/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ft2, xft: Write out the full type of the SubstituteFunc Closes #510 See merge request GNOME/pango!255
| * | | ft2, xft: Write out the full type of the SubstituteFuncwip/issue510Simon McVittie2020-11-052-2/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the SubstituteFunc used for the now-deprecated set_default_substitute functions is an alias for PangoFcSubstituteFunc, GObject-Introspection doesn't realise it's a function pointer, and doesn't flag the user data and destroy-notify arguments as such. This results in bindings like PyGI thinking that they are entirely separate arguments, which is an introspection API break (and probably not something that can practically be called any more). Signed-off-by: Simon McVittie <smcv@debian.org> Resolves: https://gitlab.gnome.org/GNOME/pango/-/issues/510
* | | Merge branch 'override-dependency' into 'master'Matthias Clasen2020-10-144-5/+11
|\ \ \ | | | | | | | | | | | | | | | | meson: Use meson.override_dependency() See merge request GNOME/pango!250
| * | | ci: Update meson versionXavier Claessens2020-09-302-4/+5
| | | |
| * | | meson: Use meson.override_dependency()Xavier Claessens2020-09-302-1/+6
| | | | | | | | | | | | | | | | | | | | This allows projects that use pango as a subproject to not hardcode dependency variable names such as 'libpangocairo_dep'.
* | | | Merge branch 'pango-fb' into 'master'Matthias Clasen2020-10-141-19/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | meson: Fix cairo/fontconfig/freetype2 fallback See merge request GNOME/pango!253
| * | | | meson: Fix cairo/fontconfig/freetype2 fallbackXavier Claessens2020-10-021-19/+39
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | - Ignore disabled freetype/fontconfig option on platforms where they are required. - If option is enabled it should still check for system dependency with required: false.
* | | | Merge branch 'four-but-only-once' into 'master'Matthias Clasen2020-10-031-1/+0
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | tests: Don't add four.break twice Closes #508 See merge request GNOME/pango!254
| * | tests: Don't add four.break twicefour-but-only-onceMatthias Clasen2020-10-021-1/+0
|/ / | | | | | | | | | | | | As pointed out by Werner Lemberg, we were adding four.break twice if libthai is used. Fixes: #508
* | Merge branch 'meson-freeetype2' into 'master'Matthias Clasen2020-09-301-11/+5
|\ \ | | | | | | | | | | | | Meson: Use latest freetype2 subproject See merge request GNOME/pango!248
| * | Meson: Use latest freetype2 subprojectXavier Claessens2020-09-291-11/+5
| | | | | | | | | | | | | | | The freeetype2 version from wrapdb was 2.9.1 but the github branch has 22.1.16. Harfbuzz requires the latter.
* | | Merge branch 'introspection2' into 'master'Matthias Clasen2020-09-303-4/+6
|\ \ \ | |_|/ |/| | | | | | | | meson: Change introspection option to yielding feature See merge request GNOME/pango!252
| * | meson: Change introspection option to yielding featureXavier Claessens2020-09-303-4/+6
|/ / | | | | | | | | | | | | Yielding option means that if pango is built as a subproject, it will take the value of that option from the parent project (e.g. gst-build). For that to work it must be of the same type, which is "feature" instead of "boolean" in all GStreamer modules.
* | Revert "meson: Change introspection option to yielding feature"Matthias Clasen2020-09-303-6/+4
| | | | | | | | | | | | | | This reverts commit 82cfabbabaade239beb26136cb28c98156552ea5. This change broke GTK ci, and it takes more work to fix it than I can invest atm. We can try again when GTK is ready for it.
* | Merge branch 'ebassi/for-master' into 'master'Matthias Clasen2020-09-304-4/+7
|\ \ | | | | | | | | | | | | Ebassi/for master See merge request GNOME/pango!251
| * | build: Remove deprecated python3 Meson module useEmmanuele Bassi2020-09-303-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are using the deprecated python3 module for historical reasons. We used to support both Python 2 and Python 3 in the Autotools build, but since we switched to Meson we *know* we have Python 3 available. This allows us to use a shebang line in the Python scripts we use in the build, instead of invoking them through the Python interpreter in a custom target; Meson knows how to handle shebangs portably as well. This change removes the only deprecation warning coming from Meson when configuring the Pango build.
| * | Skip a pangofc accessorEmmanuele Bassi2020-09-301-1/+1
|/ / | | | | | | | | | | The handwritten fontconfig introspection data does not cover all types, and even if it did, it wouldn't know how to handle their ownership because fontconfig is not a GObject-based API.
* | Merge branch 'meson-cairo-fallback' into 'master'Nirbheek Chauhan2020-09-301-1/+1
|\ \ | | | | | | | | | | | | meson: Fix cairo fallback See merge request GNOME/pango!249
| * | meson: Fix cairo fallbackXavier Claessens2020-09-291-1/+1
| |/ | | | | | | | | | | When building with -Dcairo=enabled the first dependency('cairo', ...) call was aborting instead of returning not-found and continue with msvc checks and then again dependency() check with a fallback set.
* | Merge branch 'introspection' into 'master'Matthias Clasen2020-09-303-4/+6
|\ \ | | | | | | | | | | | | meson: Change introspection option to yielding feature See merge request GNOME/pango!247
| * | meson: Change introspection option to yielding featureXavier Claessens2020-09-293-4/+6
| |/ | | | | | | | | | | | | Yielding option means that if pango is built as a subproject, it will take the value of that option from the parent project (e.g. gst-build). For that to work it must be of the same type, which is "feature" instead of "boolean" in all GStreamer modules.
* | 1.47.01.47.0Matthias Clasen2020-09-291-0/+6
| |
* | Fix the release scriptMatthias Clasen2020-09-291-1/+1
|/ | | | | It was putting extra path components into the docs tarball contents.
* Merge branch 'font-pattern-getter' into 'master'Matthias Clasen2020-09-214-0/+49
|\ | | | | | | | | Font pattern getter See merge request GNOME/pango!245
| * fc: Add a getter for PangoFcFont::patternfont-pattern-getterMatthias Clasen2020-09-213-0/+21
| | | | | | | | Properties are better with getters.
| * fc: Sort faces of a familysort-facesMatthias Clasen2020-09-211-0/+28
|/ | | | | | Make pango_font_family_list_faces() return faces sorted by slant and weight. This makes the font chooser look much less random.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-185-11/+11
|\ | | | | | | | | Matthiasc/for master See merge request GNOME/pango!243
| * utils: Don't use deprecated apiMatthias Clasen2020-09-182-3/+3
| | | | | | | | | | Port pango-viewer to use the new pango_fc_font_map_set_default_substitute.
| * Adapt deprecationsMatthias Clasen2020-09-183-8/+8
|/ | | | | Move things around to reflect the fact that we are now in 1.47, and use our deprecation macros.
* Merge branch 'ch/83' into 'master'Matthias Clasen2020-09-189-64/+118
|\ | | | | | | | | | | | | Add pango_fc_font_map_set_default_substitute Closes #83 See merge request GNOME/pango!191
| * add pango_fc_font_map_set_default_substituteCaleb Hearon2020-06-139-60/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added: pango_fc_font_map_set_default_substitute pango_fc_font_map_default_substitute_changed deprecated: pango_ft2_font_map_set_default_substitute pango_ft2_font_map_changed pango_xft_font_map_set_default_substitute pango_xft_font_map_changed Now PangoCairoFcFontMap will call what is passed to pango_fc_font_map_set_default_substitute when it is time. The deprecated functions make calls to the parent (FC) class now. The user-supplied callbacks are executed in the exact same places as before.
| * single function type for FC substitute callbackCaleb Hearon2020-06-134-4/+14
| |
* | Merge branch 'preferred-languages' into 'master'Matthias Clasen2020-09-189-6/+156
|\ \ | | | | | | | | | | | | Preferred languages See merge request GNOME/pango!232
| * | pangofc: Add pango_fc_font_get_languagespreferred-languagesMatthias Clasen2020-09-185-1/+95
| | | | | | | | | | | | | | | | | | | | | This really belongs into PangoFont, but we're out of room in the PangoFontClass struct for vfuncs, so this will have to remain backend-specific functionality for now.
| * | Add pango_language_get_preferredMatthias Clasen2020-09-183-4/+36
| | | | | | | | | | | | | | | | | | This returns the list of preferred languages, as determined from the PANGO_LANGUAGES or LANGUAGES environment variables.
| * | Bump version to 1.47Matthias Clasen2020-09-181-1/+1
| | | | | | | | | | | | We are going to add new API.
| * | Add 1.48 version macrosMatthias Clasen2020-09-181-0/+24
|/ /
* | 1.46.21.46.2Matthias Clasen2020-09-182-1/+12
| |
* | Add a release scriptMatthias Clasen2020-09-181-0/+28
| | | | | | | | | | This script handles both the main source tarball as well as the docs one.
* | Merge branch 'fix-keycap-sequences' into 'master'Matthias Clasen2020-09-183-5/+38
|\ \ | | | | | | | | | | | | | | | | | | Fix handling of keycap sequences Closes #502 See merge request GNOME/pango!241
| * | Add a test for keycap sequencesfix-keycap-sequencesMatthias Clasen2020-09-172-0/+27
| | | | | | | | | | | | | | | This tests that we are not breaking items up in the middle of a keycap sequence.
| * | Fix handling of keycap sequencesMatthias Clasen2020-09-171-5/+11
|/ / | | | | | | | | | | | | | | | | | | | | | | The last character of Emoji keycap sequences, 0x20E3, has a vertical orientation of U, according to Unicode. This unfortunately makes the width iter frequently break such sequences into multiple items, preventing them from being rendered as expected. Fix this by ignoring width changes inside Emoji sequences. Fixes: #502