Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fcpatternbuild(3) [centos man page]

FcPatternBuild(3)														 FcPatternBuild(3)

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

FcFontSetMatch(3)														 FcFontSetMatch(3)

FcFontSetMatch - Return the best font from a set of font sets SYNOPSIS
cc [ flag... ] file... -lfontconfig [ library... ] #include <fontconfig.h> FcPattern * FcFontSetMatch (FcConfig *config, FcFontSet **sets, intnsets, FcPattern *pattern, FcResult *result); DESCRIPTION
Finds the font in sets most closely matching pattern and returns the result of FcFontRenderPrepare for that font and the provided pattern. This function should be called only after FcConfigSubstitute and FcDefaultSubstitute have been called for pattern; otherwise the results will not be correct. Returns NULL if an error occurs during this process. 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 FcFontSetMatch(3)
Man Page

12 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Korn pattern-list with a variable

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)
Discussion started by: partchimp
2 Replies

2. Shell Programming and Scripting

most current entries of particular pattern

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)
Discussion started by: partha_bhunia
1 Replies

3. UNIX for Dummies Questions & Answers

Redirect to a Variable? Or is it cmd cap?

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)
Discussion started by: oxoxo
2 Replies

4. Shell Programming and Scripting

How to match?

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 ... (8 Replies)
Discussion started by: aixjadoo
8 Replies

5. Shell Programming and Scripting

Extract a pattern from file

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)
Discussion started by: pasricha.kunal
10 Replies

6. Shell Programming and Scripting

adding number based on pattern using awk

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)
Discussion started by: raghavendra.nsn
2 Replies

7. Shell Programming and Scripting

bash pattern

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)
Discussion started by: vlm
4 Replies

8. UNIX for Dummies Questions & Answers

How to keep unix from evaluating a file pattern

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)
Discussion started by: DJR
2 Replies

9. Shell Programming and Scripting

Print only next pattern in a line after a pattern match

I have 2013-06-11 23:55:14 1Umexd-0004cm-IG <= 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 (7 Replies)
Discussion started by: anil510
7 Replies

10. Shell Programming and Scripting

Compare pattern in variable

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)
Discussion started by: vegasluxor
4 Replies

11. UNIX for Beginners Questions & Answers

&& meaning in UNIX

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)
Discussion started by: Archana Batta
6 Replies

12. Shell Programming and Scripting

To substitute multiple variable by their content in a file

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)
Discussion started by: dae
12 Replies