Article View: fj.windows.x
Article #2008Re: I want to get the strict font name
From: Michael Knight
Date: Thu, 14 Jan 1993 13:34
Date: Thu, 14 Jan 1993 13:34
31 lines
1873 bytes
1873 bytes
In article <TUKAMOTO.93Jan14200131@human.human-system.co.jp>,
tukamoto@human.human-system.co.jp (Hideo Tukamoto) says:
> $B!!!!$H;d$O2r<a$7$F$$$k$N$G$9$,!&!&!&!#$=$3$G<B:]$K;H$o$l$F$$$k%U%)%s(B
> $B!!!!%H$N87L)$JL>A0!J%"%9%?%j%9%/%^!<%/$r4^$s$G$$$J$$!K$r<hF@$7$?$$$H(B
> $B!!!!;W$&$N$G$9$,!"$=$l$K$O$I$&$7$?$i$$$$$N$G$7$g$&$+!#(B
XListFonts $B$GJV$C$F$/$k:G=i$N%U%)%s%HL>0?$$$O(B
Display *dpy;
XFontStruct *fs;
XFontProp *fp;
int i;
char *name;
Atom fontatom = XInternAtom (dpy, "FONT", False);
fs = XLoadQueryFont(dpy,
"-*-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*");
for (i = 0, fp = fs->properties; i < fs->n_properties; i++, fp++) {
if (fp->name == fontatom) {
name = XGetAtomName (dpy, fp->card32));
}
}
$B$NMM$J46$8$G$bD4$Y$i$l$^$9!#(B
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Hideo Irie (Michael Knight) michael@sm.sony.co.jp
Work Station Division. SuperMicro Systems Group. Sony Corp.
1-22-1 Higashigotanada, Sinagawa-ku, Tokyo, JAPAN TEL: 03(3448)4015
Technical Details
Message-ID:
<1993Jan14.133414.4598@sm.sony.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!ccut!news.u-tokyo.ac.jp!wnoc-tyo-news!scslwide!wsgw!wsservra!michaelReferences:
<TUKAMOTO.93Jan14200131@human.human-system.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 1667f1,272782b1e91f4852 X-Google-Attributes: gid1667f1,public X-Google-ArrivalTime: 1993-01-14 05:43:30 PST Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!news.u-tokyo.ac.jp!wnoc-tyo-news!scslwide!wsgw!wsservra!michael From: michael@sm.sony.co.jp (Michael Knight) Newsgroups: fj.windows.x Subject: Re: I want to get the strict font name Message-ID: <1993Jan14.133414.4598@sm.sony.co.jp> Date: 14 Jan 93 13:34:14 GMT References: <TUKAMOTO.93Jan14200131@human.human-system.co.jp> Sender: news@sm.sony.co.jp (Usenet News System) Reply-To: michael@sm.sony.co.jp Distribution: fj Organization: Workstation Div., Supermicro Systems Group, Sony Corporation Lines: 31 Nntp-Posting-Host: mikasa