summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-07-02Fix a typo in doc/confdir.sgml.inAkira TAGOH2-2/+2
Since changes introduced by e181ab4d
2020-07-01Fix build on Windows some moreTim-Philipp Müller2-0/+6
2020-07-01Use FC_PATH_MAX to fix build on WindowsTim-Philipp Müller1-2/+2
2020-07-01Some build fixes to support compilation with MSVC on WindowsMathieu Duponchelle2-1/+13
2020-07-01doc: fix FcPatternFilter documentationTim-Philipp Müller1-1/+1
The second argument should be ARG2 not ARG1.
2020-06-24Drop elements with its namespace from fonts.conf.inJan Tojnar1-4/+0
This appears to have been forgotten in https://gitlab.freedesktop.org/fontconfig/fontconfig/merge_requests/97
2020-06-02Drop Bitstream Vera fonts from 60-latin.confAkira TAGOH1-3/+0
Bitstream Vera fonts seems broken so dropped them there. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/26
2020-05-25Add FC_ORDER property into cacheAkira TAGOH7-0/+10
"fontversion" used to be modified to sort out fonts as a technique. But that lost the original purpose to do the version control between releases. This change adds the dedicated property into the cache. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/226
2020-05-25Drop elements with its namespace from confAkira TAGOH36-142/+3
The translation related elements are now provided by separate files fontconfig.its and fontconfig.loc. we don't need to have it in conf anymore. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/234
2020-05-19Drop unmaintained filesAkira TAGOH3-141/+0
2020-05-12Fix cache conflicts on OSTree based systemAkira TAGOH1-3/+25
mtime isn't reliable to detect updates of fonts on OSTree based system since they reset mtime to 0 for system files. Due to this, there are the situation likely to happen where mtime is newer but content is older. Fortunately, OSTree based system requires reboot to deploy changes. so we can assume we won't see any changes on system fonts. so system caches are always up-to-date. we can ignore meta data for system fonts in user caches.
2020-04-28Set name_mapping to NULL after freeingJonathan Kew1-0/+3
To avoid risk of double-free. Fixes #237.
2020-04-10Fix errors on shellcheckAkira TAGOH1-162/+163
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/235
2020-03-28Use an URN for DTD IDNicolas Mailhot39-41/+41
XML tools interpret “fonts.dtd” as a relative path. Unfortunately, that can not work now that the configuration is spread over multiple system-dependant directories, without a common relative path to this file. And, an absolute path can not be defined in a system-independant way. System independance is a requirement to share config files between systems. Therefore, replace the broken relative path by a formal URN, that will work the same way on all systems, without network access. This makes the DTD registerable with commands like: $ xmlcatalog --noout --add system \ "urn:fontconfig:fonts.dtd" \ "file:///usr/share/xml/fontconfig/fonts.dtd" \ /etc/xml/catalog That enables easy config file checking: $ xmllint --loaddtd ${config_file} >/dev/null
2020-03-23Fix assertion in FcCacheFini() againAkira TAGOH1-2/+15
The previous fix in fbc05949ef52c8a8d69233eed77f6636dffec280 was wrong. reverting. When reading older caches, FcDirCacheMapHelper() returns FcFalse and it became the return value from FcDirCacheProcess() too, which is wrong. Actually one of calls for FcDirCacheMapHelper() should be successfully finished and closure should have a valid pointer for cache. Due to this, the proper finalization process wasn't running against cache in closure. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/227
2020-03-19fcatomic: Fix EXC_BAD_ACCESS on iOS ARM64Nirbheek Chauhan1-10/+2
iPhone 2.1 was released a long time ago, and the macro for checking the target iOS SDK version has changed. We can simplify everything and do a very basic check.
2020-02-27Set exact boolean value to color propertyAkira TAGOH1-1/+1
This is a regression since 48e9e5f4
2020-02-26Fix assertion in FcFini()Akira TAGOH2-6/+7
Due to the unproper initialization of `latest_mtime', the duplicate caches was still in fcCacheChains with no references. which means no one frees them. thus, the memory leak was happened. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/227
2020-02-19Fix memory leaksAkira TAGOH1-0/+13
2020-02-19Fix the process substitution doesn't work with FONTCONFIG_FILEAkira TAGOH1-1/+8
Don't address the real filename when a named pipe is given in FONTCONFIG_FILE.
2019-12-09Add proper fullname for named-instancesAkira TAGOH1-1/+57
Try to build a fullname from a family and a style name for a named-instance. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/185
2019-12-05Fix a test fail when no bwrap was availableAkira TAGOH1-3/+2
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/201
2019-11-28Don't add a value for FC_FULLNAME in meta faceAkira TAGOH1-0/+2
FC_FULLNAME is affected by variables and could be different against it. FC_FULLNAME should be dropped from meta face. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/185
2019-11-20Correct reset-dirs in DTDJan Tojnar1-1/+1
Empty elements need to be declared as such in well-formed DTDs.
2019-11-06Fix gcc warnings with -Wpointer-signAkira TAGOH5-17/+17
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/184
2019-11-06Fix potential race condition in FcConfigSetCurrent and FcConfigReferenceAkira TAGOH2-17/+90
2019-11-01Use FcConfigReference/Destroy appropriately instead of FcConfigGetCurrentAkira TAGOH11-153/+436
This may improves to be MT-safe. Reported at https://bugs.chromium.org/p/chromium/issues/detail?id=1004254
2019-10-31Fix a memory leak caused by the previous commitAkira TAGOH1-0/+4
2019-10-28Read latest cache in pathsAkira TAGOH2-6/+96
Right now fontconfig uses a cache found first in a path and cachedirs are the order of the system-wide path and then the user path. this is due to avoid writing caches into the user path when running as root. However, changing caches by certain config only, e.g. using <match target="scan"> may not take effect by this behavior, because it may be stored into the user path. Thus, needing to find the latest cache out from paths. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/182
2019-10-21Take effect sysroot functionality to the default config fileAkira TAGOH4-25/+81
When loading the default config file with FONTCONFIG_SYSROOT, it fails if no /etc/fonts/fonts.conf is available, even if it is there where is based on sysroot. To address this, FcConfig is required to determine the sysroot. therefore, this change makes FcConfigFilename() deprecated, use FcConfigGetFilename() instead. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/181
2019-10-08Warn as well if no directory name for cachedir providedAkira TAGOH4-12/+104
cachedir is used to determine where cache files are stored. the empty directory will ends up to put them under the top of directory of XDG_CACHE_HOME. that messes it up and must be avoided. As a note, if you want to read/write something from the top of XDG_DATA_HOME (dir) and/or XDG_CACHE_HOME (cachedir), put "." instead of the empty. https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/180
2019-08-29conf: Add JoyPixels emoji fontJan Tojnar2-0/+5
It is a successor of EmojiOne. https://www.joypixels.com/
2019-08-28Do not return FcFalse from FcConfigParseAndLoad*() if complain is set to falseAkira TAGOH3-3/+60
https://bugzilla.redhat.com/show_bug.cgi?id=1744377
2019-08-21Add missing return type for FcFontSet* functionsSzunti1-2/+2
2019-08-09Affect FC_FONT_HAS_HINT property to score on matcherAkira TAGOH2-1/+2
2019-08-07Improve the performance a bitAkira TAGOH3-45/+57
This change reduces the call cost of strcmp 1.5 % less.
2019-07-31Fix the fails of make check when SOURCE_DATE_EPOCH is setAkira TAGOH1-0/+33
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/172
2019-07-30Fix failing the check of prep table in some fontsAkira TAGOH1-8/+15
2019-07-29Add FC_FONT_HAS_HINT property to see if font has hinting or not.Akira TAGOH7-0/+46
This may helps to enable autohint only when font doesn't have any hinting
2019-07-26Add 35-lang-normalize.confAkira TAGOH2-1/+24
This avoids a situation where the score of lang becomes lower or equal to others and then figures out the best font according to other properties and the order of family names. This typically happens only when our orthography files are the subset of lang in patterns. i.e. fc-match :lang=en-us to match on en.orth. In this case, the score is lower than the exact match (en to en) and the partial match (en to en-us). thus, the result of 'fc-match :lang=en-us' isn't necessarily same to 'fc-match :lang=en'. So 35-lang-normalize.conf contains languages only which is available as orth without countries and tries to update properties to match on orth exactly like: <match> <test name="lang" compare="contains"> <string>en</string> </test> <edit name="lang" mode="assign" binding="same"> <string>en</string> </edit> </match> Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/155
2019-07-26Fix a memory leak in FcFreeTypeQuery*()Akira TAGOH1-3/+8
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/170
2019-07-23Fix memory leaksAkira TAGOH2-0/+3
2019-07-23Fix the fail on fc-cacheAkira TAGOH1-4/+13
Fallback code to UUID-based cache name was broken. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/169
2019-07-23Add docs for missing propertiesAkira TAGOH1-12/+17
2019-07-23Clean up temporary directory for testsAkira TAGOH1-3/+6
2019-07-22FcConfigParseAndLoad*() should returns false on config errorsAkira TAGOH1-1/+1
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/168 Reported by Lawrence D'Oliveiro
2019-07-09Add English name first into a cacheAkira TAGOH1-1/+18
In some cases, non-English languages might appears first in current order. and when having English name with non-English language ID like Google Noto CJK TC, English name with English language ID will be dropped due to duplicate. This fixes that issue.
2019-07-09Fix a typoAkira TAGOH1-1/+1
2019-07-08Improve the performance a bitAkira TAGOH1-19/+26
2019-07-02Fix a crash when running with FC_DEBUG=256Akira TAGOH1-1/+1
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/167