summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* meson: Add not-found dependencies for conditional declared depswip/nirbheek/meson-declare-dependencyNirbheek Chauhan2018-07-071-0/+12
| | | | | | | Instead of not defining the variable, or defining it to [], define it to the not-found dependency instead, so that when other projects (such as gtk+) are using pango as a subproject, they get a valid dependency object which tells them that the dependency cannot be found.
* Merge branch 'ci' into 'master'Khaled Hosny2018-05-261-0/+25
|\ | | | | | | | | | | | | Initial CI config Closes #310 See merge request GNOME/pango!2
| * Initial CI configKhaled Hosny2018-05-271-0/+25
|/ | | | Fixes https://gitlab.gnome.org/GNOME/pango/issues/310
* Merge branch '304-fix-linker-options-on-darwin' into 'master'Khaled Hosny2018-05-261-1/+1
|\ | | | | | | | | | | | | Resolve "Fix linker options on Darwin" Closes #304 See merge request GNOME/pango!1
| * build: Correct Darwin linker optionsPhilip Chimento2018-05-221-1/+1
|/ | | | | | The Darwin linker doesn't want equal signs here. Closes: #304
* Restore scaling of CoreText fonts.John Ralls2018-05-086-19/+33
| | | | Fixes bug 787867.
* build: Bump required harfbuzz versionKalev Lember2018-05-072-2/+2
| | | | We use hb_variation_t that was added in harfbuzz 1.4.2.
* Revert "Add fribidi dependency to pango.pc"Khaled Hosny2018-04-251-1/+1
| | | | This reverts commit 68cc13d04ed9d89609727f4448e5d2e08dd6626c.
* Use non-deprecated libthai API when availableKhaled Hosny2018-04-113-5/+19
| | | | I’m assuming the new API is thread-safe as claimed.
* pangowin32: fix script cache hash key for 64bit buildsChristoph Reiter2018-04-091-5/+25
| | | | | | | | | | | | | | It joins the HFONT and script key to a gint64 and uses this as a hash key, but HFONT is a pointer type and on 64bit Windows it doesn't fit in 32bit and the value gets truncated. This breaks the build with meson where -Werror=pointer-to-int-cast is enabled by default. Instead of using the gint64 hash functions add our own key type and implement matching hash and equality functions for it. https://bugzilla.gnome.org/show_bug.cgi?id=795045
* meson: skip pangoxft headers for the Windows gtk-doc buildChristoph Reiter2018-04-091-0/+5
| | | | | | | The API isn't available on Windows and gtk-doc fails with a linker error otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=795045
* build: move usp10 before gdi32Christoph Reiter2018-04-093-3/+5
| | | | | | | | | | | | | | | Without this pango on mingw64 tries to lookup up the Script* functions in gdi32 and fails. It already fails at the build stage because the introspection dump crashes with a missing entry point error. Moving usp10 before gdi32 makes things work. This might be related to the warning in the uniscribe docs: "Important Starting with Windows 8: To maintain the ability to run on Windows 7, a module that uses Uniscribe must specify Usp10.lib before gdi32.lib in its library list." https://bugzilla.gnome.org/show_bug.cgi?id=795045
* Remove stray letters in NEWSKhaled Hosny2018-04-081-2/+2
| | | | Introduced in 46f8583c87c45b304ac98d06005c49df67d53b07
* 1.42.11.42.1Matthias Clasen2018-04-073-4/+9
|
* meson: don't use quotes in help2man options to work around a MinGW Python bugChristoph Reiter2018-04-051-2/+2
| | | | | | | | | | For some reason MinGW Python (the one running meson) mangles arguments for this case (even adding a space makes it work). Since quotes are not needed here just drop them. Python issue filed upstream: https://github.com/Alexpux/MINGW-packages/issues/3548 https://bugzilla.gnome.org/show_bug.cgi?id=795012
* win32: remove redundant function declarationsChristoph Reiter2018-04-052-7/+0
| | | | | | The meson build uses -Werror=redundant-decls and fails. https://bugzilla.gnome.org/show_bug.cgi?id=795012
* pangowin32-fontmap.c: Add an Emoji font familyChun-wei Fan2018-03-311-1/+2
| | | | | | | | | | | | | | | | | | | Add an Emoji font family that maps to the following fonts in this order (by fallback): Segoe UI Emoji Segoe UI Symbol Segoe UI This will enable Emoji to be displayed correctly in GTK+ apps (without the use of FontConfig) on Windows Vista and later, providing that one of the aforementioned fonts are installed. Note that this only enables Emoji display (*not* colored ones) as achieving colored Emoji requires PangoWin32 and Cairo to be ported to Direct2D and DirectWrite from Uniscribe and GDI, as Uniscribe and GDI does not support colored Emoji. https://bugzilla.gnome.org/show_bug.cgi?id=794705
* tests/markup-parse.c: Fix build on Visual StudioChun-wei Fan2018-03-301-1/+7
| | | | | Visual Studio does not ship with a unistd.h, so include the proper header on Windows when unistd.h is not found on Windows.
* build: Add fallbacks for finding non-GNOME deps on MSVCChun-wei Fan2018-03-304-12/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many of Pango's dependencies do not support a build system for Visual Studio that would generate the pkg-config files for them, so we need to try to look for them using cc.has_header() and cc.find_library() for them, namely for Cairo, FreeType, FontConfig and HarfBuzz as fallbacks. For Cairo, things are more complicated as there are multiple build options and configurations for it, so we need to check for those that we need after we find the Cairo headers and libraries by: -Including the respective headers (for cairo-win32.h, cairo-ps.h, cairo-pdf.h, cairo-quartz.h and cairo-xlib.h, since these features must have been enabled when Cairo is built and installed in order for those headers to be succesfully included) -For pangocairo with FreeType support, we need to check whether the FontConfig support is built into Cairo as well, as FontConfig support is actually required in Cairo for this. -For Cairo/PNG output surface support, check whether Cairo is built with PNG output surface support. We also need to update how pangocairo.pc and pangoft2 are generated: -On builds where pkg-config files can be found for cairo, freetype, fontconfig and/or harfbuzz: Generate it with "Requires: pango <depedencies>" as before, otherwise for MSVC builds where we find these libraries manually, we don't put these packages under "Requires:..." or "Requires.private:...", but instead put them under "Libs:", linking to each dep as -l<.lib file name> This is so that pangocairo.pc and pangooft2.pc can be correctly used by items that need to make use of it, such as g-ir-scanner. https://bugzilla.gnome.org/show_bug.cgi?id=783274
* meson: Check for HarfBuzz and FontConfig for PangoFT2Chun-wei Fan2018-03-306-14/+27
| | | | | | | | | | | | | | | | | | | | | It is possible that we can have the following situations, at least on Windows: -FreeType present, FontConfig missing -Cairo-FT present, with no FontConfig support. As gen-script-for-lang requires FontConfig, and PangoFT2 depends on HarfBuzz, FontConfig and Freetype, we need to check for them before we build PangoFT2, and so that we could include PangoFT2 support in PangoCairo. The tests and pango-view have an optional dependency on PangoFT2, so we need to also check whether we built PangoFT2 before we try to build things related to PangoFT2. For the tools, since gen-script-for-lang.c depends on FontConfig, check for it as well before we build it. https://bugzilla.gnome.org/show_bug.cgi?id=783274
* Update version number in meson.build as wellKhaled Hosny2018-03-271-1/+1
| | | | | Follow up of commit d4f3370336a40907f528a41e75a55fe4f50c1a11. Maintaining two build systems is tricky!
* Add fribidi dependency to pango.pcKhaled Hosny2018-03-261-1/+1
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=794570
* Fix view-cairo on WindowsPatrick Griffis2018-03-171-6/+4
|
* Drop mention of long gone filesKhaled Hosny2018-03-142-3/+0
|
* Modules are long goneKhaled Hosny2018-03-144-9/+0
|
* 1.42.01.42.0Matthias Clasen2018-03-122-2/+6
|
* Update README a bitKhaled Hosny2018-02-171-34/+4
| | | | Fix FontConfig casing, remove a dead link and outdated sections.
* 1.41.11.41.1Matthias Clasen2018-02-133-2/+9
|
* Disable -Werror=undefMichael Catanzaro2018-02-121-1/+1
|
* meson: Update rules for introspectionEmmanuele Bassi2018-02-123-144/+176
| | | | | | | | | | | | | | | Building introspection should not be gated on cross-compilation: it's perfectly acceptable to use an helper binary to run the introspection scanner when cross-compiling — in fact, it's what projects like Yocto do. Instead, we should have an option to disable the introspection generation explicitly. Additionally, when building introspection data for ancillary Pango libraries, like PangoCairo or PangoXft, we should depend on the GIR target, instead of adding an `--include-uninstalled` extra argument for the introspection scanner; this allows building Pango as a sub-project of another project, and lets Meson deal with the appropriate paths and arguments when invoking the scanner.
* Use the new FriBiDi API when availablewip/khaled/fribidiKhaled Hosny2018-02-041-0/+22
|
* Avoid converting to UTF-32 for FriBiDiKhaled Hosny2018-02-041-33/+31
| | | | | Can’t tell if this is any faster, but does not look like a complex thing to do, so why not.
* Drop now unused mini-fribidiKhaled Hosny2018-02-0416-8880/+0
|
* Switch to using external FriBiDiKhaled Hosny2018-02-045-28/+52
|
* build: Only enable freetype if fontconfig is also availablePhilip Withnall2018-01-101-1/+2
| | | | | | | | | | | | | | | This changes meson.build to match what configure.ac already does. The code doesn’t have separate conditions for whether fontconfig and freetype are available: if freetype compilation is enabled, it assumes that fontconfig is also available. Previously, systems with freetype available, but no fontconfig, would fail to compile Pango due to trying to link against non-existent fontconfig symbols. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=792363
* 1.41.01.41.0Matthias Clasen2018-01-081-0/+6
|
* fontmap: fix warnings from recent g_object_ref() changesChristian Hergert2018-01-051-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=792231
* Avoid a memory leakMatthias Clasen2018-01-051-1/+1
| | | | | | | | We call pango_fc_font_key_init on a stack-allocated temporary lookup key, with the expectation that it does not have to be freed. In the case where we want to use it as key in the font_hash, we call copy() on it. So, don't duplicate the variations string in init() - it will get duplicated in copy() later.
* Remove unneeded varBehdad Esfahbod2018-01-041-3/+0
|
* meson: Bump the fontconfig requirementsMatthias Clasen2018-01-031-1/+4
| | | | | Keep the autotools and meson builds in sync, as far as requirements are concerned.
* Bump version to 1.41Matthias Clasen2018-01-032-3/+3
| | | | We've added new API for font variations.
* [fc] Use FcWeightFrom/ToOpenTypeDouble() if availableBehdad Esfahbod2018-01-032-60/+15
|
* Merge branch 'font-variations'Behdad Esfahbod2018-01-0323-19/+584
|\
| * Make variations test more genericwip/matthiasc/font-variationsMatthias Clasen2018-01-031-9/+9
| | | | | | | | | | Specify just the axis part in the attribute, so this test can be used with any font supporting font variations.
| * [cairo] Don't set font variations on cairo_font_options_tBehdad Esfahbod2018-01-031-9/+0
| | | | | | | | | | | | | | We pass them in through FcPattern to the cairo_face already, no need to pass here again. Yeah, I know... /tears
| * [fc] Only set variations if non-emptyBehdad Esfahbod2018-01-032-3/+5
| |
| * [fc] Request variable fonts from fontconfigBehdad Esfahbod2018-01-031-0/+3
| |
| * Add an out-of-range valueMatthias Clasen2018-01-031-0/+1
| | | | | | | | | | This tests the clamping of axis values, which freetype is supposed to do. It wasn't working when we tried it.
| * pango-view: Add a font-variations exampleMatthias Clasen2018-01-031-0/+8
| | | | | | | | | | This uses markup to demonstrate font variations. It nees the 'Selawik Variations test' font.
| * Add some tests with variationsMatthias Clasen2018-01-034-0/+96
| |