Commit Graph

2436 Commits

Author SHA1 Message Date
Akira TAGOH 6663fe457d Update po-conf/POTFILES.in 2022-11-28 17:54:19 +09:00
Akira TAGOH 030759b74f Add --with-default-sub-pixel-rendering option
To make a choice of 10-sub-pixel-*.conf configurable.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/337
2022-11-28 17:40:43 +09:00
Akira TAGOH 6715a14f13 Add FC_DESKTOP_NAME property
To allow users to have desktop-specific matching rule.
2022-11-26 14:37:49 +09:00
Akira TAGOH eb0a199e06 Store artifacts for meson windows CI 2022-10-28 18:39:31 +09:00
Akira TAGOH c42eb5b503 Fix the build issue on meson when -g option is added to c_args
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/335
2022-10-27 12:33:25 +09:00
Jason Francis 1bea54624d meson: Update freetype2 git repository to upstream
The forked repository is unmaintained and several releases out of date.
The upstream repository now includes meson support, so the forked
repository is no longer necessary.
2022-10-26 11:59:04 +00:00
Christopher Degawa a07e2f1e8a
meson: modify gperf test to remove sh dependency
modifies the gperf test to instead rely on a file input
rather than piping in using sh, as sh is often not reliable
on Windows due to paths.

Also changes the if else ladder into a foreach loop.

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
2022-10-25 15:57:09 -05:00
Akira TAGOH c45e09df1e Bump version to 2.14.1 2022-10-21 14:14:03 +09:00
Akira TAGOH 2b6afa02ab Enable 10-sub-pixel-rgb.conf by default 2022-10-17 20:09:31 +09:00
Tim-Philipp Müller 1661319e5e ci: update macOS image 2022-10-14 17:09:24 +01:00
Tim-Philipp Müller 9279f3f90b ci: update windows image to a 2022-server based one
The 1809 windows runners are going to be phased out soon.

Rename jobs to vs2019 because that's the default on those images now.
2022-10-14 17:06:43 +01:00
Akira TAGOH 0825a178e8 Add config files to enable/disable antialias 2022-10-14 21:23:30 +09:00
NorwayFun b9e2f17c43 po: Add Georgian translation 2022-10-01 09:06:28 +00:00
NorwayFun 0dacbd855d po: add Georgian translation 2022-10-01 09:05:30 +00:00
NorwayFun cb70100bdf add Georgian 2022-10-01 09:04:07 +00:00
NorwayFun 4d3fe4c549 add Georgian 2022-10-01 09:03:40 +00:00
Akira TAGOH dac7f285c5 Add back sort command
Oops
2022-09-29 00:04:00 +09:00
Akira TAGOH a10d07682a Fix test cases for wrong use of remap-dir 2022-09-28 23:30:06 +09:00
Akira TAGOH fc0e9a78d2 Real fix of 91114d18c
The change in 91114d18c broke remapping font paths.

Patch from Mattias Clasen

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/331
2022-09-28 21:39:09 +09:00
Xavier Claessens 0924a35b67 link_confs.py: Fix prepending DESTDIR to absolute path
Stripping the first char of a path to make it relative only works with
UNIX paths like '/prefix' but not with Windows paths like 'c:\prefix'.

This copies the code Meson uses.
2022-09-13 08:57:42 -04:00
Xavier Claessens 36f5b76640 meson: Fix configuration warnings 2022-09-13 08:57:42 -04:00
Xavier Claessens 952a04a9f2 meson: Do not run fc-cache when installing into a DESTDIR
It cause permission denied errors because it is often not run as root.
This requires Meson >=0.57.0.
2022-09-13 08:57:42 -04:00
Tim-Philipp Müller 0c7bb301f4 meson: add 'template-dir', 'baseconfig-dir', 'config-dir', and 'xml-dir' options
Fixes #244
2022-07-02 19:12:09 +01:00
Tim-Philipp Müller 6ae5623674 meson: add 'cache-dir' option
Fixes #244
2022-07-02 19:01:18 +01:00
Tim-Philipp Müller 66fa47c6f1 meson: add 'additional-fonts-dirs' option
Fixes #244
2022-07-02 19:01:17 +01:00
Tim-Philipp Müller 0d8d75e559 meson: add 'default-fonts-dirs' option
Fixes #244
2022-07-02 19:01:03 +01:00
Tim-Philipp Müller 56a2487924 meson: add 'default-hinting' option
Fixes #244
2022-07-02 19:00:41 +01:00
Jeremy Huddleston Sequoia fd0753af88 meson: Use fc_configdir where appropriate during build
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2022-06-20 14:53:51 -07:00
Jeremy Huddleston Sequoia db55c4b15e meson: Use fc_templatedir and fc_baseconfigdir are used when installing configs
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2022-06-20 14:45:28 -07:00
Jeremy Huddleston Sequoia 1bc38359d1 meson: Fix linking libexpat on darwin
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2022-06-20 00:39:25 -07:00
Alan Coopersmith d863f67789 Bump the cache version to 8 in doc/fontconfig-user.sgml
Makes docs match code changes from commit 5d84745e72

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-12 04:13:05 +00:00
Sam James aa681148a7 configure.ac: allow disabling docbook
Sometimes we might want to build docs (install man pages, etc)
but allow disabling use of docbook.

Bug: https://bugs.gentoo.org/310157
Signed-off-by: Sam James <sam@gentoo.org>
2022-04-12 03:59:02 +00:00
Taylor R Campbell 7dfde9b736 Avoid misuse of ctype(3)
The ctype(3) functions take arguments of type int that are either

(a) EOF, or
(b) unsigned char values, {0, 1, 2, ..., 255} if char is 8-bit.

Passing values of type char, on platforms where it is signed, can go
wrong -- negative values may be confused with EOF (typically -1) or
may lead to undefined behaviour ranging in practice from returning
garbage data (possibly out of an adjacent buffer in memory that may
contain secrets) to crashing with SIGSEGV (if the page preceding the
ctype table is unmapped).

The ctype(3) functions can't themselves convert to unsigned char
because then they would give the wrong answers for EOF, for use with
functions like getchar and fgetc; the user has to cast char to
unsigned char.
2022-04-11 12:27:04 +00:00
Akira TAGOH cf38c54a93 Use the latest stable release image for CI for mingw
CI sometimes fails. we want to avoid environment specific issues on our
CI.
2022-04-11 21:18:01 +09:00
Akira TAGOH 911b19f19f Bump version to 2.14.0 2022-03-31 16:26:11 +09:00
Alan Coopersmith d485760bbe Update address for reporting msgid bugs from bugzilla to gitlab
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-02-19 13:06:27 -08:00
Akira TAGOH d37f97223a Bump version to 2.13.96 2022-02-04 17:19:27 +09:00
Akira TAGOH f07b4cd547 Merge branch 'main' of ssh://gitlab.freedesktop.org/fontconfig/fontconfig 2022-02-04 17:18:10 +09:00
Akira TAGOH 5f96d62fbf Add a missing file 48-spacing.conf
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/310
2022-02-04 13:55:53 +09:00
Akira TAGOH 53fa8a3801 Bump version to 2.13.95 2022-02-01 14:25:45 +09:00
Akira TAGOH 875878efb7 Fix possible memory leaks in FcPatternObjectAddWithBinding
Reported by Ruth Ivimey-Cook

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/302
2022-01-31 19:03:29 +09:00
Francesco Pretto 16bbb5340b WIN32: Fix pGetSystemWindowsDirectory found initialized during FcConfigParseAndLoadFromMemory
Trying to early loading a custom fonts.xml created on the
fly results in the pGetSystemWindowsDirectory function
pointer being found intialized. Normally the initialization
is performed in the default configuration loading.
The commit factorizes the lazy initialization of both
WIN32 getters (together with pSHGetFolderPathA) in a
function and call it when actually needed.
2022-01-31 07:52:09 +00:00
Akira TAGOH 8a150f634f Add test/wrapper-script.sh to the archive
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/307
2022-01-28 18:13:21 +09:00
Akira TAGOH 55eb1ef89b Add an user font directory for Win32 to the default font path
Patch from @takase1121

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/144
2022-01-17 16:19:22 +09:00
Pierre Ducroquet 9a6ad6f1c5 Always add the family name from spacing=100 2022-01-13 11:34:25 +01:00
Pierre Ducroquet 686739af91 It seems this qual doesn't work on integers 2022-01-13 11:34:25 +01:00
Pierre Ducroquet a2687b91d7 Remove configuration file from POTFILES
This failed the CI for reasons unknown to me, and I don't see
the point in translating these files.
2022-01-13 11:34:25 +01:00
Pierre Ducroquet f084aca5cf Reference the new configuration file 2022-01-13 11:34:25 +01:00
Pierre Ducroquet 3fcdd60a1d Add a configuration to switch to monospace if spacing=100 is requested
Previously, requesting a monospace font with an invalid font family
(for instance, when a font is not embedded in a PDF, poppler may
issue such queries), the font family would be filled by configuration
file 49-sansserrif.conf with sans-serif
This new rule set the family to monospace if spacing=100 is specified
in the query.
2022-01-13 11:34:25 +01:00
Nirbheek Chauhan 7b09c81dab meson: Remove summary() from version_compare() block
The version_compare() block is redundant because we require meson 0.56
now, and it fixes a spurious warning:

```
fontconfig| WARNING: Project targeting '>= 0.53' but tried to use feature introduced in '0.54.0': list_sep arg in summary.
```
2022-01-09 17:04:25 +05:30