Blame doc/fcfile.sgml

Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcFileScan">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcFileScan</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcFileScan</refname>
Packit 352660
	    <refpurpose>scan a font file</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcBool <function>FcFileScan</function></funcdef>
Packit 352660
		<paramdef>FcFontSet *<parameter>set</parameter></paramdef>
Packit 352660
		<paramdef>FcStrSet *<parameter>dirs</parameter></paramdef>
Packit 352660
		<paramdef>FcFileCache *<parameter>cache</parameter></paramdef>
Packit 352660
		<paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
Packit 352660
		<paramdef>FcBool <parameter>force</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
Scans a single file and adds all fonts found to <parameter>set</parameter>.
Packit 352660
If <parameter>force</parameter> is FcTrue, then the file is scanned even if
Packit 352660
associated information is found in <parameter>cache</parameter>.  If
Packit 352660
<parameter>file</parameter> is a directory, it is added to
Packit 352660
<parameter>dirs</parameter>. Whether fonts are found depends on fontconfig
Packit 352660
policy as well as the current configuration. Internally, fontconfig will
Packit 352660
ignore BDF and PCF fonts which are not in Unicode (or the effectively
Packit 352660
equivalent ISO Latin-1) encoding as those are not usable by Unicode-based
Packit 352660
applications. The configuration can ignore fonts based on filename or
Packit 352660
contents of the font file itself. Returns FcFalse if any of the fonts cannot be
Packit 352660
added (due to allocation failure). Otherwise returns FcTrue.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcFileIsDir">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcFileIsDir</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcFileIsDir</refname>
Packit 352660
	    <refpurpose>check whether a file is a directory</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcBool <function>FcFileIsDir</function></funcdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
Returns FcTrue if <parameter>file</parameter> is a directory, otherwise
Packit 352660
returns FcFalse.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirScan">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirScan</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirScan</refname>
Packit 352660
	    <refpurpose>scan a font directory without caching it</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcBool <function>FcDirScan</function></funcdef>
Packit 352660
		<paramdef>FcFontSet *<parameter>set</parameter></paramdef>
Packit 352660
		<paramdef>FcStrSet *<parameter>dirs</parameter></paramdef>
Packit 352660
		<paramdef>FcFileCache *<parameter>cache</parameter></paramdef>
Packit 352660
		<paramdef>FcBlanks *<parameter>blanks</parameter></paramdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
Packit 352660
		<paramdef>FcBool <parameter>force</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
If <parameter>cache</parameter> is not zero or if <parameter>force</parameter>
Packit 352660
is FcFalse, this function currently returns FcFalse.  Otherwise, it scans an
Packit 352660
entire directory and adds all fonts found to <parameter>set</parameter>.
Packit 352660
Any subdirectories found are added to <parameter>dirs</parameter>.  Calling
Packit 352660
this function does not create any cache files.  Use FcDirCacheRead() if
Packit 352660
caching is desired.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>
Packit 352660
Packit 352660
   fontconfig/doc/func.sgml
Packit 352660
  
Packit 352660
   Copyright © 2003 Keith Packard
Packit 352660
  
Packit 352660
   Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
   documentation for any purpose is hereby granted without fee, provided that
Packit 352660
   the above copyright notice appear in all copies and that both that
Packit 352660
   copyright notice and this permission notice appear in supporting
Packit 352660
   documentation, and that the name of the author(s) not be used in
Packit 352660
   advertising or publicity pertaining to distribution of the software without
Packit 352660
   specific, written prior permission.  The authors make no
Packit 352660
   representations about the suitability of this software for any purpose.  It
Packit 352660
   is provided "as is" without express or implied warranty.
Packit 352660
  
Packit 352660
   THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
   EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
   PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 -->
Packit 352660
    <refentry id="FcDirSave">
Packit 352660
	<refmeta>
Packit 352660
	    <refentrytitle>FcDirSave</refentrytitle>
Packit 352660
	    <manvolnum>3</manvolnum>
Packit 352660
	    <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
Packit 352660
	</refmeta>
Packit 352660
	<refnamediv>
Packit 352660
	    <refname>FcDirSave</refname>
Packit 352660
	    <refpurpose>DEPRECATED: formerly used to save a directory cache</refpurpose>
Packit 352660
	</refnamediv>
Packit 352660
	<refsynopsisdiv>
Packit 352660
	<funcsynopsis>
Packit 352660
	<funcsynopsisinfo>
Packit 352660
#include <fontconfig/fontconfig.h>
Packit 352660
	</funcsynopsisinfo>
Packit 352660
	<funcprototype>
Packit 352660
	    <funcdef>FcBool <function>FcDirSave</function></funcdef>
Packit 352660
		<paramdef>FcFontSet *<parameter>set</parameter></paramdef>
Packit 352660
		<paramdef>FcStrSet *<parameter>dirs</parameter></paramdef>
Packit 352660
		<paramdef>const FcChar8 *<parameter>dir</parameter></paramdef>
Packit 352660
	</funcprototype>
Packit 352660
	</funcsynopsis>
Packit 352660
	</refsynopsisdiv>
Packit 352660
	<refsect1><title>Description</title>
Packit 352660
	    <para>
Packit 352660
This function now does nothing aside from returning FcFalse. It used to creates the
Packit 352660
per-directory cache file for <parameter>dir</parameter> and populates it
Packit 352660
with the fonts in <parameter>set</parameter> and subdirectories in
Packit 352660
<parameter>dirs</parameter>. All of this functionality is now automatically
Packit 352660
managed by FcDirCacheLoad and FcDirCacheRead.
Packit 352660
	    </para>
Packit 352660
	</refsect1>
Packit 352660
    </refentry>