Coder Social home page Coder Social logo

Comments (6)

wystewart avatar wystewart commented on June 12, 2024

you need to modify filesupport.cpp and .h for your board. The library only supports M5STack and WIOTerminal at the moment. From wiki:

SD card access is strongly hardware dependent, so for hardware other than M5Stack and Wio Terminal, you will need to add file manipulation functions to FileSupport.cpp/.h.

from openfontrender.

Uzair835 avatar Uzair835 commented on June 12, 2024

I am also having this issue and unsure how to go about fixing it. I am using an STM32 (bluepill), and NOT loading the font from an SD card. How can the library be modified to accept the font file being saved within the chip? Everything that I see appears to rely on FileSupport and loading files from the SD card

from openfontrender.

takkaO avatar takkaO commented on June 12, 2024

I'm implementing changes to handle the file I/O processes that different for each board in an unified manner. There are in the tmp branch now.

Users can handle all types of storage by simply providing five functions (fopen, fclose, fread, fseek, ftell) to manipulate files from any storage.

The input/output and operation of these five functions are the same as standard C language functions.

I plan to integrate it into the master branch in the near future.
Thank you.

from openfontrender.

Uzair835 avatar Uzair835 commented on June 12, 2024

Thank you! At the moment, is there any workaround to using this library without an SD card? I see examples about loading binary fonts, but even when copying those I get the same error of there being no reference to _open. Just want to make sure I am not missing something obvious.

from openfontrender.

takkaO avatar takkaO commented on June 12, 2024

@Uzair835

Perhaps the fopen function etc. is not recognized, try including stdio.h in FileSupport.h.
If including stdio.h causes other problems, try defining an appropriate empty function in FileSupport.cpp.

from openfontrender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.