2003-03-07 20:01:41 +01:00
|
|
|
/*
|
2008-08-13 09:30:23 +02:00
|
|
|
* fontconfig/doc/fcfreetype.fncs
|
2003-03-07 20:01:41 +01:00
|
|
|
*
|
2004-12-07 02:14:46 +01:00
|
|
|
* Copyright © 2003 Keith Packard
|
2003-03-07 20:01:41 +01:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
* documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
* the above copyright notice appear in all copies and that both that
|
|
|
|
* copyright notice and this permission notice appear in supporting
|
2010-11-10 22:45:42 +01:00
|
|
|
* documentation, and that the name of the author(s) not be used in
|
2003-03-07 20:01:41 +01:00
|
|
|
* advertising or publicity pertaining to distribution of the software without
|
2010-11-10 22:45:42 +01:00
|
|
|
* specific, written prior permission. The authors make no
|
2003-03-07 20:01:41 +01:00
|
|
|
* representations about the suitability of this software for any purpose. It
|
|
|
|
* is provided "as is" without express or implied warranty.
|
|
|
|
*
|
2009-03-12 21:00:08 +01:00
|
|
|
* THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
2003-03-07 20:01:41 +01:00
|
|
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
2009-03-12 21:00:08 +01:00
|
|
|
* EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
2003-03-07 20:01:41 +01:00
|
|
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
@SYNOPSIS@
|
|
|
|
#include <fontconfig.h>
|
|
|
|
#include <fcfreetype.h>
|
|
|
|
@RET@ FT_UInt
|
|
|
|
@FUNC@ FcFreeTypeCharIndex
|
2006-12-03 00:06:13 +01:00
|
|
|
@TYPE1@ FT_Face% @ARG1@ face
|
|
|
|
@TYPE2@ FcChar32% @ARG2@ ucs4
|
2003-03-07 20:01:41 +01:00
|
|
|
@PURPOSE@ map Unicode to glyph id
|
|
|
|
@DESC@
|
|
|
|
Maps a Unicode char to a glyph index. This function uses information from
|
|
|
|
several possible underlying encoding tables to work around broken fonts.
|
|
|
|
As a result, this function isn't designed to be used in performance
|
|
|
|
sensitive areas; results from this function are intended to be cached by
|
|
|
|
higher level functions.
|
|
|
|
@@
|
|
|
|
|
|
|
|
@SYNOPSIS@
|
|
|
|
#include <fontconfig.h>
|
|
|
|
#include <fcfreetype.h>
|
|
|
|
@RET@ FcCharSet *
|
|
|
|
@FUNC@ FcFreeTypeCharSet
|
2006-12-03 00:06:13 +01:00
|
|
|
@TYPE1@ FT_Face% @ARG1@ face
|
2003-03-07 20:01:41 +01:00
|
|
|
@TYPE2@ FcBlanks * @ARG2@ blanks
|
2011-03-11 23:43:42 +01:00
|
|
|
@PURPOSE@ compute Unicode coverage
|
2003-03-07 20:01:41 +01:00
|
|
|
@DESC@
|
2017-09-12 23:08:08 +02:00
|
|
|
Scans a FreeType face and returns the set of encoded Unicode chars.
|
|
|
|
FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
|
|
|
|
accepted only for compatibility with older code.
|
2003-03-07 20:01:41 +01:00
|
|
|
@@
|
|
|
|
|
|
|
|
@SYNOPSIS@
|
|
|
|
#include <fontconfig.h>
|
2007-11-04 06:23:28 +01:00
|
|
|
#include <fcfreetype.h>
|
|
|
|
@RET@ FcCharSet *
|
|
|
|
@FUNC@ FcFreeTypeCharSetAndSpacing
|
|
|
|
@TYPE1@ FT_Face% @ARG1@ face
|
|
|
|
@TYPE2@ FcBlanks * @ARG2@ blanks
|
|
|
|
@TYPE3@ int * @ARG3@ spacing
|
2011-03-11 23:43:42 +01:00
|
|
|
@PURPOSE@ compute Unicode coverage and spacing type
|
2007-11-04 06:23:28 +01:00
|
|
|
@DESC@
|
|
|
|
Scans a FreeType face and returns the set of encoded Unicode chars.
|
2017-09-12 23:08:08 +02:00
|
|
|
FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
|
|
|
|
accepted only for compatibility with older code.
|
2007-11-04 06:23:28 +01:00
|
|
|
<parameter>spacing</parameter> receives the computed spacing type of the
|
|
|
|
font, one of FC_MONO for a font where all glyphs have the same width,
|
|
|
|
FC_DUAL, where the font has glyphs in precisely two widths, one twice as
|
|
|
|
wide as the other, or FC_PROPORTIONAL where the font has glyphs of many
|
|
|
|
widths.
|
|
|
|
@@
|
|
|
|
|
|
|
|
@SYNOPSIS@
|
|
|
|
#include <fontconfig.h>
|
2003-03-07 20:01:41 +01:00
|
|
|
#include <fcfreetype.h>
|
|
|
|
@RET@ FcPattern *
|
|
|
|
@FUNC@ FcFreeTypeQuery
|
2007-11-04 07:03:11 +01:00
|
|
|
@TYPE1@ const FcChar8 * @ARG1@ file
|
2006-12-03 00:06:13 +01:00
|
|
|
@TYPE2@ int% @ARG2@ id
|
2003-03-07 20:01:41 +01:00
|
|
|
@TYPE3@ FcBlanks * @ARG3@ blanks
|
|
|
|
@TYPE4@ int * @ARG4@ count
|
2006-12-02 22:22:27 +01:00
|
|
|
@PURPOSE@ compute pattern from font file (and index)
|
2003-03-07 20:01:41 +01:00
|
|
|
@DESC@
|
2017-09-20 22:07:02 +02:00
|
|
|
Constructs a pattern representing the 'id'th face in 'file'. The number
|
|
|
|
of faces in 'file' is returned in 'count'.
|
|
|
|
FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
|
|
|
|
accepted only for compatibility with older code.
|
|
|
|
@@
|
|
|
|
|
|
|
|
unsigned int
|
|
|
|
FcFreeTypeQueryAll(const FcChar8 *file,
|
|
|
|
int id,
|
|
|
|
FcBlanks *blanks,
|
|
|
|
int *count,
|
|
|
|
FcFontSet *set)
|
|
|
|
@SYNOPSIS@
|
|
|
|
#include <fontconfig.h>
|
|
|
|
#include <fcfreetype.h>
|
|
|
|
@RET@ unsigned int
|
|
|
|
@FUNC@ FcFreeTypeQueryAll
|
|
|
|
@TYPE1@ const FcChar8 * @ARG1@ file
|
|
|
|
@TYPE2@ int% @ARG2@ id
|
|
|
|
@TYPE3@ FcBlanks * @ARG3@ blanks
|
|
|
|
@TYPE4@ int * @ARG4@ count
|
|
|
|
@TYPE5@ FcFontSet * @ARG5@ set
|
|
|
|
@PURPOSE@ compute all patterns from font file (and index)
|
|
|
|
@DESC@
|
|
|
|
Constructs patterns found in 'file'.
|
|
|
|
If id is -1, then all patterns found in 'file' are added to 'set'.
|
|
|
|
Otherwise, this function works exactly like FcFreeTypeQuery().
|
|
|
|
The number of faces in 'file' is returned in 'count'.
|
|
|
|
The number of patterns added to 'set' is returned.
|
2017-09-12 23:08:08 +02:00
|
|
|
FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
|
|
|
|
accepted only for compatibility with older code.
|
2017-11-07 06:46:10 +01:00
|
|
|
@SINCE@ 2.12.91
|
2003-03-07 20:01:41 +01:00
|
|
|
@@
|
2006-12-02 22:22:27 +01:00
|
|
|
|
|
|
|
@SYNOPSIS@
|
|
|
|
#include <fontconfig.h>
|
|
|
|
#include <fcfreetype.h>
|
|
|
|
@RET@ FcPattern *
|
|
|
|
@FUNC@ FcFreeTypeQueryFace
|
2006-12-03 00:06:13 +01:00
|
|
|
@TYPE1@ const FT_Face% @ARG1@ face
|
2007-11-04 07:03:11 +01:00
|
|
|
@TYPE2@ const FcChar8 * @ARG2@ file
|
2006-12-03 00:06:13 +01:00
|
|
|
@TYPE3@ int% @ARG3@ id
|
2006-12-02 22:22:27 +01:00
|
|
|
@TYPE4@ FcBlanks * @ARG4@ blanks
|
|
|
|
@PURPOSE@ compute pattern from FT_Face
|
|
|
|
@DESC@
|
|
|
|
Constructs a pattern representing 'face'. 'file' and 'id' are used solely as
|
|
|
|
data for pattern elements (FC_FILE, FC_INDEX and sometimes FC_FAMILY).
|
2017-09-12 23:08:08 +02:00
|
|
|
FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and
|
|
|
|
accepted only for compatibility with older code.
|
2006-12-02 22:22:27 +01:00
|
|
|
@@
|