XFT(3) | Library Functions Manual | XFT(3) |
̾??¶
XFT - X ?Ѥ? FreeType ???ե??????饤?֥???
????¶
Xft ?? FreeType ?饹???饤???? X Rendering ??ǽ??ĥ?ȥ??ե??????Ȥʤ??褦 ???߷פ??줿????ñ?ʥ饤?֥????Ǥ??롣???Υ????饤???ޥ˥奢???ǤϤ??? ?饤?֥?????ɽ??Ū????ʬ???????Ĥޤ??????????롣
?ǡ?????¶
XftPattern ??̾???ν????Ȥ??Τ??줾?????б??????ͤΥꥹ?Ȥ??ݻ????롣 ???줾????̾???ϥե????Ȥ?°?????ؤ??? XftPattern ?ϥޥå??????????Ϥ䡢?????Υե????Ȥ˴ؤ??????????ݻ? ?˻Ȥ????롣
XftFont ?ϥե????Ȥΰ???Ū????ˡ?????ӡ? X ?Υ?????¤?ΤǤ??? XFontStruct ?Υǡ??????뤤?? FreeType ?? X Render ??ǽ??ĥ?Υǡ????ؤΥݥ??????ġ?
XftFontStruct ?? X Render ??ǽ??ĥ?ǻȤ????? FreeType ?ե????Ȥ˴ؤ????????????ġ?
XftFontSet ?? XftPattern ?Υꥹ?Ȥ????ġ?????Ū?ˤϡ?Xft ?Ϥ??Υǡ?????¤?Τ??Ȥ? ?ƥե????Ȥν??????ݻ????롣????Ū?ˤϡ?Xft ?Ϥ??Υե????ޥåȤ? ?ե????ȤΥꥹ?ȼ????η??̤??֤???
XftObjectSet ??̾???ν??????ݻ????롣?????ϥե????ȤΥꥹ?ȼ??????Ԥ??ݡ? ?֤??????ѥ??????Υꥹ?????˥ե????ȤΤɤΥե??????ɤ??֤??????Τ????? ?ꤹ?뤿???˻Ȥ????롣
XftDraw ?? opaque ?ʥ??֥??????ȤǤ??ꡢ?????ץ??ȥ????ޤ??? X Rendering ??ǽ ??ĥ???Ȥä? X ?Υɥ??????֥??????????????뤿???˻Ȥ????????????? ?????롣
?ؿ?¶
XftFont * XftFontOpen (Display *dpy, int screen, ...);
XftFontOpen ?? (?ե???????, ??, ??) ?η????Υѥ????????ǤΥꥹ?Ȥ????????˼??롣 ???Υꥹ?Ȥ??????? 0 ?Ǥ??롣 ???δؿ??Ϥ??Υѥ??????????Ѳ?ǽ?ʥե????Ȥ????١????פ????ե????Ȥ? ?????ץ롣
??????:
font = XftFontOpen (dpy, scr, XFT_FAMILY, XftTypeString,
"charter", XFT_SIZE, XftTypeDouble, 12.0);
???????Ǥ? 12 ?ݥ????Ȥ?ʸ?????????ץ??롣?ݥ????ȥ??????ϡ????˥? ?β????٤˴??Ť??Ƽ?ưŪ??Ŭ?ڤʥԥ????륵???????Ѵ??????롣
void XftTextExtents8 (Display *dpy, XftFont *font, unsigned char *string, int len, XGlyphInfo *extents);XftTextExtents8 ??ʸ???? "string" ???ե????? "font" ?????褷?????Υԥ?????ñ?̤Ǥ? ?礭?????????롣
XftDraw * XftDrawCreate (Display *dpy, Drawable drawable, Visual *visual, Colormap colormap);XtDrawCreate ?ϡ??ƥ????Ȥȶ????????̤????褹?뤿???˻Ȥ???¤?Τ????????롣
void XftDrawString8 (XftDraw *d, XRenderColor *color, XftFont *font, int x, int y, unsigned char *string, int len);XftDrawString8 ?ϡ?ʸ???? "string" ???ե????? "font", ?? "color" ?ǡ???ɸ "x, y" ?????? ???롣
void XftDrawRect (XftDraw *d, XRenderColor *color, int x, int y, unsigned int width, unsigned int height);XftDrawRect ?ϻ??ꤷ?????Ƕ????ΰ????ɤ??Ĥ֤???
XftConfig¶
XftConfig ?ե??????ˤ? Xft ?饤?֥??????????????롣???Υե??????ˤϡ? ?ե????Ⱦ?????õ?????Υǥ??쥯?ȥ??䡢?ץ??????ब???ꤷ???ե????? ?ѥ??????????Ѳ?ǽ?ʥե????Ȥ????٤??????Խ????뤿???μ??礬???롣
config : "dir" STRING | "include" STRING | "includeif" STRING | "match" tests "edit" edits ; test : qual FIELD-NAME COMPARE CONSTANT ; qual : "any" | "all" ; edit : FIELD-NAME ASSIGN expr SEMI ;
STRING ?????Ű??????Ƕ??ڤ????롣 FIELD-NAME ?ϼ??̻ҤǤ??ꡢASSIGN ?? "=", "+=", "=+" ?Τ????줫?Ǥ??롣 expr ?ˤ????̤λ??ѱ黻?Ҥ? FIELD-NAME ???ޤ??뤳?Ȥ??Ǥ??롣
"dir" ?? Xft ???ե????Ȥ??????????Υꥹ?Ȥ˻??ꤷ???ǥ??쥯?ȥ??? ?ɲä??롣 ?ꥹ?Ȥν????ˤ??ä˰?̣?Ϥʤ???Xft ?????ƤΥե????Ȥ?Ʊ???˰?????
"include" ?? "includeif" ?ϡ????ꤵ?줿?ե????뤫???ɲä? ?????ѥ???????ɤ߹??ࡣ "includeif" ?ϻ??ꤵ?줿?ե????뤬¸?ߤ??ʤ??Ƥ⥨?顼???Ф??ʤ??? ?ե?????̾?? '~' ?ǻϤޤ????硢???Υե?????̾?ϥ桼???? ?ۡ????ǥ??쥯?ȥ꤫???????Хѥ??ǻ??Ȥ????롣
"match" ʸ?????Ǥ?ɾ???????ƥ桼???????ꤷ???ѥ??????Ȱ??פ??????硢 ???Υѥ??????ϻ??ꤵ?줿???????Խ??????롣
ASSIGN ?? "=" ?Ǥ??????硢?ѥ????????ǰ??פ????ͤϻ??ꤵ?줿ɽ?????֤? ?????????롣 "+="/"=+" ???ͤΥꥹ?Ȥ??Ф??????ꤷ???ե??????ɤ˿??????ͤ?????/???֤??롣
????¶
Xft ?Ͼ???Ū?ˤ????????ѹ??????????????? ???????????ɥ??٥??Ǥθߴ??????ݤȤ??Ȥ????Ĥ????⤢?ޤ??ʤ???
????¶
Keith Packard (XFree86 Project, Inc. ?Υ????С?)
Version 1.0 | XFree86 |