Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码错误 #6

Open
ShareCat opened this issue Mar 29, 2022 · 0 comments
Open

代码错误 #6

ShareCat opened this issue Mar 29, 2022 · 0 comments

Comments

@ShareCat
Copy link

lkdGui_source/port/userFontPort.c 文件中defaultFontInit函数

`/**
*@brief 字体初始化
*@param None
*@RetVal None
/
void defaultFontInit(void)
{
/
根据字体要求做相应的修改 */

/* 此buff的大小由最大字模大小决定 */
static uint8_t dataBuff[12*2];

defaultFont.name = "汉字字模为12*12的GB2312,ASCII字模为5*7";
defaultFont.dhigh = 12;
defaultFont.dwide = 12;
**defaultFont.shigh = 5;**
**defaultFont.swide = 7;**
defaultFont.pZmBuff = dataBuff;
defaultFont.getDfont = GetDfontData;
defaultFont.getSfont = GetSfontData;

/* 设置为系统默认字体 */
GuiFontSet(&defaultFont);

GuiSetbackcolor(CWHITLE);
GuiSetForecolor(CBLACK);
}`

defaultFont.shigh = 5;
defaultFont.swide = 7;
应该修改成:
defaultFont.shigh = 7;
defaultFont.swide = 5;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant