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

Поправить генератор файлов шрифтов #17

Open
Vadimatorik opened this issue Jul 19, 2019 · 1 comment
Open

Comments

@Vadimatorik
Copy link
Contributor

Сейчас он не соответствует действительности и его нереально использовать. В дополнении надо добавить const к полям самой структуры шрифта.

@Vadimatorik
Copy link
Contributor Author

Пример.
`#ifndef F_MINECRAFT_RUS_REGULAR_8_TABLE_H
#define F_MINECRAFT_RUS_REGULAR_8_TABLE_H

#include "makise_text.h"
#include "fonts.h"

extern "C" {

const uint8_t f_minecraft_rus_regular_8_table[] =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
...

extern const MakiseFont f_minecraft_rus_regular_8 = {
.name = nullptr,
.size = 8,
.table = f_minecraft_rus_regular_8_table,
.width = 0,
.height = 8,
.char_width = f_minecraft_rus_regular_8_width,
.char_index = f_minecraft_rus_regular_8_offset,
#if MAKISE_UNICODE
.unicode_index = f_minecraft_rus_regular_8_unicode,
#endif
.offset = 32,
.num_char = 95,
#if MAKISE_UNICODE
.num_uni = 160,
#endif
.space_char = 0
};

}

#endif`

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