Skip to content

Conversation

@delhoume
Copy link

@delhoume delhoume commented Aug 17, 2025

without having any mcu or display.
makes debugging easy on a desktop
defines a headless config similar to arduino.inl

Yo might be interested in the few
#ifdef ESP_PLATFORM
in FastEPD.inl
and the definitions iin headless.<h,cpp> that allow to not depend on espidf or arduino.

The sample is adapted from the same one in Arduino and complies with

clang -g antialias_font.cpp ../../../src/FastEPD.cpp ../../../src/Group5.cpp ../../../src/headless.cpp -I ../../../src -D HEADLESS -o antialias_font

it generates a PGM ! from the frame buffer.

this PR is marked as WIP, I am not sure you will be interested in the principle of using the library on the desktop.
If you like the idea, you certainly will trash this PR and start clean...

I have a number of issues, but §i am not sure some of them are linked to my code and my limited knowledge of FastEPD internals.

  • it seems that sometimes, antilaliased text is not displayed, from my tests, it may be that he cursor is out of screen.
  • there is no cp1252 conversion when computing getStringBox,
    As it is now, FastEPD is a very good, versatile and feature packed library, with a clean design.

without having  any mcu or display.
makes debugging easy on a desktop
defines a headless config similar to arduino.inl
@delhoume delhoume marked this pull request as draft August 17, 2025 13:05
@bitbank2
Copy link
Owner

The latest developments are in the /dev branch of this repo. It has many fixes/improvements over what you're using.

@delhoume
Copy link
Author

delhoume commented Aug 17, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants