From akira at tagoh.org Fri Feb 8 05:34:39 2019 From: akira at tagoh.org (Akira TAGOH) Date: Fri, 8 Feb 2019 14:34:39 +0900 Subject: [Fontconfig] Next steps for a reproducible Fontconfig? In-Reply-To: References: <1546604969.1958836.1625378344.67D273D4@webmail.messagingengine.com> <87r2dgzaeq.fsf@keithp.com> <87d0onnlph.fsf@keithp.com> <877eeunx5z.fsf@keithp.com> <871s50oqrp.fsf@keithp.com> <875zu744h9.fsf@keithp.com> <87munhzqw4.fsf@keithp.com> <87r2ctxlzp.fsf@keithp.com> Message-ID: No comments on this (yet) so just opened a merge request here: https://gitlab.freedesktop.org/fontconfig/fontconfig/merge_requests/30 If anyone can review, that would be appreciated. On Thu, Jan 31, 2019 at 7:36 PM Akira TAGOH wrote: > > I've done implementation for salt: > https://gitlab.freedesktop.org/tagoh/fontconfig/commits/flatpak-rework > > That should works as expected. > For summary to support this on flatpak side, All of flatpaks needs to have: > > /usr/share/fonts > > and more if there are any fonts directories on sandbox where has same > directory names on host. > or may be better having a salt regardless of it to make them > differenciated to host perhaps. I'll leave it to you, Alex. > > No salt should be needed for remap-dir so far. > > Ah, and if you want to manage fonts directories in a single file and > don't want to modify fonts.conf, you can put prior to > re-define own fonts directories with dir elements. > > Please test it. > > On Thu, Jan 31, 2019 at 5:56 PM Alexander Larsson > wrote: > > > > On Thu, Jan 31, 2019 at 9:54 AM Akira TAGOH wrote: > > > > > > Also if host dirs are available as is on sandbox like Alex concerned, > > > we could simply have: > > > > > > /opt/fonts > > > > Yeah, assuming there is no global default salt that messes this up. > > > > -- > Akira TAGOH -- Akira TAGOH From gitlab-mirror at kemper.freedesktop.org Thu Feb 21 04:41:19 2019 From: gitlab-mirror at kemper.freedesktop.org (GitLab Mirror) Date: Thu, 21 Feb 2019 04:41:19 +0000 (UTC) Subject: [Fontconfig] fontconfig: Branch 'master' Message-ID: <20190221044119.EF4FC7613A@kemper.freedesktop.org> doc/fcconfig.fncs | 15 ++++++++++----- doc/fontconfig-devel.sgml | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) New commits: commit 40e27f5d989ef4e40d218624de0a51de3de43177 Author: Ben Wagner Date: Tue Feb 19 00:40:32 2019 +0000 Better document sysroot. All non trivial users of FontConfig must use FcConfigGetSysRoot to resolve file properties in patterns. In order to support sysroot the filename in the file property must be relative to the sysroot, but the value of the file property in a pattern is directly exposed, making it impossible for FontConfig to resolve the filename itself transparently. diff --git a/doc/fcconfig.fncs b/doc/fcconfig.fncs index de7a5d7..5f1ef43 100644 --- a/doc/fcconfig.fncs +++ b/doc/fcconfig.fncs @@ -393,7 +393,9 @@ parse error, semantic error or allocation failure. Otherwise returns FcTrue. @TYPE1@ const FcConfig * @ARG1@ config @PURPOSE@ Obtain the system root directory @DESC@ -Obtrains the system root directory in 'config' if available. +Obtains the system root directory in 'config' if available. All files +(including file properties in patterns) obtained from this 'config' are +relative to this system root directory. @SINCE@ 2.10.92 @@ @@ -403,10 +405,13 @@ Obtrains the system root directory in 'config' if available. @TYPE2@ const FcChar8 * @ARG2@ sysroot @PURPOSE@ Set the system root directory @DESC@ -Set 'sysroot' as the system root directory. fontconfig prepend 'sysroot' -to the cache directories in order to allow people to generate caches at -the build time. Note that this causes changing current config. i.e. -this function calls FcConfigSetCurrent() internally. +Set 'sysroot' as the system root directory. All file paths used or created with +this 'config' (including file properties in patterns) will be considered or +made relative to this 'sysroot'. This allows a host to generate caches for +targets at build time. This also allows a cache to be re-targeted to a +different base directory if 'FcConfigGetSysRoot' is used to resolve file paths. +When setting this on the current config this causes changing current config +(calls FcConfigSetCurrent()). @SINCE@ 2.10.92 @@ diff --git a/doc/fontconfig-devel.sgml b/doc/fontconfig-devel.sgml index 6a6caef..b8b232c 100644 --- a/doc/fontconfig-devel.sgml +++ b/doc/fontconfig-devel.sgml @@ -168,6 +168,7 @@ convenience for the application's rendering mechanism. normal hinter globaladvance FC_GLOBAL_ADVANCE Bool Use font global advance data (deprecated) file FC_FILE String The filename holding the font + relative to the config's sysroot index FC_INDEX Int The index of the font within the file ftface FC_FT_FACE FT_Face Use the specified FreeType From gitlab-mirror at kemper.freedesktop.org Wed Feb 27 07:44:29 2019 From: gitlab-mirror at kemper.freedesktop.org (GitLab Mirror) Date: Wed, 27 Feb 2019 07:44:29 +0000 (UTC) Subject: [Fontconfig] fontconfig: Branch 'master' Message-ID: <20190227074429.312167610B@kemper.freedesktop.org> conf.d/40-nonlatin.conf | 100 ++++++++++++++++++++++++++++++++++++++++++++++++ conf.d/45-latin.conf | 23 +++++++++++ conf.d/60-latin.conf | 13 ++++++ conf.d/65-nonlatin.conf | 33 +++++++++++++++ fonts.conf.in | 11 +++++ 5 files changed, 180 insertions(+) New commits: commit dba84600e1485000f358d8259b92721cf7066034 Author: Akira TAGOH Date: Tue Sep 25 19:20:35 2018 +0900 Add system-ui generic family The generic family of 'system-ui' name is being proposed in a draft of next CSS Fonts. This would be nice to support in fontconfig too. https://www.w3.org/TR/css-fonts-4/ diff --git a/conf.d/40-nonlatin.conf b/conf.d/40-nonlatin.conf index 0af8832..19cb103 100644 --- a/conf.d/40-nonlatin.conf +++ b/conf.d/40-nonlatin.conf @@ -233,4 +233,104 @@ cursive + + + Noto Sans Arabic UI + system-ui + + + Noto Sans Bengali UI + system-ui + + + Noto Sans Devanagari UI + system-ui + + + Noto Sans Gujarati UI + system-ui + + + Noto Sans Gurmukhi UI + system-ui + + + Noto Sans Kannada UI + system-ui + + + Noto Sans Khmer UI + system-ui + + + Noto Sans Lao UI + system-ui + + + Noto Sans Malayalam UI + system-ui + + + Noto Sans Myanmar UI + system-ui + + + Noto Sans Oriya UI + system-ui + + + Noto Sans Sinhala UI + system-ui + + + Noto Sans Tamil UI + system-ui + + + Noto Sans Telugu UI + system-ui + + + Noto Sans Thai UI + system-ui + + + Leelawadee UI + system-ui + + + Nirmala UI + system-ui + + + Yu Gothic UI + system-ui + + + Meiryo UI + system-ui + + + MS UI Gothic + system-ui + + + Khmer UI + system-ui + + + Lao UI + system-ui + + + Microsoft JhengHei UI + system-ui + + + Microsoft YaHei UI + system-ui + + diff --git a/conf.d/45-latin.conf b/conf.d/45-latin.conf index a9240b9..a33420e 100644 --- a/conf.d/45-latin.conf +++ b/conf.d/45-latin.conf @@ -274,5 +274,28 @@ Zapfino cursive + + + Cantarell + system-ui + + + Noto Sans UI + system-ui + + + Segoe UI + system-ui + + + Segoe UI Historic + system-ui + + + Segoe UI Symbol + system-ui + diff --git a/conf.d/60-latin.conf b/conf.d/60-latin.conf index 5be5d6a..8ba894e 100644 --- a/conf.d/60-latin.conf +++ b/conf.d/60-latin.conf @@ -75,5 +75,18 @@ Comic Sans MS + + + system-ui + + Cantarell + Noto Sans UI + Segoe UI + Segoe UI Historic + Segoe UI Symbol + + diff --git a/conf.d/65-nonlatin.conf b/conf.d/65-nonlatin.conf index 1b9de31..33ff53e 100644 --- a/conf.d/65-nonlatin.conf +++ b/conf.d/65-nonlatin.conf @@ -196,4 +196,37 @@ LKLUG + + + system-ui + + Noto Sans Arabic UI + Noto Sans Bengali UI + Noto Sans Devanagari UI + Noto Sans Gujarati UI + Noto Sans Gurmukhi UI + Noto Sans Kannada UI + Noto Sans Khmer UI + Noto Sans Lao UI + Noto Sans Malayalam UI + Noto Sans Myanmar UI + Noto Sans Oriya UI + Noto Sans Sinhala UI + Noto Sans Tamil UI + Noto Sans Telugu UI + Noto Sans Thai UI + Leelawadee UI + Nirmala UI + Yu Gothic UI + Meiryo UI + MS UI Gothic + Khmer UI + Lao UI + Microsoft YaHei UI + Microsoft JhengHei UI + + + diff --git a/fonts.conf.in b/fonts.conf.in index 2019923..5a1a4d0 100644 --- a/fonts.conf.in +++ b/fonts.conf.in @@ -69,6 +69,17 @@ sans-serif + + + + system ui + + + system-ui + +