Font sizes

Hey all,

I was wondering if anyone can enlighten me on how I could define the size of truetype fonts in my fvwm menus.

A definition such as:

MenuStyle * Font "smoothansi"

works fine for me, but when I try a Truetype font, I can only use one size.
I looked in taviso’s config and see things like

Style * Font "Shadow=1 1 SE:xft:Aquafont:size=11"

and

Style * Font "xft:Bitstream Vera Sans Mono:style=Roman:size=11"

…what do I need to do to be able to put in the “size=xx” field? Does the xft have anything to do with a font-server being in place? I can use truetype fonts of any size in other applications fine. (in gimp, for example).

So, I guess my question is: How do I define a specific fontsize for my ttf-fonts for usage in a fvwm menu???

Before going off on a tangent, check that the ouput from:

fvwm --version

Does indeed list “XFT” as a prerequisite entry.

– Thomas Adam

hey again! :slight_smile:

[code]$ fvwm --version
fvwm 2.5.12 compiled on Dec 31 2005 at 15:41:28
with support for: ReadLine, XPM, PNG, Shape, XShm, SM, XRender, XFT, NLS

fvwm comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of fvwm under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.[/code]

…seems like XFT is there?

hey again,

my bad!

I was doing this:

MenuStyle * Font "-misc-zombified-medium-r-normal--0-0-0-0-p-0-ascii-0:size=28"

when I should have been doing this:

MenuStyle * Font "xft:zombified:size=30"

You know that “Font xft:…” means it’s an XFT font, right? :expressionless: The clue is in the definition.

– Thomas Adam