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

Go to the source code of this file.

Data Structures

struct  font_desc
 

Macros

#define VGA8x8_IDX   0
 
#define VGA8x16_IDX   1
 
#define PEARL8x8_IDX   2
 
#define VGA6x11_IDX   3
 
#define FONT7x14_IDX   4
 
#define FONT10x18_IDX   5
 
#define SUN8x16_IDX   6
 
#define SUN12x22_IDX   7
 
#define ACORN8x8_IDX   8
 
#define MINI4x6_IDX   9
 
#define MAX_FONT_NAME   32
 

Functions

struct font_descfind_font (const char *name)
 
struct font_descget_default_font (int xres, int yres, u32 font_w, u32 font_h)
 

Variables

struct font_desc font_vga_8x8
font_vga_8x16 font_pearl_8x8
font_vga_6x11 font_7x14
font_10x18 font_sun_8x16
font_sun_12x22 font_acorn_8x8 
font_mini_4x6
 

Macro Definition Documentation

#define ACORN8x8_IDX   8

Definition at line 32 of file font.h.

#define FONT10x18_IDX   5

Definition at line 29 of file font.h.

#define FONT7x14_IDX   4

Definition at line 28 of file font.h.

#define MAX_FONT_NAME   32

Definition at line 56 of file font.h.

#define MINI4x6_IDX   9

Definition at line 33 of file font.h.

#define PEARL8x8_IDX   2

Definition at line 26 of file font.h.

#define SUN12x22_IDX   7

Definition at line 31 of file font.h.

#define SUN8x16_IDX   6

Definition at line 30 of file font.h.

#define VGA6x11_IDX   3

Definition at line 27 of file font.h.

#define VGA8x16_IDX   1

Definition at line 25 of file font.h.

#define VGA8x8_IDX   0

Definition at line 24 of file font.h.

Function Documentation

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.

Variable Documentation

Definition at line 2150 of file font_mini_4x6.c.