Skip to content

feat: PoC of fonts on data partition#960

Closed
znelson wants to merge 2 commits intocrosspoint-reader:masterfrom
znelson:font-partition
Closed

feat: PoC of fonts on data partition#960
znelson wants to merge 2 commits intocrosspoint-reader:masterfrom
znelson:font-partition

Conversation

@znelson
Copy link
Contributor

@znelson znelson commented Feb 18, 2026

Summary

What is the goal of this PR?

8 MB executable, 8 MB data/fonts. The UI fonts and selected reader font are mmap-ed at runtime.

Includes the Latin-B characters proposed in #940 to demonstrate expanded font capabilities.

Additional Context

Flash with:

pio run -t upload && pio run -t uploadfontdata

Firmware size w/o fonts:

Flash: [===       ]  26.4% (used 2217048 bytes from 8388608 bytes)

AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? YES Claude Opus 4.6

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.


const auto& uiGroup = groupDir[uiGroupIndex];
const void* ptr = nullptr;
err = esp_partition_mmap(partition, uiGroup.dataOffset, uiGroup.dataSize, SPI_FLASH_MMAP_DATA, &ptr, &uiMmapHandle);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that when working on #596 , I ran into the problem that we may not have enough data pages for mapping, so we may need to fallback to using instruction pages and having to access data with 4-byte alignment.

@znelson znelson closed this Feb 18, 2026
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