Giter VIP home page Giter VIP logo

Comments (5)

yashm avatar yashm commented on September 6, 2024

@sumotoy any tips on how to make custom fonts?
Tried a bunch of settings on the "LCD Image Converter" but get compile errors.

Thanks!

from ssd_13xx.

phillip-toone avatar phillip-toone commented on September 6, 2024

Yes, I would also like some guidance on how to create or at least modify an existing font. This font creation tool creates four different formats for .h header files but I can't seem to understand how to implement them into this library. I have attempted to manually copy and paste the hex code from this tool into the .c files but this usually just causes the code to no longer compile. It looks like there is a "LCD Image Converter" but I also can't figure out how to use this. An example here would be really appreciated. Thanks.

from ssd_13xx.

phillip-toone avatar phillip-toone commented on September 6, 2024

I have created a python script for converting fonts created with this font creation tool into the font file format implemented with this library. You can find this script on my fork of this library under the "_utility" folder. Use this script as follows.

  • Download the desired font in the <3.0.0 file format (fontFile.h in this example)
  • Execute the script: "convert_squix_font.py fontFile.h"
  • The script will generate a file called fontFile.c for your use.

I have generated a pull request for this script to be implemented into the master branch of this library.

from ssd_13xx.

Keoni80 avatar Keoni80 commented on September 6, 2024

can anyone tell me how to use the comand tft.setFont? thanks!!

from ssd_13xx.

liesenbergk avatar liesenbergk commented on September 6, 2024

I have created a python script for converting fonts created with this font creation tool into the font file format implemented with this library. You can find this script on my fork of this library under the "_utility" folder. Use this script as follows.

  • Download the desired font in the <3.0.0 file format (fontFile.h in this example)
  • Execute the script: "convert_squix_font.py fontFile.h"
  • The script will generate a file called fontFile.c for your use.

I have generated a pull request for this script to be implemented into the master branch of this library.

Dear Phillip-Toone,

I am trying to use your font converter and I get the following prompt message:

Microsoft Windows [Version 10.0.19042.1052]
(c) Microsoft Corporation. All rights reserved.

C:\Users\klaus\Music\Python>python convert_squix_font.py dialog16.f
Traceback (most recent call last):
File "C:\Users\klaus\Music\Python\convert_squix_font.py", line 50, in
Hexes = data[indexStart:indexEnd]
TypeError: slice indices must be integers or None or have an index method

C:\Users\klaus\Music\Python>

Would you have any hint for me how to succeed?

thanks

Klaus

from ssd_13xx.

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.