<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot print with Free Font]]></title><description><![CDATA[<p dir="auto">I am trying to use a FreeFont and the code fails see the code and the error below.<br />
I have included "Free_Fonts.h"</p>
<pre><code>#define TEXT "aA MWyz~12"  // Text that will be printed on screen in any font
#define FF1 &amp;FreeMono9pt7b
M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);
M5.Lcd.setFreeFont(FF1);
M5.Lcd.setTextDatum(MC_DATUM);    //Set the alignment of the text

M5.Lcd.drawString(TEXT, 160, 120,
              GFXFF);  // Print the string name of the font
</code></pre>
<p dir="auto">Backtrace: 0x400fb2cd:0x3ffb26a0 0x400fb9c5:0x3ffb2710 0x400fc506:0x3ffb2770 0x400fd6ed:0x3ffb27c0 0x40106547:0x3ffb27e0 0x4010b7de:0x3ffb2820</p>
<p dir="auto">#0  0x400fb2cd:0x3ffb26a0 in TFT_eSPI::drawChar(int, int, unsigned short, unsigned int, unsigned int, unsigned char) at .pio/libdeps/m5stack-core-esp32/M5Stack/src/utility/In_eSPI.cpp:2707<br />
#1  0x400fb9c5:0x3ffb2710 in TFT_eSPI::drawChar(unsigned short, int, int, unsigned char) at .pio/libdeps/m5stack-core-esp32/M5Stack/src/utility/In_eSPI.cpp:4495<br />
(inlined by) TFT_eSPI::drawChar(unsigned short, int, int, unsigned char) at .pio/libdeps/m5stack-core-esp32/M5Stack/src/utility/In_eSPI.cpp:4478<br />
#2  0x400fc506:0x3ffb2770 in TFT_eSPI::drawString(char const*, int, int, unsigned char) at .pio/libdeps/m5stack-core-esp32/M5Stack/src/utility/In_eSPI.cpp:5012<br />
#3  0x400fd6ed:0x3ffb27c0 in DisplayControllerM5Stack::displayLoadingScreen() at lib/DisplayController/src/DisplayControllerM5Stack.cpp:146<br />
#4  0x40106547:0x3ffb27e0 in setup() at src/AirconnController.ino:321<br />
#5  0x4010b7de:0x3ffb2820 in loopTask(void*) at /Users/eduardo/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42</p>
<p dir="auto">ELF file SHA256: 7f04a7cb66e9c6a2</p>
<p dir="auto">Rebooting...<br />
ets Jul 29 2019 12:21:46</p>
<p dir="auto">rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)<br />
configsip: 0, SPIWP:0xee<br />
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00<br />
mode:DIO, clock div:1<br />
load:0x3fff0030,len:1344<br />
load:0x40078000,len:13836<br />
load:0x40080400,len:3608<br />
entry 0x400805f0<br />
setup 1<br />
Initializing M5Stack<br />
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.</p>
<p dir="auto">Core  1 register dump:<br />
PC      : 0x400fb2d0  PS      : 0x00060c30  A0      : 0x800fb9c8  A1      : 0x3ffb26a0<br />
A2      : 0x000000a3  A3      : 0x80815c54  A4      : 0x00000000  A5      : 0x3f411c14<br />
A6      : 0x00000000  A7      : 0x3ffc599c  A8      : 0x00000000  A9      : 0x00000001<br />
A10     : 0x41404040  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000000<br />
A14     : 0x3ffba920  A15     : 0x00000000  SAR     : 0x0000001c  EXCCAUSE: 0x0000001c<br />
EXCVADDR: 0x80815c54  LBEG    : 0x4008b741  LEND    : 0x4008b751  LCOUNT  : 0xfffffffd</p>
]]></description><link>https://community.m5stack.com/topic/5179/cannot-print-with-free-font</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 08:00:11 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5179.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Apr 2023 04:35:53 GMT</pubDate><ttl>60</ttl></channel></rss>