FcPatternBuild(3)FcPatternBuild(3)NAME
FcPatternBuild, FcPatternVaBuild, FcPatternVapBuild - Create patterns from arguments
SYNOPSIS
#include <fontconfig/fontconfig.h>
FcPattern * FcPatternBuild (FcPattern *pattern, ...);
FcPattern * FcPatternVaBuild (FcPattern *pattern, va_list va);
void FcPatternVapBuild (FcPattern *result, FcPattern *pattern, va_list va);
DESCRIPTION
Builds a pattern using a list of objects, types and values. Each value to be entered in the pattern is specified with three arguments:
1. Object name, a string describing the property to be added.
2. Object type, one of the FcType enumerated values
3. Value, not an FcValue, but the raw type as passed to any of the FcPatternAdd<type> functions. Must match the type of the second
argument.
The argument list is terminated by a null object name, no object type nor value need be passed for this. The values are added to `pattern',
if `pattern' is null, a new pattern is created. In either case, the pattern is returned. Example
pattern = FcPatternBuild (0, FC_FAMILY, FcTypeString, "Times", (char *) 0);
FcPatternVaBuild is used when the arguments are already in the form of a varargs value. FcPatternVapBuild is a macro version of FcPat-
ternVaBuild which returns its result directly in the result variable.
VERSION
Fontconfig version 2.10.95
31 8 2013 FcPatternBuild(3)
Check Out this Related Man Page
FcPatternAdd-Type(3)FcPatternAdd-Type(3)NAME
FcPatternAddInteger, FcPatternAddDouble, FcPatternAddString, FcPatternAddMatrix, FcPatternAddCharSet, FcPatternAddBool, FcPatternAddFTFace,
FcPatternAddLangSet - Add a typed value to a pattern
SYNOPSIS
cc [ flag... ] file... -lfontconfig [ library... ]
#include <fontconfig.h>
FcBool FcPatternAddInteger (FcPattern *p, const char *object, int i);
FcBool FcPatternAddDouble (FcPattern *p, const char *object, double d);
FcBool FcPatternAddString (FcPattern *p, const char *object, const FcChar8 *s);
FcBool FcPatternAddMatrix (FcPattern *p, const char *object, const FcMatrix *m);
FcBool FcPatternAddCharSet (FcPattern *p, const char *object, const FcCharSet *c);
FcBool FcPatternAddBool (FcPattern *p, const char *object, FcBool b);
FcBool FcPatternAddFTFace (FcPattern *p, const char *object, const FT_Facef);
FcBool FcPatternAddLangSet (FcPattern *p, const char *object, const FcLangSet *l);
DESCRIPTION
These are all convenience functions that insert objects of the specified type into the pattern. Use these in preference to FcPatternAdd as
they will provide compile-time typechecking. These all append values to any existing list of values.
VERSION
Fontconfig version 2.5.0
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWfontconfig |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
|MT-Level |See XInitThreads(3X11) |
+-----------------------------+-----------------------------+
13 November 2007 FcPatternAdd-Type(3)
I am trying to use a pattern-list match in korn shell using a variable and it always seems to regard the pattern-list as a literal:
Using the directory names explicitly in the pattern-list works fine:
ls @(test|test1)/test.txt
and returns:
test/test.txt
Trying to use a variable for this... (2 Replies)
I have many files coming from different objects in a text file.
All objects have a file of the each dates....i.e (11july,12 july, ... so on) as convention of (object1_july11,object2_july11,object3_july11,object1_july12,object3_july12.. so on).
Now sometimes the file from object stops coming... (1 Reply)
Hi,
Im reading an ANSI text file and greping for a pattern. Then i cut what i dont need from that pattern. So now i just have what i need. What i have now just so happens to be a constant integer. How can i save this integer in a varaible? Or do i use command capture in some form?
cat... (2 Replies)
Hi,
I have to find certain directory patterns.
All my patterns are in a property file.
One of directory patterns is :ABCmmddyyyy. (i.e ABC followed by 8 digits")
How can i find all the directories of this pattern by specifying a pattern in the property file
mypattern.properties
... (8 Replies)
In my file I have a pattern
ri="234"
value of ri can be any i want to find this pattern in file replace this value of ri with another value stored in some variable say newri
Please tell how to do it?
Thanks in Advance (10 Replies)
Hi,
I want to add numbers based on pattern .
in the below ouput file , i want number to be added after pattern line ---- , ie 1 and next is also 1 and next is 2 and next is 3 after adding 4 numbers say output is 7 should be redirected to another file . like this it should add 4 digits after... (2 Replies)
hi!
When I have a variable that contains the day let's say Sun06
and i want to check if my variable starts with any letter what pattern should I use?
I tried that one,but it returns syntax error..
if *) ]; then (4 Replies)
How do I keep a file pattern from evaluating?
I want to pass in a file pattern to a script as a parameter, and then use that pattern in subsequent statements, but I can't get the pattern to not evaluate before I use it.
For example, if I have 3 files called file1.txt, file2.txt and... (2 Replies)
I have
2013-06-11 23:55:14 1Umexd-0004cm-IG <= user@domain.com
I need sed/awk operation on this, so that it should print the very next pattern only after the the pattern mach <=
ie only print user@domain.com (7 Replies)
How to check if pattern is matching in variable or not.
I want to check file name in variable with the pattern.
Eg: file_name="AB1000.csv"
Check for below patterns
pattern1 = AB???
pattern2 = abc??*
if file_name == <patten1>
then
...
elif file_name == <pattern2>
---... (4 Replies)
Hi Team,
I know that "&" holds the result of current pattern match.
But what does "&&" means and its use please?
Thanks & Regards,
Batta Archana (6 Replies)
Dear All,
I would like to instantiate a "pattern file" substituting "variable name" by their content.
Saying, we have:
1/ a "pattern file" containing different "variable name", the first character of the "variable name" is "@":
$ cat TPTModl.txt
DEFINE... (12 Replies)