Next: , Previous: , Up: Fonts   [Contents][Index]


49.2.4 Font Instance Size

Function: x-font-size font

This function returns the nominal size of the given font. This is done by parsing its name, so it’s likely to lose. X fonts can be specified (by the user) in either pixels or 10ths of points, and this returns the first one it finds, so you have to decide which units the returned value is measured in yourself ...

Function: x-find-larger-font font &optional device

This function loads a new, slightly larger version of the given font (or font name). Returns the font if it succeeds, nil otherwise. If scalable fonts are available, this returns a font which is 1 point larger. Otherwise, it returns the next larger version of this font that is defined.

Function: x-find-smaller-font font &optional device

This function loads a new, slightly smaller version of the given font (or font name). Returns the font if it succeeds, nil otherwise. If scalable fonts are available, this returns a font which is 1 point smaller. Otherwise, it returns the next smaller version of this font that is defined.