Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
fonts.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/font.h>

Go to the source code of this file.

Macros

#define NO_FONTS
 
#define num_fonts   ARRAY_SIZE(fonts)
 

Functions

.

Returns NULL if no font found, or a pointer to the specified font.

struct font_descfind_font (const char *name)
 
struct font_descget_default_font (int xres, int yres, u32 font_w, u32 font_h)
 
 EXPORT_SYMBOL (find_font)
 
 EXPORT_SYMBOL (get_default_font)
 
 MODULE_AUTHOR ("James Simmons <[email protected]>")
 
 MODULE_DESCRIPTION ("Console Fonts")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define NO_FONTS

Definition at line 23 of file fonts.c.

#define num_fonts   ARRAY_SIZE(fonts)

Definition at line 68 of file fonts.c.

Function Documentation

EXPORT_SYMBOL ( find_font  )
EXPORT_SYMBOL ( get_default_font  )
struct font_desc* find_font ( const char name)
read

Definition at line 86 of file fonts.c.

struct font_desc* get_default_font ( int  xres,
int  yres,
u32  font_w,
u32  font_h 
)
read

get_default_font - get default font : screen size of X : screen size of Y : bit array of supported widths (1 - 32) : bit array of supported heights (1 - 32)

Get the default font for a specified screen size. Dimensions are in pixels.

Returns NULL if no font is found, or a pointer to the chosen font.

Definition at line 112 of file fonts.c.

MODULE_AUTHOR ( "James Simmons <[email protected]>"  )
MODULE_DESCRIPTION ( "Console Fonts"  )
MODULE_LICENSE ( "GPL"  )