⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 varbitmap.h

📁 MiniGUI for uCOS 移植实验全部源码
💻 H
字号:
/*
** $Id: varbitmap.h,v 1.16 2004/04/01 08:57:13 weiym Exp $
**
** varbitmap.h: the head file of raw bitmap font operation set.
**
** Copyright (C) 2000, 2001, 2002, Wei Yongming.
** Copyright (C) 2003 Feynman Software.
** 
*/

#ifndef GUI_FONT_RAWBITMAP_H
    #define GUI_FONT_RAWBITMAP_H

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

typedef struct
{
    const char*     name;           /* font name */
    unsigned char   max_width;      /* max width in pixels */
    unsigned char   ave_width;      /* average width in pixels */
    int             height;         /* height in pixels */
    int             descent;        /* pixels below the base line */
    unsigned char   first_char;     /* first character in this font */
    unsigned char   last_char;      /* last character in this font */
    unsigned char   def_char;       /* default character in this font */
    const unsigned short* offset;   /* character glyph offsets into bitmap data or NULL */
    const unsigned char*  width;    /* character widths or NULL */
    const unsigned char*  bits;     /* 8-bit right-padded bitmap data */
    unsigned int    font_size;      /* used by mmap. It should be zero for in-core vbfs. */
} VBFINFO;

#define LEN_VERSION_INFO    10

#define VBF_VERSION         "vbf-1.0**"

#define SBC_VARFONT_INFO(logfont) ((VBFINFO*)(((DEVFONT*) (logfont.sbc_devfont))->data))
#define MBC_VARFONT_INFO(logfont) ((VBFINFO*)(((DEVFONT*) (logfont.mbc_devfont))->data))

#define SBC_VARFONT_INFO_P(logfont) ((VBFINFO*)(((DEVFONT*) (logfont->sbc_devfont))->data))
#define MBC_VARFONT_INFO_P(logfont) ((VBFINFO*)(((DEVFONT*) (logfont->mbc_devfont))->data))

#define VARFONT_INFO_P(devfont) ((VBFINFO*)(devfont->data))
#define VARFONT_INFO(devfont) ((VBFINFO*)(devfont.data))

#ifdef _INCOREFONT_SANSSERIF
extern VBFINFO vbf_SansSerif11x13;
#endif

#ifdef _INCOREFONT_COURIER
extern VBFINFO vbf_Courier8x13;
#endif

#ifdef _INCOREFONT_MODERN
#endif

#ifdef _INCOREFONT_SERIF
#endif

#ifdef _INCOREFONT_SMALL
#endif

#ifdef _INCOREFONT_SYMBOL
extern VBFINFO vbf_symb12;
#endif

#ifdef _INCOREFONT_VGAS
extern VBFINFO vbf_VGAOEM8x8;
extern VBFINFO vbf_Terminal8x12;
extern VBFINFO vbf_System14x16;
extern VBFINFO vbf_Fixedsys8x15;
#endif

#ifdef _INCOREFONT_HELV
extern VBFINFO vbf_helvR16;
extern VBFINFO vbf_helvR21;
extern VBFINFO vbf_helvR27;
#endif

#ifdef __cplusplus
}
#endif  /* __cplusplus */

#endif // GUI_FONT_VARBITMAP_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -