Image format for get_font_id(<file_name>)

Does someone have an example of what the format of an image is supposed to be for use with get_font_id(<file_name>)? My text shows up as thin vertical slices of random characters instead of the characters I type. I assume it's a problem with my .png image and/or the .txt file that accompanies the image. Here's what I did:
- Made an image with of the characters in windows-1252 order: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
- I omitted control characters and any characters after 126, since I wasn't sure how to render them
- I Put a single red (#FF0000) pixel in the top left corner of each character in the image
- I made a .txt file to accompany the image just like other images. I don't know if it needs special content for fonts.
fontimage.txt:
Has Alpha Channel: yes Number of Animations: 94 Horizontal Animation: yes Vertical Resizable: no Horizontal Resizable: no Fixed Top: 0 Fixed Bottom: 0 Fixed Left: 0 Fixed Right: 0
What am I doing wrong?
Best Answer
-
Number of animations needs to be 1. The PNG absolutely has to have 256 #FF0000 dots. So first 32 chars also need 32 red dots, and anything after ~ also needs their red dots.
Also, this plugin for Figma could be useful!
0
Answers
-
Number of animations needs to be 1. The PNG absolutely has to have 256 #FF0000 dots. So first 32 chars also need 32 red dots, and anything after ~ also needs their red dots.
Also, this plugin for Figma could be useful!
0
Categories
- All Categories
- 18 Welcome
- 1.6K Hangout
- 66 NI News
- 858 Tech Talks
- 4.4K Native Access
- 17.5K Komplete
- 2.1K Komplete General
- 4.6K Komplete Kontrol
- 6.1K Kontakt
- 1.6K Reaktor
- 397 Battery 4
- 887 Guitar Rig & FX
- 450 Massive X & Synths
- 1.4K Other Software & Hardware
- 6.1K Maschine
- 7.8K Traktor
- 7.8K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators