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:;<=>[email protected][\]^_`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
- 10.7K All Categories
- 22 Welcome
- 449 Hangout
- 59 NI News
- 209 Tech Talks
- 1.1K Native Access
- 4.9K Komplete
- 621 Komplete General
- 1.1K Komplete Kontrol
- 1.8K Kontakt
- 487 Reaktor
- 154 Battery 4
- 271 Guitar Rig & FX
- 203 Massive X & Synths
- 212 Other Software & Hardware
- 2.3K Maschine
- 14 Sampling Room
- 2.6K Traktor
- 2.4K 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