~jincreator/fontconfig/korean_settings

« back to all changes in this revision

Viewing changes to src/fcformat.c

  • Committer: Behdad Esfahbod
  • Date: 2011-06-20 15:55:25 UTC
  • Revision ID: git-v1:e61eba94efffbdbec6f9e08f3fb04b75f0ba2a3f
Switch fc-cat to use FcPatternFormat()

Added the a builtin "fccat" to FcPatternFormat().

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 * unparse      FcNameUnparse
63
63
 * fcmatch      fc-match default
64
64
 * fclist       fc-list default
 
65
 * fccat        fc-cat default
65
66
 * pkgkit       PackageKit package tag format
66
67
 *
67
68
 *
74
75
 */
75
76
 
76
77
 
 
78
#define FCCAT_FORMAT    "\"%{file|basename|cescape}\" %{index} \"%{-file{%{=unparse|cescape}}}\""
77
79
#define FCMATCH_FORMAT  "%{file:-<unknown filename>|basename}: \"%{family[0]:-<unknown family>}\" \"%{style[0]:-<unknown style>}\""
78
80
#define FCLIST_FORMAT   "%{?file{%{file}: }}%{-file{%{=unparse}}}"
79
81
#define PKGKIT_FORMAT   "%{[]family{font(%{family|downcase|delete( )})\n}}%{[]lang{font(:lang=%{lang|downcase|translate(_,-)})\n}}"
304
306
#define BUILTIN(name, format) \
305
307
    else if (0 == strcmp ((const char *) c->word, name))\
306
308
        ret = FcPatternFormatToBuf (pat, (const FcChar8 *) format, buf)
 
309
    BUILTIN ("fccat",    FCCAT_FORMAT);
307
310
    BUILTIN ("fcmatch",  FCMATCH_FORMAT);
308
311
    BUILTIN ("fclist",   FCLIST_FORMAT);
309
312
    BUILTIN ("pkgkit",   PKGKIT_FORMAT);