Comments (6)
I added LcdDrowCode function.
Font file that From 0x00 to 0x7f, the characters image of Standard ASCII are stored.
Font file that From 0x80 to 0xff, the characters image of Japanese are stored.
It can be seen that no font pattern is stored from 0x80 to 0xa0.
Font file that From 0x80 to 0xff, the characters image of Latin are stored.
from esp-idf-ili9340.
Thank you for quick reaction! I cant test it right away as I have only ESP-IDF 4,2,1 installed and when I tried on 4th August what was the master version from git and was not working with 4,2,1, so I am actually using some older your version that I downloaded in May I think and it was working well (except ascii >127). So will either try to update ESP-IDF (but there was some reason I didn't update it before, just cant remember right now what was ) or will try to patch your old code with whatever you added today.
Best regards
from esp-idf-ili9340.
This is mine.
ESP-IDF version:v4.4-dev-2825-gb63ec47238
from esp-idf-ili9340.
Ok - I didn't use all your new code (because don't want to install yet 4.4), but found easy fix: just removing/comment out if(ascii < 0x80){ line 211 in fontx.c which I see you also did in some of the recent versions, but in the one that I downloaded in May 2021 was still there. I might don't need yet your new function LcdDrawCode, because lcdDrawString(..); works fine if special and locale symbols are entered as \x7f\x81\xa1\xa2\xa6\xa7 etc. Doesn't work if typed from keyboard or with Alt+code, but I dont need it now and I guess that is why you've made LcdDrawCode?
One more question about font files: When I am using the fontxedit.exe to make my font or even if I just only "Save as" some of the provided your fonts and the fontxedit.exe puts only spaces (0x20) in the place in the font file header where suppose to be font name - 8 bytes from offset 6 to 13. How did you make your font files with names in place - is there any trick with fontxedit or use some other editor to put the names there?
Because without names my code still works, but on terminal output I see plenty of "Fontx: not found."
Thank you and best regards.
from esp-idf-ili9340.
just removing/comment out if(ascii < 0x80){ line 211 in fontx.c
Good!!
Doesn't work if typed from keyboard or with Alt+code, but I dont need it now and I guess that is why you've made LcdDrawCode?
I wanted to use the LcdDrawCode function to show where the pattern resides in the font file.
How did you make your font files with names in place - is there any trick with fontxedit or use some other editor to put the names there?
fontxedit.exe sets a space(0x20) in the font name of the FONTX file header.
I searched for the header editor for the FONTX file but couldn't find it.
A Binary editor is required to edit the font name of the FONTX file header.
You need to be aware of this when you add new font files to your project.
https://github.com/nopnop2002/esp-idf-ili9340/blob/master/main/main.c#L1278
from esp-idf-ili9340.
Thanks
from esp-idf-ili9340.
Related Issues (20)
- IMAGE
- IMAGE
- IMAGE
- IMAGE
- IMAGE
- IMAGE HOT 4
- License HOT 2
- IMAGE HOT 3
- Guide how to use as esp-idf component HOT 7
- IMAGE HOT 1
- IMAGE HOT 35
- Use this library with platformio HOT 4
- Often crashing on lcdDrawFillRect HOT 13
- xpt2046 issue HOT 44
- About coordinate systems
- A question. HOT 3
- Slow loading speed HOT 8
- display is mirrored HOT 1
- Turn DMA off HOT 3
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 esp-idf-ili9340.