Commit Graph

2450 Commits

Author SHA1 Message Date
Akira TAGOH b54b98bb21 Add some missing constant names for weight.
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/348
2023-01-25 23:04:35 +09:00
Akira TAGOH 92f093a4c4 Report more detailed logs instead of assertion.
Getting backtraces against this assertion isn't useful at all.
Fontconfig isn't capable to report who really have a reference
of caches though, this report may be better than assertion.
So we can try analysis tools then.
And report it only when running with FC_DEBUG=16.
2023-01-25 14:36:30 +09:00
Ondrej Balaz da1e3f35e6 Expand ~ in glob
Allow ~ home directory expansion in acceptfont and rejectfont globs.

Fixes: #347
2023-01-25 06:14:54 +09:00
Akira TAGOH f7091cd17b Fix a typo in description for HAVE_STDATOMIC_PRIMITIVES
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/346
2023-01-23 23:04:33 +09:00
lilinjie b7586f0170 fix typo
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2023-01-12 15:32:36 +08:00
Akira TAGOH aec775130b src/meson.build: Store correct paths to fontconfig.pc.
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/345
2022-12-28 21:58:09 +09:00
Jean Abou Samra 6e3fe92b20
Ignore LC_CTYPE if set to "UTF-8"
LC_CTYPE is set to "UTF-8" on some macOS systems, which is
POSIX-compliant in a strict sense, but breaks the usual assumption
that a locale name has the form "ll_LL.encoding".

https://unix.stackexchange.com/questions/503110/valid-values-for-lc-ctype

Previously, this would cause the warning

  Fontconfig warning: ignoring UTF-8: not a valid region tag

Now, we just skip this variable if set to "UTF-8", since that value
doesn't give any language information, and move on to try LANG.
2022-12-14 15:27:34 +01:00
Akira TAGOH 8b854dddb0 Convert more tabs to spaces in docs
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/343
2022-12-13 23:17:59 +09:00
Akira TAGOH 27a21ccef0 Convert tabs to spaces
This fixes broken layout on pdf.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/343
2022-12-13 16:05:41 +09:00
Mike FABIAN ce9cbe36d8 Change index type to 16 bit and bump cache version to 9
The number of .orth files is now > 256, therefore the index type needs to be 16 bit.
2022-12-09 09:23:19 +01:00
Mike FABIAN 9097ada0ef Add {agr,ayc,bem,ckb,cmn,dsb,hak,lij,lzh,mfe,mhr,miq,mjw,mnw,nan,nhn,niu,rif,sgs,shn,szl,tcy,tpi,unm,wae,yue,yuw}.orth
Resolves: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/341

Also move {anp,bhb,hif,mag,raj,the}.orth which were recently added
to the proper insert position in fc-lang/{Makefile.am,meson.build}
2022-12-09 09:23:19 +01:00
Akira TAGOH ddea974d3c Do not change the order of orth files 2022-12-08 15:54:26 +09:00
Mike FABIAN c8f6210bab Add anp.orth, bhb.orth, hif.orth, mag.orth, raj.orth, and the.orth
Resolves: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/340
2022-12-05 14:37:22 +01:00
Akira TAGOH ed6c9cf67b Ignore null pointer on Fc*Destroy functions
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/339
2022-12-05 21:40:26 +09:00
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