Scroll to navigation

XSetFont(3X11) XLIB FUNCTIONS XSetFont(3X11)

名前

XSetFont - GC 簡易関数

書式

XSetFont( display, gc, font)
 

Display * display;
 

GC gc;
 

Font font;

引き数

display
X サーバへの接続を指定する。
font
フォントを指定する。
gc
GC を指定する。

説明

関数 XSetFont は指定した GC の現在のフォントを設定する。
XSetFont はエラー BadAlloc, BadFont, BadGC を起こすことがある。

返り値

BadAlloc
要求されたリソースやサーバメモリの割り当てにサーバが失敗した。
BadFont
引き数 Font や GC の値が、定義されている Font を指していない。
BadGC
引き数 GContext の値が、定義されている GContext を指していない。

関連項目

XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11), XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetLineAttributes(3X11), XSetState(3X11), XSetTile(3X11)
 
Xlib - C Language X Interface
Release 6.5 X Version 11