-
Notifications
You must be signed in to change notification settings - Fork 175
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
I want to make my own font file, but Error encountered #49
Comments
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. |
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. |
Hm, that's strange. I'll mark it as a bug and have a look in the next days. |
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. |
Could you give me an example string? Right now I have some trouble reproducing this. |
for example 1.when now_string be equal to 'abc', which 'abc' exist in the font library, No mistakes so, Finally, I skipped the bug in the following way: |
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 |
You mean breaking the string into multiple lines based on some line width? |
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 |
I want to make my own font file, but even with your example practice, the font Successfully generated,but can't run in esp32. I'll revise it according to the guide you gave "fontconvert.py" The exercise generated a custom font file, The firmware generated by compilation will report an error when running .can you give us some suggestions?
This is my generation step:
intervals= [
# arrows
(0x2190, 0x21FF),
# math
(0x2200, 0x22FF),
# symbols
(0x2300, 0x23FF),
]
python3 fontconvert.py msyh 10 FiraCode-Regular.ttf Symbola.ttf >hz500.h
hz500.zip
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4000c46c PS : 0x00060130 A0 : 0x800d0e74 A1 : 0x3ffb1f70
A2 : 0x00000000 A3 : 0xffffffff A4 : 0x0003f480 A5 : 0x00000000
A6 : 0x00000001 A7 : 0x00003f48 A8 : 0x00000000 A9 : 0x3ffb1f40
A10 : 0x4008ed10 A11 : 0x000001e0 A12 : 0x00000000 A13 : 0x3ffd1efc
A14 : 0x00060120 A15 : 0x00000000 SAR : 0x0000001d EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00003f47
Backtrace: 0x4000c46c:0x3ffb1f70 0x400d0e71:0x3ffb1f80 0x400d4617:0x3ffb1fb0 0x40088d2d:0x3ffb1fd0
The text was updated successfully, but these errors were encountered: