Commit Graph

2489 Commits

Author SHA1 Message Date
Akira TAGOH e0f44326cb .gitlab-ci: Update
* Add Fedora 39 and drop 37
* Update the base template
2023-12-05 13:14:15 +09:00
Akira TAGOH c53079fcc1 Add iconv detection for meson build
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/394
2023-11-20 17:31:30 +09:00
Akira TAGOH a264a2c0ca Work around decoding strings in Macintosh encoding for the name table. 2023-09-21 17:01:10 +09:00
Akira TAGOH 34883cb414 Retry to decode strings in the name table as UTF-16BE in some cases.
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/376
2023-09-21 17:01:10 +09:00
Akira TAGOH 81a26a6b62 Update the encoding table for Simplified Chinese 2023-09-21 17:01:10 +09:00
Akira TAGOH 16eff2de23 Update CaseFolding.txt to Unicode 15.1 2023-09-13 20:09:57 +09:00
Akira TAGOH 70e2a9a189 Fix an error of "initializer element is not constant"
Patch from Andreas Falkenhahn

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/380
2023-09-11 17:34:23 +09:00
Khaled Hosny e0eb855462 Detect standalone CFF fonts for FC_FONT_WRAPPER
FreeType will return CFF for both SFNT fonts with CFF table as well as
standalone CFF fonts, but applications might want to support the former
and not the later, so now FC_FONT_WRAPPER makes the distinction more
clear.
2023-08-24 14:11:26 +03:00
Akira TAGOH 5d954398d1 Create a symlink with relative path
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/378
2023-08-10 20:18:37 +09:00
Khaled Hosny f614ec4d60 Add FC_FONT_WRAPPER
Currently detects only SFNT wrappers:
- WOFF: if it is FreeType says it is an SFNT font the file starts with wOFF tag
- WOFF2: the same but tag is wOF2
- SFNT: for any other SFNT font (which helps distinguishing standalone
  CFF fonts from CFF in SFNT aka OTF)

Fixes #375
2023-08-08 18:17:10 +03:00
Akira TAGOH 2fb3419a92 Fix uninitialized memory access when failing memory allocation.
FamilyTableInit() is called after allocating memory.
but FamilyTableClear() may be called when the allocation is failed.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/374

Reported by Andreas Falkenhahn
2023-07-27 16:16:30 +09:00
xiota f07d7c67e4 Add aliases for Helvetica LT Std 2023-07-15 07:39:58 +00:00
pell a812d44309 fixed typos in fc-conflist.sgml 2023-07-15 07:27:37 +00:00
Akira TAGOH 4244a5d4ec Apply a fix of ci-templates 2023-07-15 16:00:23 +09:00
Akira TAGOH b1d149347a Rework CI implementation v2 2023-07-06 15:54:36 +09:00
Akira TAGOH 3c16ea2849 Fix a typo 2023-07-06 15:54:36 +09:00
Akira TAGOH 428515daae Rework CI implementation
Use ci-templates.
2023-07-06 15:54:36 +09:00
Akira TAGOH 7e2a1b2577 Add more docs about selectfont
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/363
2023-06-12 19:59:53 +09:00
Akira TAGOH 7aa647eb9e Use 'outline' instead of 'scalable' for bitmaps
scalable can be true if bitmap fonts have color.
This isn't expected behavior.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/365
2023-06-12 19:33:43 +09:00
Akira TAGOH fb726e86bd Fix a typo in scalable property
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/365
2023-06-12 19:33:41 +09:00
Akira TAGOH 842f09c4f0 Fix a typo for FcCharSetDelChar doc
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/364
2023-06-08 20:21:47 +09:00
Xavier Claessens ce182817b4 meson: Support any compiler with gcc or msvc argument syntax
This includes e.g. clang-cl.
2023-06-01 08:26:49 -04:00
Akira TAGOH ff037052bc Fix a typo 2023-05-30 19:00:02 +09:00
Akira TAGOH e4987ef114 Remove the problematic language from code and doc 2023-05-29 22:13:23 +09:00
Akira TAGOH f0612537cb Add namedinstance property
This change allows applications to detect if a font
is a variable font and a named-instance.
If they are, namedinstance property is set to true,
otherwise false.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/362
2023-05-25 20:12:31 +09:00
Akira TAGOH 1751596768 Add missing property descriptions
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/360
2023-05-17 14:18:52 +09:00
Akira TAGOH 963ec653a3 Change the order of the properties to the order of fontconfig cache format 2023-05-17 14:11:22 +09:00
Jean Abou Samra 222d058525
Some doc clarifications 2023-04-17 18:28:27 +02:00
Ben Wagner ec3e747d2f Fix leak of `reason` in _FcConfigParse when not complaining
In "Do not return FcFalse from FcConfigParseAndLoad*() if complain is
set to false" [0], _FcConfigParse was updated to return FcTrue early if
it was instructed not to complain on errors. In "Take effect sysroot
functionality to the default config file" [1] the error messages were
factored into a `reason` which was allocated. Be sure to free this
`reason` in the case of returning FcTrue early.

Discovered with a leak checker while attempting to configure in
interesting ways.

[0] fcada52291
[1] cd51cb241a
2023-03-30 14:23:57 -04:00
Sefa Eyeoglu c2666a6d9a
Add optional 11-lcdfilter-none configuration
Of the possible lcdfilter options, `lcdnone` did not have a
corresponding optional config file.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-03-21 16:20:37 +01:00
Akira TAGOH 04546f1876 Update 65-nonlatin.conf for macOS
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/353
2023-03-13 18:36:04 +09:00
Akira TAGOH b0a5af1bd2 Add another test case for flatpak 2023-03-06 17:01:38 +09:00
Akira TAGOH 860b9997ef Clean up unused code 2023-03-06 15:34:58 +09:00
msizanoen1 a6a1695722 Reload MM/VF metadata for each font face in font collection
This ensures that the MM/VF metadata is the correct metadata for each
font face instead of whatever happens to be in the first one in the
collection.
2023-02-22 21:57:44 +07:00
Vitaly Lysenkov 89af138176 In fcfreetype.c, `GetScriptTags`: fix `use_of_uninitialized_value` and return the correct number of parsed tags in case the font file contains less tags than indicated. 2023-02-21 20:13:23 +00:00
Tom Anderson 06929a556f Fix false-positive CFI failure
When building Chromium with upstream Fontconfig with CFI,
the following build error is raised:

../../third_party/fontconfig/src/src/fchash.c:105:21: runtime error:
control flow integrity check for type 'unsigned int (const void *)'
failed during indirect function call

This occurs because CFI doesn't like the conversion from
`unsigned int (const void *)` to `unsigned int (const char *)`.
To fix this, simply redefine `FcHashFunc` to use `char *` instead.
2023-02-13 17:02:53 +00:00
Tom Anderson 2ef790a0db Fix filepaths added when scanning with sysroot
This fixes a regression introduced by 76f88e780.  When
using FONTCONFIG_SYSROOT=/home/tom/test_fonts, strace
reveals that fontconfig attempted to open /test_fonts/Ahem.ttf
instead of /home/tom/test_fonts/Ahem.ttf.  The fix is to use
`s_dir` instead of `dir` in `file_prefix`.
2023-02-09 01:31:31 +00:00
Akira TAGOH 311f6caaa8 Bump version to 2.14.2 2023-01-27 17:55:02 +09:00
Akira TAGOH 43baa9a884 Adujst indentation between programlisting in fontconfig-user.sgml
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/344
2023-01-27 14:25:11 +09:00
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