Comments (10)
It's hard to make anything of the backtrace with only the addresses, but I would guess that the problem occurs because the ASCII characters are missing.
E.g. if a glyph is not found, "?" is used by default, which is not present in that font. Could you try again with the ASCII range included? (32, 126)
from epdiy.
oh, you are right! I success, thanks you!
According to your instructions, alphanumeric characters can now be displayed, but “Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
" will still appear when characters not in the font are displayed
from epdiy.
Hm, that's strange. I'll mark it as a bug and have a look in the next days.
But the non-alphanumeric characters that are present in the font work?
from epdiy.
Hm, that's strange. I'll mark it as a bug and have a look in the next days.
But the non-alphanumeric characters that are present in the font work?
The exact description of the bug is: “Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled." bug is triggered ,when all the characters are not in the font library. Although it's not very elegant, in the end, my temporary method is to add a space before all the displayed characters.
from epdiy.
Could you give me an example string? Right now I have some trouble reproducing this.
from epdiy.
Could you give me an example string? Right now I have some trouble reproducing this.
for example
writeln((GFXfont *)&msyh36, (char *)now_string.c_str(), &cursor_x, &cursor_y, NULL);
1.when now_string be equal to 'abc', which 'abc' exist in the font library, No mistakes
2.when now_string be equal to '嗯', which '嗯' no exist in the font library, run error.
3.when now_string be equal to 'abc嗯', which 'abc' exist in the font library and '嗯' no exist in the font library, No mistakes
so, Finally, I skipped the bug in the following way:
now_string=">"+now_string;
writeln((GFXfont *)&msyh36, (char *)now_string.c_str(), &cursor_x, &cursor_y, NULL);
from epdiy.
Thanks, looks like the code still wanted to allocate a buffer with negative height. This should be fixed now.
from epdiy.
Thanks, looks like the code still wanted to allocate a buffer with negative height. This should be fixed now.
by the way, function writeln string wrap is not supported now, whether there are plans to support string wrap in the future, or provides the function of auxiliary judgment
from epdiy.
You mean breaking the string into multiple lines based on some line width?
I'm not sure if the display library is the right place for that, since the rules for breaking strings into lines vary from language to language and can be quite complex.
from epdiy.
You mean breaking the string into multiple lines based on some line width?
I'm not sure if the display library is the right place for that, since the rules for breaking strings into lines vary from language to language and can be quite complex.
That's what I asked, You can do the simplest case first, for example, like office word software, when a line of text cannot be displayed in the line, you can wrap it normally
from epdiy.
Related Issues (20)
- egermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- egermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermacegermac
- Support for 7.5" LilyGo DEPG0750BN screen HOT 1
- new v6 assembled strange display behavior HOT 4
- Is there support for Cyrillic in fonts? HOT 4
- V5 board cannot render ENS060XCD (-1.85v) correctly. tx_stop_en issue HOT 26
- Partial screen update. HOT 8
- Will epdiy support Power-Management of ESP? HOT 12
- Color support and next collaboration examples HOT 8
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 epdiy.