* Re: how to get a font's point size?
[not found] <40744C5F.6010905@yahoo.com>
@ 2004-04-23 9:25 ` Oliver Scholz
0 siblings, 0 replies; only message in thread
From: Oliver Scholz @ 2004-04-23 9:25 UTC (permalink / raw)
Kevin Rodgers <ihs_4664@yahoo.com> wrote in message news:<40744C5F.6010905@yahoo.com>...
> What is the right way to get the point size from a font name pattern,
> e.g. "-*-courier-medium-r-*--*-120-*-*-*-*-iso8859-1"?
>
> What is the right way to get the point size from a font name, e.g.
> "-Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO8859-1"?
>
> x-font-regexp doesn't match the asterisks in the pattern, and even
> though it does match the resolved name it doesn't group the point size
> field so it can be extracted with match-string.
Well, if this is just about parsing the XFLD string, maybe you could
use something like:
(aref (x-decompose-font-name
"-*-courier-medium-r-*--*-120-*-*-*-*-iso8859-1")
7)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-23 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <40744C5F.6010905@yahoo.com>
2004-04-23 9:25 ` how to get a font's point size? Oliver Scholz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).