📄 font.h
字号:
#ifndef GUI_FONT_H#define GUI_FONT_H#include "bitmap.h"#include "app.h"#define fntAlignLeft 0#define fntAlignCenter 1#define fntAlignRight 2typedef struct{ int x,y; // location int sx,sy; // size} fntChar;typedef struct{ fntChar Fnt[256]; txSample Bitmap; char name[128];} bmpFont;extern txSample Bitmap;extern bmpFont * Fonts[26];extern int fntAddNewFont( char * name );extern void fntFreeFont( void );extern int fntFindID( char * name );extern int fntTextHeight( int id,char * str );extern int fntTextWidth( int id,char * str );extern int fntRead( char * path,char * fname );extern txSample * fntRender( wItem * item,int px,const char * fmt,... );#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -