help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get a font's point size?


From: Oliver Scholz
Subject: Re: how to get a font's point size?
Date: 23 Apr 2004 02:25:03 -0700

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]