doc/fcfile.fncs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) New commits: commit 2ddce88cde79d8bf8959d614af883999d5c66a85 Author: Keith Packard <keithp at koto.keithp.com> Date: Sat Nov 3 13:44:59 2007 -0700 Document skipping of fonts from FcFileScan/FcDirScan. FcFileScan and FcDirScan will skip fonts under direction of the configuration and default fontconfig policy. diff --git a/doc/fcfile.fncs b/doc/fcfile.fncs index 2aa46e1..df7400b 100644 --- a/doc/fcfile.fncs +++ b/doc/fcfile.fncs @@ -36,7 +36,8 @@ Scans a single file and adds all fonts found to <parameter>set</parameter>. If <parameter>force</parameter> is FcTrue, then the file is scanned even if associated information is found in <parameter>cache</parameter>. If <parameter>file</parameter> is a directory, it is added to -<parameter>dirs</parameter>. +<parameter>dirs</parameter>. Whether fonts are found depends on fontconfig +poliy as well as the current configuration. @@ @RET@ FcBool @@ -53,7 +54,9 @@ Scans an entire directory and adds all fonts found to <parameter>set</parameter>. If <parameter>force</parameter> is FcTrue, then the directory and all files within it are scanned even if information is present in the per-directory cache file or <parameter>cache</parameter>. Any -subdirectories found are added to <parameter>dirs</parameter>. +subdirectories found are added to <parameter>dirs</parameter>. Whether fonts +or directories are found depends on fontconfig +policy as well as the current configuration. @@ @RET@ FcBool
Keith Packard wrote:> doc/fcfile.fncs | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > New commits: > commit 2ddce88cde79d8bf8959d614af883999d5c66a85 > Author: Keith Packard <keithp at koto.keithp.com> > Date: Sat Nov 3 13:44:59 2007 -0700 > > Document skipping of fonts from FcFileScan/FcDirScan. > > FcFileScan and FcDirScan will skip fonts under direction of the > configuration and default fontconfig policy. > > diff --git a/doc/fcfile.fncs b/doc/fcfile.fncs > index 2aa46e1..df7400b 100644 > --- a/doc/fcfile.fncs > +++ b/doc/fcfile.fncs > @@ -36,7 +36,8 @@ Scans a single file and adds all fonts found to <parameter>set</parameter>. > If <parameter>force</parameter> is FcTrue, then the file is scanned even if > associated information is found in <parameter>cache</parameter>. If > <parameter>file</parameter> is a directory, it is added to > -<parameter>dirs</parameter>. > +<parameter>dirs</parameter>. Whether fonts are found depends on fontconfig > +*poliy* as well as the current configurationThere is a small misprint: s/poliy/policy Is anywhere a description what "depends on fontconfig policy as well as the current configuration" means? -- Alexey Khoroshilov Linux Verification Center, ISPRAS web: http://linuxtesting.org e-mail: khoroshilov at linuxtesting.org
On Sun, 2007-11-04 at 02:32 +0300, Alexey Khoroshilov wrote:> There is a small misprint: > s/poliy/policyThanks.> Is anywhere a description what "depends on fontconfig policy as well as > the current configuration" means?No, there wasn''t. I''ve edited the FcFileScan description to include: Whether fonts are found depends on fontconfig policy as well as the current configuration. Internally, fontconfig will ignore BDF and PCF fonts which are not in Unicode (or the effectively equivalent ISO Latin-1) encoding as those are not usable by Unicode-based applications. The configuration can ignore fonts based on filename or contents of the font file itself. So, your ISO 8859-10 pcf.gz font is not included in the fontconfig database as it is not Unicode encoded. -- keith.packard at intel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20071103/d0cb1c63/attachment.pgp
Keith Packard wrote:> On Sun, 2007-11-04 at 02:32 +0300, Alexey Khoroshilov wrote: > > >> There is a small misprint: >> s/poliy/policy >> > > Thanks. > > >> Is anywhere a description what "depends on fontconfig policy as well as >> the current configuration" means? >> > > No, there wasn''t. I''ve edited the FcFileScan description to include: > > Whether fonts are found depends on fontconfig > policy as well as the current configuration. Internally, fontconfig will > ignore BDF and PCF fonts which are not in Unicode (or the effectively > equivalent ISO Latin-1) encoding as those are not usable by Unicode-based > applications. The configuration can ignore fonts based on filename or > contents of the font file itself. > > So, your ISO 8859-10 pcf.gz font is not included in the fontconfig > database as it is not Unicode encoded. > >Thank you for the clarification. -- Alexey