Comments (3)
Hello,
Try the following template.
It is highly likely that it will not give you an immediately working result. But it can give you a starting point.
$(start_block_header)
#include <stdint.h>
//#define XADVANCE ($(out_images_max_width)+1)
#define YADVANCE ($(out_images_max_height)+1)
$(end_block_header)
const uint8_t $(doc_name_ws)_Bitmaps[] PROGMEM = {
$(start_block_images_table)
$(out_image_data)
#if ($(out_blocks_count) > 0)
$(out_comma)
#endif
$(end_block_images_table)
};
const GFXglyph $(doc_name_ws)_Glyphs[] PROGMEM = {
$(start_block_images_table)
//Index, W, H,xAdv,dX, dY
{ $(out_char_offset), $(out_char_image_width), $(out_char_image_height), /*XADVANCE*/ $(out_image_width) + 1, $(out_char_image_left), ( $(out_image_height) - ($(out_char_image_top) + $(out_char_image_height)) )}$(out_comma) //
$(end_block_images_table)
};
$(start_block_images_table)
#ifndef FIRST_CHAR_CODE
#define FIRST_CHAR_CODE 0x$(out_char_code)
#endif
#ifdef LAST_CHAR_CODE
#undef LAST_CHAR_CODE
#endif
#define LAST_CHAR_CODE 0x$(out_char_code)
$(end_block_images_table)
const GFXfont $(doc_name_ws) PROGMEM = {
(uint8_t *)$(doc_name_ws)_Bitmaps,
(GFXglyph *)$(doc_name_ws)_Glyphs,
FIRST_CHAR_CODE, LAST_CHAR_CODE, YADVANCE
};
#undef XADVANCE
#undef YADVANCE
#undef FIRST_CHAR_CODE
#undef LAST_CHAR_CODE
from lcd-image-converter.
Wow, thank you very much, I'll try it and I'll try to fix it. You could add it to the repository, so they can use it too, almost all library use Adafruit GFX and there are no simple and effective tools for fonts.
Excellent app!!!!
from lcd-image-converter.
If you manage to bring the template to working condition, let me know. Maybe I will add it to the package.
from lcd-image-converter.
Related Issues (20)
- Build Error on Arch Linux HOT 1
- conversion preset deleted HOT 2
- I want to display pictures in BMP format on Qt5. The way I can think of is to ask you. HOT 2
- Checkbox "Split to rows" not applied when RLE Compression is active HOT 1
- "Split to rows" only works when "Bands" is disabled HOT 1
- Zig-zag conversion HOT 3
- Convert Animated Gif HOT 1
- Char Byte alignment
- need help HOT 18
- некорректное использование неполного типа «const class QPainterPath» HOT 1
- Lost presets HOT 1
- Wrong version gets downloaded as latest on sourceforge.com HOT 2
- Completely broken HOT 1
- 72pix fonts are same height as 48pix or 54pix fonts HOT 3
- Wrong font rendering
- Fails to build with unknown module QT: xmlpatterns HOT 2
- Byte order in image options not works HOT 2
- lcd-image-converter HOT 2
- I do not have the RGB565 color option. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lcd-image-converter.